{"id":31934072,"url":"https://github.com/getmonirr/tsc-server-boilerplate","last_synced_at":"2026-05-19T05:38:27.006Z","repository":{"id":251526455,"uuid":"837674025","full_name":"getMonirr/tsc-server-boilerplate","owner":"getMonirr","description":"A CLI tool to quickly set up a TypeScript Node.js Express server with built-in features for modular development, authentication, and MongoDB integration.","archived":false,"fork":false,"pushed_at":"2025-07-19T05:54:00.000Z","size":154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T10:40:49.797Z","etag":null,"topics":["boilerplate","express-server","nodejs","server","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/create-tsc-server","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getMonirr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-03T17:09:42.000Z","updated_at":"2025-07-19T05:54:04.000Z","dependencies_parsed_at":"2024-08-03T18:30:39.272Z","dependency_job_id":"ff631c23-b2ae-4c2e-82d8-333763903b8a","html_url":"https://github.com/getMonirr/tsc-server-boilerplate","commit_stats":null,"previous_names":["getmonirr/tsc-server-boilerplate"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/getMonirr/tsc-server-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getMonirr%2Ftsc-server-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getMonirr%2Ftsc-server-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getMonirr%2Ftsc-server-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getMonirr%2Ftsc-server-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getMonirr","download_url":"https://codeload.github.com/getMonirr/tsc-server-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getMonirr%2Ftsc-server-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018122,"owners_count":26086280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate","express-server","nodejs","server","typescript"],"created_at":"2025-10-14T06:21:23.283Z","updated_at":"2025-10-14T06:21:24.571Z","avatar_url":"https://github.com/getMonirr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create TypeScript Boilerplate Server\n\n[![npm version](https://img.shields.io/npm/v/create-tsc-server.svg)](https://www.npmjs.com/package/create-tsc-server)\n[![npm downloads](https://img.shields.io/npm/dt/create-tsc-server.svg)](https://www.npmjs.com/package/create-tsc-server)\n[![license](https://img.shields.io/npm/l/create-tsc-server.svg)](https://github.com/yourusername/create-tsc-server/blob/main/LICENSE)\n\n`create-tsc-server` is a command-line tool that helps you quickly create a boilerplate TypeScript server by cloning a predefined GitHub repository.\n\n## Features\n\n- 🚀 **Quick Setup**: Instantly clone a TypeScript server template and get started.\n- 💡 **Easy to Use**: Simple command to create a new server project.\n- 📦 **Production and Development Scripts**: Scripts to start the server in production and development modes.\n- 🛠️ **Build Script**: Compile TypeScript code to JavaScript.\n- 🧹 **Linting and Formatting**: ESLint and Prettier configurations for code quality.\n- 🔐 **Security**: Built-in support for JWT authentication and bcrypt for password hashing.\n- 🌐 **Middleware**: Includes cookie-parser, CORS, and dotenv for environment variables.\n- 📦 **Database**: Mongoose integration for MongoDB.\n- 📂 **builtin module create**:Automatically create import module files.\n\n## Update\n\n### Creating a New Module\n\nTo create a new module within your existing TypeScript server project, use the following command:\n\n```bash\nnpx tsc-module \u003cmodule-name\u003e\n```\n\nThis command will:\n\n1. Create a new directory named `\u003cmodule-name\u003e` inside the `src/modules` directory.\n2. Generate the following files inside the new directory:\n\n   - `\u003cmodule-name\u003e.constant.ts`\n   - `\u003cmodule-name\u003e.controller.ts`\n   - `\u003cmodule-name\u003e.interface.ts`\n   - `\u003cmodule-name\u003e.model.ts`\n   - `\u003cmodule-name\u003e.route.ts`\n   - `\u003cmodule-name\u003e.service.ts`\n   - `\u003cmodule-name\u003e.utils.ts`\n   - `\u003cmodule-name\u003e.validation.ts`\n\n     Each file will contain a basic template to get you started quickly.\n\n## Example\n\n```bash\nnpx tsc-module user\n```\n\nThis will create the following structure inside `src/modules`:\n\n- User/\n  - user.constant.ts\n  - user.controller.ts\n  - user.interface.ts\n  - user.model.ts\n  - user.route.ts\n  - user.service.ts\n  - user.utils.ts\n  - user.validation.ts\n\n## Installation\n\nYou can install `create-tsc-server` globally using npm:\n\n```bash\nnpm install -g create-tsc-server\n```\n\nOr use it directly with npx (no installation required):\n\n```bash\nnpx create-tsc-server \u003capp-name\u003e\n```\n\n## Usage\n\nTo create a new TypeScript server project, run:\n\n```bash\nnpx create-tsc-server my-app\n```\n\nReplace my-app with your desired project name.\n\n### This will:\n\n1. Clone the boilerplate repository.\n2. Create a new directory named awesome-server.\n3. Remove the .git directory from the cloned repository.\n4. Set up your new TypeScript server project.\n\n## Boilerplate Repository\n\nThe tool clones the repository from [GitHub](https://github.com/getMonirr/tsc-server-boilerplate.git).\n\n## Project Structure\n\nThe generated project includes:\n\n```\n📦 src\n├─ app\n│  ├─ builder\n│  ├─ config\n│  ├─ DB\n│  ├─ errors\n│  │  ├─ AppError.ts\n│  │  ├─ handleCastError.ts\n│  │  ├─ handleDuplicateError.ts\n│  │  ├─ handleValidationError.ts\n│  │  └─ handleZodError.ts\n│  ├─ helpers\n│  ├─ interface\n│  │  ├─ error.ts\n│  │  └─ index.d.ts\n│  ├─ middlewares\n│  │  ├─ authGaurd.ts\n│  │  ├─ globalErrorHandler.ts\n│  │  ├─ notFoundAPIHandler.ts\n│  │  └─ validateRequest.ts\n│  ├─ routes\nmodules\n│  │  └─ ExampleMoudles\n│  │     ├─ user.constant.ts\n│  │     ├─ user.controller.ts\n│  │     ├─ user.interface.ts\n│  │     ├─ user.model.ts\n│  │     ├─ user.route.ts\n│  │     ├─ user.service.ts\n│  │     ├─ user.utils.ts\n│  │     └─ user.validation.ts\n│  ├─ shared\n│  └─ utils\n│     ├─ catchAsync.ts\n│     └─ sendResponse.ts\n├─ server.t\n├─ app.ts\n├─ tsconfig.json\n├─ .env.example\n├─ .prettierrc.json\n├─ eslint.config.mjs\n└─ yarn.lock\n```\n\n©generated by [Project Tree Generator](https://woochanleee.github.io/project-tree-generator)\n\n## Scripts\n\nThe package.json includes several useful scripts:\n\n1. **Start in Production:** `yarn start:prod`\n   - Runs the server using the compiled JavaScript files.\n2. **Start in Development:** `yarn start:dev`\n   - Runs the server using ts-node-dev with automatic restarts and TypeScript transpilation.\n3. **Build:** `yarn build`\n   - Compiles TypeScript code to JavaScript.\n4. **Lint:** `yarn lint`\n   - Runs ESLint on the src directory.\n5. **Lint Fix:** `yarn lint:fix`\n   - Automatically fixes ESLint issues in the src directory.\n6. **Prettier:** `yarn prettier`\n   - Formats the code using Prettier.\n7. **Prettier Fix:** `yarn prettier:fix`\n   - Automatically formats the code in the src directory.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any bugs, improvements, or features you'd like to see.\n\n1. Fork the repository.\n2. Create a new branch (git checkout -b feature-branch).\n3. Make your changes.\n4. Commit your changes (git commit -am 'Add new feature').\n5. Push to the branch (git push origin feature-branch).\n6. Open a Pull Request.\n\n## Dependencies\n\n### Production\n\n- @typescript-eslint/eslint-plugin\n- @typescript-eslint/parser\n- bcrypt\n- cookie-parser\n- cors\n- dotenv\n- eslint\n- express\n- http-status\n- jsonwebtoken\n- mongoose\n- zod\n\n### Development\n\n- @eslint/js\n- @types/bcrypt\n- @types/cookie-parser\n- @types/cors\n- @types/express\n- @types/jsonwebtoken\n- @types/node\n- eslint-config-prettier\n- globals\n- prettier\n- ts-node\n- ts-node-dev\n- typescript\n- typescript-eslint\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE]() file for details.\n\n## Contact\n\nFor any questions or feedback, feel free to reach out via [GitHub Issues]().\n\n##\n\nMade with ❤️ by [MD. Monir Hoshen](https://getmonirr.vercel.app/), [GitHub Profile](https://github.com/getMonirr)\n# tsc-server-npm\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetmonirr%2Ftsc-server-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetmonirr%2Ftsc-server-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetmonirr%2Ftsc-server-boilerplate/lists"}