Just clone this project and start writing your serverless functions
- Node.js (>= 7.3.0)
- Serverless
- Project dependencies (
npm install
)
- Clode/fork this repo
- Create an Amazon Web Services account if you do now have one
- Sign up for a MongoDB Atlas account if you do not have one, and create a cluster
- Once you have your MongoDB Atlas cluster running, copy the URI Connection String and paste into
variables.env.sample
- Rename this file to
variables.env
- npm install
serverless offline start
ornpm run start
-> Compile typescript files, run serverless offline and start watch
serverless deploy -v
-> Deploy all the functions to AWS lambda
npm run test
-> Run mocha