Gathering detailed insights and metrics for create-tsc-server
Gathering detailed insights and metrics for create-tsc-server
A CLI tool to quickly set up a TypeScript Node.js Express server with built-in features for modular development, authentication, and MongoDB integration.
npm install create-tsc-server
Typescript
Module System
Node Version
NPM Version
65.5
Supply Chain
97.9
Quality
81.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
979
Last Day
1
Last Week
11
Last Month
51
Last Year
979
MIT License
7 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Aug 27, 2024
Minified
Minified + Gzipped
Latest Version
2.0.4
Package Id
create-tsc-server@2.0.4
Unpacked Size
11.18 kB
Size
4.41 kB
File Count
6
NPM Version
10.8.1
Node Version
20.16.0
Published on
Aug 27, 2024
Cumulative downloads
Total Downloads
Last Day
-50%
1
Compared to previous day
Last Week
-52.2%
11
Compared to previous week
Last Month
112.5%
51
Compared to previous month
Last Year
0%
979
Compared to previous year
3
create-tsc-server
is a command-line tool that helps you quickly create a boilerplate TypeScript server by cloning a predefined GitHub repository.
To create a new module within your existing TypeScript server project, use the following command:
1npx tsc-module <module-name>
This command will:
Create a new directory named <module-name>
inside the src/modules
directory.
Generate the following files inside the new directory:
<module-name>.constant.ts
<module-name>.controller.ts
<module-name>.interface.ts
<module-name>.model.ts
<module-name>.route.ts
<module-name>.service.ts
<module-name>.utils.ts
<module-name>.validation.ts
Each file will contain a basic template to get you started quickly.
1npx tsc-module user
This will create the following structure inside src/modules
:
You can install create-tsc-server
globally using npm:
1npm install -g create-tsc-server
Or use it directly with npx (no installation required):
1npx create-tsc-server <app-name>
To create a new TypeScript server project, run:
1npx create-tsc-server my-app
Replace my-app with your desired project name.
The tool clones the repository from GitHub.
The generated project includes:
📦 src
├─ app
│ ├─ builder
│ ├─ config
│ ├─ DB
│ ├─ errors
│ │ ├─ AppError.ts
│ │ ├─ handleCastError.ts
│ │ ├─ handleDuplicateError.ts
│ │ ├─ handleValidationError.ts
│ │ └─ handleZodError.ts
│ ├─ helpers
│ ├─ interface
│ │ ├─ error.ts
│ │ └─ index.d.ts
│ ├─ middlewares
│ │ ├─ authGaurd.ts
│ │ ├─ globalErrorHandler.ts
│ │ ├─ notFoundAPIHandler.ts
│ │ └─ validateRequest.ts
│ ├─ routes
modules
│ │ └─ ExampleMoudles
│ │ ├─ user.constant.ts
│ │ ├─ user.controller.ts
│ │ ├─ user.interface.ts
│ │ ├─ user.model.ts
│ │ ├─ user.route.ts
│ │ ├─ user.service.ts
│ │ ├─ user.utils.ts
│ │ └─ user.validation.ts
│ ├─ shared
│ └─ utils
│ ├─ catchAsync.ts
│ └─ sendResponse.ts
├─ server.t
├─ app.ts
├─ tsconfig.json
├─ .env.example
├─ .prettierrc.json
├─ eslint.config.mjs
└─ yarn.lock
©generated by Project Tree Generator
The package.json includes several useful scripts:
yarn start:prod
yarn start:dev
yarn build
yarn lint
yarn lint:fix
yarn prettier
yarn prettier:fix
Contributions are welcome! Please open an issue or submit a pull request for any bugs, improvements, or features you'd like to see.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, feel free to reach out via GitHub Issues.
Made with ❤️ by MD. Monir Hoshen, GitHub Profile
No vulnerabilities found.
No security vulnerabilities found.