Backend SST guide
This implementation is based on an SST guide extended version which included chapters "Best Practices" and "Extra Credit".
Actually the backend consists of:
- Infrastructure (this repo): Deploys S3, DynamoDB & Cognito, it doesn't change a lot and can be shared between several Serverless API stages. It uses AWS CDK with SST for deployment.
- API: Deploys API Gateway and Lambdas, most of the development iterations are done on this repo. It uses Serverless Framework for deployment.
For the frontend and the demo link check this repo
Node version 14 used for development, using nvm you can:
# set Node 14 in current terminal
nvm use 14
# set Node 14 as default (new terminals will use 14)
nvm alias default 14
- Install dependencies:
npm install
- Deploy infrastructure:
npm run deploy
As these resources are used by API, first delete that API and you can do the cleanup: npm run delete
SEED is used for the deployment pipeline, here follows a walkthrough of the configuration steps
We use an account for dev
and a different one for prod
: