generator-seqexpress

2.0.3 • Public • Published

Boilerplate code generator for a layer architecture using sequelize and express libraries in nodeJS with Typescript.

1 - Install yeoman (npm install yo -g)

2 - Install the generator with npm install generator-seqexpress -g

3 - In the root folder of the project where you want you files generated run: yo seqexpress

Possible Configurations when executed

  • Generate a service file -> This is a file that sits between the controller and the repository, it should manage any additional calls or connection with other services that the logic requires

  • Generate Controller file -> This is the controller, it has the methods that will be referenced by the router, it takes care of decompsing the requests and forming the responses

  • Generate Router -> It takes care of the routing for the model provided, building specfic endpoints for each of the functionalities

  • ErrorHelperVersion -> This version of the files has an errorHandler for each of the error clauses, it provides more specific error reporting, it uses the winston library for the console outputs

  • Create Logger -> Creates the logger used by the errorHelper

  • QueryHelper -> Small Helper that process information from sequelize and provides the calculation for the page offset used for pagination queries

This generator was developed by Julián Spinelli in BeerealIt

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.33latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.33
2.0.20
2.0.10
2.0.00
1.1.70
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.70
1.0.61
1.0.50
1.0.40
1.0.21
1.0.10
1.0.00

Package Sidebar

Install

npm i generator-seqexpress

Weekly Downloads

5

Version

2.0.3

License

ISC

Unpacked Size

48.2 kB

Total Files

14

Last publish

Collaborators

  • jspinelli