/mvc-starter

Starter files for expressjs mvc architectural pattern

Primary LanguageJavaScript

Express Logo

This is a starter file package for backend development with expressjs using mvc architectural pattern something just like the "create-react-app".

Installation

$ npm install mvc-starter -g 

For example, the following creates an Express app with mvc architecture in the current working directory:

$ mvc-starter

Say you want the files to be in a new directory(new-app):

Create the new directory

$ mkdir new-app

Change working directory to new-app

$ cd new-app

then run the command:

$ mvc-starter
  |____new-app
  |      |____config
  |      |    |____db.js
  |      |
  |      |____controllers
  |      |    |____appController.js
  |      |
  |      |____models
  |      |    |___appModel.js
         |
         |_____server.js
         |
         |
         |_____package.json

Important Settings

  1. create a .env file, to configure your mongodb.

Let's keep it simple for now, if you find any issue you can state it in the issues tab of the repo.

More updates are coming!