generator-express-resource
v0.2.0
Published
Yeoman generator
Downloads
2
Readme
generator-express-resource
Generator-Express-Resource is a Yeoman generator for creating CRUD endpoints and the associated unit tests for a given resource quickly. It simplifies the process of writing the routes, connecting them to a database and writing working tests.
Getting Started
Make sure that you have Yeoman installed
npm install -g yo
Yeoman Generators
To install generator-express-resource from npm, run:
npm install -g generator-express-resource
Finally, initiate the generator:
yo express-resource
Dependencies
This generator creates routes designed to be used inside an ExpressJS application which uses
TODO:
- Accept previously used responses to prompts as defaults in a project
- Generate test/index.js if one isn't present
- Add call to controller inside index.js so user doesn't have to remember
License
MIT