Skip to content

martylamoureux/nodejs_express_mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Express MVC

Description

This is a base structure for a node.js project, using Express, Mongoose and Jade, based on a MVC-pattern.

Installation

First, your must have nodemon installed on your computer, you can install it with

npm install -g nodemon

Next, clone this repository in your project folder, then launch in a Terminal (in your project folder) :

npm install

And then, start the server using :

npm start

Usage

Normally, you don't have to edit the app.js

The structure is quite obvious :

  • controllers/ : Folder containing controllers.
  • models/ : Folder containing mongoose models.
  • views/ : Folder containing Jade templates
  • public/ : Folder containing assets
  • data/ : Folder containing MongoDB stuff.
  • routes/ : Folder containing urls forwarding to controllers
  • urls.js : Root urls to controllers.

About

MVC Base structure for node.js, Express, Mongoose, Jade

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published