Socket
Socket
Sign inDemoInstall

generator-mpro

Package Overview
Dependencies
2
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-mpro

pro version of the generator for the full-stack Mongo-Express-React-Node framework Maestro, with rails-like templating and model creation


Version published
Maintainers
1
Weekly downloads
1
decreased by-93.33%

Weekly downloads

Readme

Source

generator-mpro

About

mPro is a code generator (run from the command line) that scaffolds out a full-stack MERN (Mongo Express React Node) app. It's an extension of a similar tool, Maestro, documented at maestrodocs.com.

Besides some extra scaffolding, the main addition of mPro is a very nifty command-line tool that will automatically build out a database schema and REST api routes for a given data model. It will connect these features to each other and to your server.

Usage

Installation

Installs of MongoDB, npm etc are assumed.

  • Install Yeoman with npm install -g yo
  • Install the mPro generator with npm install -g mpro
  • Follow the prompts, then cd into the project you've created.
  • Commands for watching source files and running the server are detailed here.

Creating Data Models

  • From within your project folder, run yo mpro:makeModel [YOUR MODEL NAME]
  • The created files can be found in db/schemas and routes/api
  • You might want to elaborate on the very basic schema that was written, but from there, you're ready to start writing front-end code that talks to your api.

For example, if I run yo mpro:makeModel artListing, mPro will create db/schemas/artListing.js and routes/api/artListing.js. CRUD requests can now be made to your server at YOUR-APP-DOMAIN/api/artListing.

Keywords

FAQs

Last updated on 11 Aug 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc