This project uses NodeJS and gulp to build a deployable artifact located in dist
. The artifact gets deployed to an AWS S3 bucket that sits behind a CloudFront distribution.
Build and deployment is handled automatically by CI/CD actions in this repo. The process to manually deploy is detailed below.
- Node.js
- AWS CLI (for deployment)
Install required packages:
# Install Gulp
npm install -g gulp npm-check-updates
# Install project dependencies:
npm install
gulp
# or
gulp prod
Check and update dependencies:
# Update package.json versions
ncu -u
# Install updated packages
npm install
-
Create access key in AWS Portal:
- Login to AWS Portal
- Navigate to profile → Security Credentials
- Create new access key under "Access Keys" section
-
Configure AWS CLI with access key:
aws configure
Upload dist
to an S3 bucket:
aws s3 sync dist/ s3://<s3-bucket-name>
Invalidate CloudFront cache:
aws cloudfront create-invalidation --distribution-id <distribution-id> --paths "/*"