You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mvc-starter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvc-starter

Starter files for backend development with expressjs using mvc architectural pattern

1.0.2
latest
npmnpm
Version published
Maintainers
1
Created
Source

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

  • 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!

FAQs

Package last updated on 19 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts