Test Driven Development starter for Serverless and NodeJS. Featuring persistent MongoDB connections on suspended execution of functions.
To get started, read the full article on Medium:
- If TDD is Zen, adding Serverless brings Nirvana - part #1
- If TDD is Zen, adding Serverless brings Nirvana - part #2
Install the dependencies:
npm install
Start a local MongoDB server:
mongod
Develop locally:
npm start
Test locally:
npm test
Deploy to staging:
npm run deploy
Deploy to production:
npm run deploy:prod