Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NESS] Command for adding new model #6

Open
pahrizal opened this issue Nov 8, 2021 · 0 comments
Open

[NESS] Command for adding new model #6

pahrizal opened this issue Nov 8, 2021 · 0 comments
Assignees
Labels
NESS Node Express Sequelize Swagger

Comments

@pahrizal
Copy link
Collaborator

pahrizal commented Nov 8, 2021

Describe the solution you'd like
add a new command for generating a new sequelize model with auto-include CRUD operations in the controller, routes, and swagger docs

Describe alternatives you've considered
my proposed command example: lts ness add model NewModelName.
this will create a new file inside the existing NESS project like below:

  • src/models/newModelName.model.ts
  • src/controllers/newModelName.controller.ts
  • src/routes/newModelName.routes.ts
  • test/models/newModelName.model.test.ts
  • test/controllers/newModelName.controller.test.ts
@pahrizal pahrizal added the NESS Node Express Sequelize Swagger label Nov 8, 2021
@pahrizal pahrizal changed the title Command for adding new model [NESS] Command for adding new model Nov 8, 2021
@darmawan01 darmawan01 self-assigned this Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NESS Node Express Sequelize Swagger
Projects
None yet
Development

No branches or pull requests

2 participants