Move into the backend directory: cd fantastic-froyo
If you just want to use the stable version: git checkout master
Install the dependencies : npm install
Run the development task : npm start
Starts a server running at https://localhost:3000/api/v1
By default, the template is configured to connect to a local MongoDB database using Mongoose. It first attempts to connect to a local mongo server, if there is no local mongo server running, it connects to a mLab server.
The backend of revisiit consists of 4 major folders and a server.js file which run the server.
/models
/routes
/controllers
/database
Model folders consists of all the schema for the database, Schema are accessed by other folder using export function in node.js
Consists of Routes to forward the supported requests and any information encoded in request URLs to the appropriate controller functions.
Controller functions to get the requested data from the models, create an HTML page displaying the data, and return it to the user to view in the browser.
index.js contains the database configuration for connecting to the database.