A simple api using serverless framework, typescript and mongodb with Clean Archtecture
- serverless-framework: easy infra as a code to lambda functions
- middyjs: simple lambda handler with middlewares
npm installIn this project has 2 environments:
developmentproduction
All environment variables they are ./environment folder on files:
.env.development.env.production(not exist for default. If you need, you can create)
npm run start:devThis command run a http server locally to test your lambda.
To deploy, you need:
- install aws-cli
- configure credentials for aws-cli
- after install and configure, you can deploy with
serverless-framework
npm run deploy:dev
npm run deploy:prd