Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mvc-setup

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvc-setup

Restfuly API setup using MVC model.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

mvc-setup

Simple bash script to setup a RESTFUL API filesystem using MVC model.


Note If you are cloning this repo, ignore step 1, and make sure to delete line 2 from mvc.sh, otherwise everything will be installed 2 levels above project directory.

When in project directory, use npm install mvc-setup to download the script. When installed:

1. cd node_modules

2. cd mvc-setup

3. chmod +x mvc.sh

4. . ./mvc.sh

Note the first . before file name; if you forget it, you will have to cd into project folder manually.
This script will set up the entire mvc file structure for you, as well as pre-populate some files with common data.
The dependencies installed include:
  • express
  • nodemon
  • morgan
  • ejs
  • body-parser
  • pg-promise
package.json will have been initialized without 'start' and 'dev' scripts;
so if you want to use npm start or npm run dev make sure to include them in the package.json file.

FAQs

Package last updated on 20 Feb 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc