This guide will help you deploy and test the full project — including Infrastructure (AWS CDK), Backend (Node.js API), and Frontend (React) — in your own AWS account from scratch. This guide works for deployment via Windows/Mac/Linxu OS
Go to https://aws.amazon.com/ → click “Create an AWS Account” and complete the signup (credit card required for free trial).
- In the AWS console → search “IAM” → Users → Create user
- Name it
reviewer(or any name you like) - Don't select "Provide user access to the AWS Management Console"
- In Set Permission tab Create select attach policies directly
- Select existing policy: AdministratorAccess
- After creating the IAM user, click the userName → “Create access key” → “Command Line Interface (CLI)” → then download or copy the key pair
- Access Key ID
- Secret Access Key
Keep that file safe.
Open Terminal as Administrator and run each line below:
# Install Node.js LTS (download installer manually if needed)
# https://nodejs.org/en/download
# Install AWS CLI (if not already installed)
# https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
# Check installation
aws --version (restart if need after installing)
# Install AWS CDK (Infrastructure-as-Code tool)
npm install -g aws-cdk
# (Optional) Restart PowerShell to load the CDK commandThen, install Docker Desktop (from https://www.docker.com/products/docker-desktop) and keep it running before deployment.
In PowerShell:
aws configure --profile myappIt will ask for:
AWS Access Key ID: <paste from .csv>
AWS Secret Access Key: <paste from .csv>
Default region name: eu-north-1 # or your preferred AWS region
Default output format: json
Then verify that your account is connected:
aws sts get-caller-identity --profile myappYou should see your AWS account ID and username.
Now you’re ready to use the supplied scripts (PowerShell for Windows, bash for macOS/Linux). For each step below, pick the command that matches your OS.
Run following commands inside the project's root folder.
Windows (PowerShell)
.\scripts\.windowsDeploymentScripts\set-env.ps1macOS / Linux (bash)
source scripts/LinuxAndMacDeploymentScripts/set-env.shThis sets your AWS profile and region for all other scripts.
This uses AWS CDK to create the infrastructure:
Windows (PowerShell)
.\scripts\.windowsDeploymentScripts\init-infra.ps1macOS / Linux (bash)
bash scripts/LinuxAndMacDeploymentScripts/init-infra.sh🕐 Takes about 5–10 minutes on first deploy. When it finishes, the infrastructure is ready to host your app.
Windows (PowerShell)
.\scripts\.windowsDeploymentScripts\deploy-backend.ps1macOS / Linux (bash)
bash scripts/LinuxAndMacDeploymentScripts/deploy-backend.sh🕐 Takes 2–3 minutes.
Windows (PowerShell)
.\scripts\.windowsDeploymentScripts\deploy-frontend.ps1macOS / Linux (bash)
bash scripts/LinuxAndMacDeploymentScripts/deploy-frontend.sh🕐 Takes about 2 minutes. When finished, it prints something like:
Frontend deployed. Open: https://d123abc.cloudfront.net
Windows (PowerShell)
.\scripts\.windowsDeploymentScripts\verify.ps1macOS / Linux (bash)
bash scripts/LinuxAndMacDeploymentScripts/verify.shYou’ll see both URLs printed:
Frontend URL: https://d123abc.cloudfront.net
Backend URL : http://my-api-alb-123.eu-north-1.elb.amazonaws.com
➡️ Open the Frontend URL in a browser — you should see the app running and fetching data from the backend.
- Your frontend should be live on a CloudFront URL
(e.g.,
https://d123abc.cloudfront.net) - Your backend should be accessible through an ALB URL
(e.g.,
http://my-api-alb-123.eu-north-1.elb.amazonaws.com) - Visiting the frontend will show data fetched from the backend API.
When you are done testing, remove all created AWS resources (including the CDK bootstrap stack):
Windows (PowerShell)
.\scripts\.windowsDeploymentScripts\destroy-all.ps1macOS / Linux (bash)
bash scripts/LinuxAndMacDeploymentScripts/destroy-all.shThe scripts clean up the account so the next init-infra run starts fresh.
your-project/
│
├── infra/ # AWS CDK (Infrastructure-as-Code)
│ ├── lib/
│ │ ├── backend-stack.ts # ECS, ECR, ALB, SSM
│ │ └── frontend-stack.ts # S3, CloudFront, SSM
│ └── bin/infra.ts
│
├── backend/ # Node.js (Express) API
│ ├── src/index.ts
│ ├── package.json
│ └── Dockerfile
│
├── frontend/ # React + TypeScript App
│ ├── src/
│ ├── package.json
│ └── build config
│
└── scripts/
├── .windowsDeploymentScripts/ # PowerShell scripts for Windows deployment
│ ├── set-env.ps1
│ ├── init-infra.ps1
│ ├── deploy-backend.ps1
│ ├── deploy-frontend.ps1
│ ├── verify.ps1
│ └── destroy-all.ps1
└── LinuxAndMacDeploymentScripts/ # Bash scripts for macOS / Linux deployment
├── set-env.sh
├── init-infra.sh
├── deploy-backend.sh
├── deploy-frontend.sh
├── verify.sh
└── destroy-all.sh