1.2.5 • Published 1 year ago

@cilinder/generate-node-backend v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

generate-node-backend

Simple nodejs program to generate a nodejs backend

Usage

First install nodejs

Initialize package.json

npm init

After answering the questions, install the package

npm install @cilinder/generate-node-backend --save-dev

Initialize the project

npx generate-node-backend init

Create a test route

npx generate-node-backend generate-test-route

Generate an API route and all the associated code

npx generate-node-backend generate-route --name=<name of the controller generated> --route=<the route for the API> --type=<"Get" or "Post">

Generate a test route and view the Swagger GUI

Generate the test route

npx generate-node-backend generate-test-route

Start the backend

npm run dev

The project is available at localhost:$PORT/docs, where $PORT can be found in .env (the port is generated randomly for each new instance).

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

2 years ago