personal website
Run website locally and deploy to AWS
- install
dotenv-cli
npm install -g dotenv-cli
<!-- or -->
yarn global add dotenv-cli
-
For local development rename
.env.example
to.env
and update theGITHUB_TOKEN
-
upload CloudFormation template in CloudFormation Console (or with aws-cli) which will deploy your S3 buckets, cloudformation distributions, codebuild pipeline etc.
yarn install
npm run dev
- open browser on https://localhost:5000
Codebuild is setup to use the Feature branch workflow, making a PR to the repo will create a feature build on AWS and deploy it to a feature url. When PR is merged it will delete old stack.