Serverless REST API with MongoDB using AWS, MLAB, Mongoose, Bluebird and Angularjs to test it
This example demonstrate how to use a MongoDB database with aws and serverless, can be tested with anglarjs.
Using Mongoose ODM and Bluebird for Promises.
Use Cases
- NoSQL CRUD API
Setup
Setup your aws credentials: See the video here
Add your MongoDB url in .env file (You can get a free one on mlab.com)
$ npm install
$ serverless config credentials --provider aws --key YOUR_KEY --secret YOUR_SECRET
$ serverless deploy
Replace
Usage
open index.html in your browser and see the basic crud operations