New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-full-api

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-full-api

A node API generator for Yeoman

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Yeoman generator for an API backend.

Getting started

To install the Full Api Generator, simply run

npm install -g generator-full-api

To create a new project run the following command

yo full-api <project name>

options
  • --nr : create a new project without a HelloWorld resource

If you don't provide a project name, you will be prompted for it in the next step

Resources

To create a new resource, execute

yo full-api:resource <resource name>

If you don't provide a resource name, you will be prompted for it in the next step

options
  • --nr : create a new resource without a routes file
  • --nc : create a new resource without a controller
  • --nd : create a new resource without a DAO class
  • --nm : create a new resource without a model
  • --nt : create a new resource without a test file
  • --nh : create a new resource without a helper file
  • --nrm : create a new resource without a README file
  • --routes : boolean. Sets whether this resource must contain a routes file or not
  • --controller : boolean. Sets whether this resource must contain a controller or not
  • --dao : boolean. Sets whether this resource must contain a DAO class or not
  • --model : boolean. Sets whether this resource must contain a model or not
  • --test : boolean. Sets whether this resource must contain a test file or not
  • --helper : boolean. Sets whether this resource must contain a helper file
  • --readme : boolean. Sets whether this resource must contain a README file or not

Content

The application is currently bound with the following stack:

  • ExpressJS : as the webserver
  • BluebirdJS : as the Promise library
  • Mongoose : as the ODM tool for handling MongoDB
  • Nodemon : as a Node refresher (restarts the application every time it's modified)
  • PM2 : as a process manager, to keep the application alive in production
  • Bunyan : as a logging library
  • Mocha with Chai : as a test framework
  • Helmet and CORS : to provide security and cross-origin resource sharing

Keywords

FAQs

Package last updated on 03 Dec 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

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