1.3.12 • Published 9 months ago

@cilinder/generate-node-backend v1.3.12

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

generate-node-backend

Simple Node.js program to generate a backend using Node.js, Express, Prisma, TSOA.

Usage

First install Node.js

Initialize package.json

npm init

After answering the questions, install the package

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

Initialize the project

npx gnb init

Create a test route

npx gnb generate-test-route

Generate an API route and all the associated code

npx gnb generate-route <name of the controller generated> <the route for the API> <"Get" or "Post">

You can use the dry-run option with any command to see the files it would generate without writing anything to disk.

Generate a test route and view the Swagger GUI

Generate the test route

npx gnb 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.3.7

9 months ago

1.3.6

9 months ago

1.3.5

9 months ago

1.3.10

9 months ago

1.3.9

9 months ago

1.3.8

9 months ago

1.3.11

9 months ago

1.3.12

9 months ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago