node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

mean-api

BETA - under development

MEAN-API - REST API engine for MEAN stack apps

Node.js needed to install dependencies and components

Using MEAN-API

npm i --save mean-api
var express = require('express');
var app = express();
var meanapi = require('mean-api');
 
// get routers, returns express app object 
var routers = meanapi.routers(app);
 
// init mongoose connection, returns mongoose object 
var config = { uri: 'MONGODB_URI', options: 'MONGODB_OPTIONS' };
var mongoose = meanapi.mongoose(config);
 
// start MEAN-API management web application, returns http server object 
var http = meanapi.start(PORT_TO_START_HTTP_SERVER, app);

See API documentation for details