Deploy

Introduction

This guide will help you deploy your app to AWS.

Prerequisites

Before we start, make sure you have the following:

  • An AWS account.
  • The AWS CLI installed and configured.
  • The AWS CDK CLI installed.

Follow the Get Started guide to install the AWS CDK CLI and configure the AWS CLI.

Deploy the Backend

To deploy the backend, navigate to the boilerpro-backend folder and run the following command:

cd boilerpro-backend
npm install

Now you need to configure your AWS credentials. You can do this by running the following command:

aws configure

Insert your AWS credentials when prompted.

Finally, you can deploy the backend by running the following commands:

npm run build
cdk deploy

You will get the base URL of the backend. Copy it to the clipboard as you will need it for the frontend.

CDK Deploy

Deploy the Frontend

To deploy the frontend, navigate to the boilerpro-frontend folder and run the following command:

cd boilerpro-frontend
npm install
npm run build

Next, create a free account on Vercel (opens in a new tab) and connect your GitHub account. Create a new project from the Vercel Dashboard and connect it to your Github repository for the frontend code.