This is a blank Node.js Express Mongoose MVC project starter app.
NOTE: MVC is a software design pattern that separates the application into three main logical components: the model, the view, and the controller. The model is the data, the view is the presentation, and the controller is the interface between them.
Learn More about MVC: https://developer.mozilla.org/en-US/docs/Glossary/MVC
- Install Node.js.
- Install MongoDB.
- Clone this repository.
- Install the dependencies:
npm install
- Start the server:
npm start
- View the site at:
http://localhost:3000
npm run devstart
// Windows
SET DEBUG=express-locallibrary-tutorial:* & npm run devstart
NOTE: Remember to set NODE_ENV to development
and MONGO_URI in your environment variables. (Set NODE_ENV to 'production' when deploying to production.)