Socket
Book a DemoInstallSign in
Socket

men-stack-starter-kit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

men-stack-starter-kit

This repository is the REST API Starter kit

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

MEN (Mongodb, Express, Node) Stack Starter Kit

This repository is the REST API Starter kit

Requirement

  • Node
  • Express Framework
  • MongoDB (Mongoose)

Installation

Clone the repository:

git clone https://github.com/NutBoltu/men-stack-starter-kit.git
cd men-stack-starter-kit
rm -rf .git

Install mongodb globally : Official documentation

Install dependencies using npm:

npm install

For development

node app.js

The app will run in http://localhost:1980

For Production

npm start

Starter Kit layout

+- config
|   +- config.js              --> configuration file where database configuration and
|                                 host configuration are described
+- controllers                --> controller files
+- models                     --> models directories that communicate with the database
|   +- definitions            --> database models are defined
|   +- schemas                --> mongodb schemas are described
|   +- services               --> database access layer that connects with the db models
|   +- db.connection.js       --> connect with mongodb
|   +- models.js              --> initialize mongodb models
+- node_modules               --> development dependencies node modules
+- routes                     --> REST api routers
+- utilities                  --> utilities files
|   +- helpers                --> all helper files
|   +- validator              --> api validators are described
+- app.js                     --> application run file
+- package.json               --> node package configuration file

Licence

MIT licence

Keywords

mongo node express starter

FAQs

Package last updated on 21 Aug 2016

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