/MVC

This is a blank Node.js Express Mongoose MVC project starter app.

Primary LanguageJavaScript

MVC

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

Installation

  1. Install Node.js.
  2. Install MongoDB.
  3. Clone this repository.
  4. Install the dependencies: npm install
  5. Start the server: npm start
  6. View the site at: http://localhost:3000

Development testing

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.)