@cilinder/generate-node-backend

1.2.5 • Public • Published

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).

Package Sidebar

Install

npm i @cilinder/generate-node-backend

Weekly Downloads

0

Version

1.2.5

License

MIT

Unpacked Size

41.8 kB

Total Files

24

Last publish

Collaborators

  • cilinder