Gathering detailed insights and metrics for @chapter247ind/node-boilerplate
Gathering detailed insights and metrics for @chapter247ind/node-boilerplate
Gathering detailed insights and metrics for @chapter247ind/node-boilerplate
Gathering detailed insights and metrics for @chapter247ind/node-boilerplate
npm install @chapter247ind/node-boilerplate
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
35
29
A boilerplate/starter project for quickly building RESTful APIs using Node.js, Express, and Mongoose. It includes essential features like standard folder structure, middleware setup, authentication, environment management, unit and integration testing and api docs enabling quick and essential configurations to save time and maintain consistency.
npx @chapter247ind/node-boilerplate setup {app-name}
or
npx @chapter247ind/node-boilerplate setup <app-name> --module <module-names-separated-by-comma>
git clone --depth 1 https://github.com/Chapter247IND/node-boilerplate.git
cd node-boilerplate
npx rimraf ./.git
npm install
cp .env.example .env
npm run dev
The folder structure of the boilerplate :
1src/ 2├── config/ # Configuration files 3├── constants/ # Application-wide constants 4├── enums/ # Enums used throughout the app (e.g., user roles) 5├── middlewares/ # Global middlewares 6├── models/ # Database models 7├── controllers/ # Controllers handling user-related business logic 8├── middlewares/ # Middlewares specific routes (e.g., auth) 9├── models/ # All-related data models 10├── services/ # Services for operations, encapsulating complex logic 11├── validations/ # Validation schemas for all-related operations 12├── routes/ # Global route definitions 13├── types/ # Type definitions 14└── utils/ # Utility functions, with module handlers
npx @chapter247ind/node-boilerplate module-list
npx @chapter247ind/node-boilerplate add {module-name}
npx @chapter247ind/node-boilerplate help
1npx @chapter247ind/node-boilerplate make:route <file-name>
1npx @chapter247ind/node-boilerplate make:controller <file-name>
1npx @chapter247ind/node-boilerplate make:service <file-name>
1npx @chapter247ind/node-boilerplate make:validation <file-name>
1npx @chapter247ind/node-boilerplate make:model <file-name>
A quick reference for commonly used HTTP status codes.
Biome is an all-in-one code formatter, linter, and analyzer designed to maintain consistent coding standards and optimize code quality.
No vulnerabilities found.
No security vulnerabilities found.