REST API built with NodeJS, Express, MongoDB, Mongoose, & Yeoman Generator
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Download and install NodeJS (also installs NPM)
Download and install MongoDB
- Add C:\Program Files\MongoDB\Server{version}\bin environment variable to path
- Create C:\data\db empty folder to house data
- Install Yeoman Generator
$ npm install -g yo
- Install Restgoose Generator
$ npm install -g generator-restgoose
Run the restgoose generator to create a scaffolded project
$ yo restgoose
Run the app
$ grunt server
Create a schema using the restgoose generator
$ yo restgoose:schema "article|title:String,excerpt:String,content:String,published:Boolean,created:Date"
Delete a schema using the restgoose generator:
$ yo restgoose:deleteschema "article" --force
The example on this repository provides GET/PUT/POST/DELETE functionality for a simple todoList.
Alex Batis | GitHub | LinkedIn
This project is licensed under the MIT License.