Basic REST service, for training purposes only.
It has a simple and non-secure User Model and Controller.
Structure is defined as follows:
/controllers --> Directory for controllers implementation. /models --> Models built over mongoose Schema architecture are saved here. /routes --> Different files for different controllers define every available route for that controller.
To run this REST service locally, you need to follow this steps:
- Clone this repository.
- Get MongoDB.
- Run a MongoDB instance. Make sure to modify the /data/db path, or grant write access to MongoDB to root directory (not recommended).
- Run 'npm install' inside your API folder.
- Run 'npm start'
- You got it! You API is running locally on http://localhost:3000/api