primavera-snippets README
Code snippets to leverage the Primavera framework and quickly build Node.js and serverless API's.
Features
"Full-file" snippets start with #. The following are available:
controller : create a new controller class, imports and sample methods included
middleware : create a new middleware class, imports and sample methods included
service : create a new service container class to group @Resolve methods, imports included
model : create a mongoose-decorators model class, imports included
injectable : create an @Injectable component class, imports included
"In-file" snippets start with @. The following are available:
controller : create just a basic controller class structure, no imports, no methods.
service : create a @Resolve methods
resolve : create a @ResolveWith method to dynamically invoke services
inject : create an @Inject CI resolver (in-memory)
Requirements
Your project needs to be using Primavera Framework... quite obviously.
https://npm.com/package/primavera to get started.
Enjoy!
| |