{"id":15110071,"url":"https://github.com/manju1807/node-ts-express-template","last_synced_at":"2026-01-18T19:08:06.291Z","repository":{"id":256285829,"uuid":"854805103","full_name":"manju1807/node-ts-express-template","owner":"manju1807","description":"A robust and secure Express.js boilerplate with TypeScript, featuring advanced security middleware, MongoDB integration, and tools for building production-ready Node.js apps.","archived":false,"fork":false,"pushed_at":"2024-10-05T15:33:29.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T13:24:12.294Z","etag":null,"topics":["advance-security","boilerplate","cors","data-sanitization","expressjs","helmet","mongoose","nodejs","nosql-injection","produc","product-ready","secure-backend","template","typescript","xss-protection"],"latest_commit_sha":null,"homepage":"","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/manju1807.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}},"created_at":"2024-09-09T20:04:34.000Z","updated_at":"2024-10-05T15:33:33.000Z","dependencies_parsed_at":"2024-09-10T02:11:11.910Z","dependency_job_id":"029d71a8-c0dd-45fa-a21a-1816a64e1115","html_url":"https://github.com/manju1807/node-ts-express-template","commit_stats":null,"previous_names":["manju1807/node-ts-express-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manju1807%2Fnode-ts-express-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manju1807%2Fnode-ts-express-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manju1807%2Fnode-ts-express-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manju1807%2Fnode-ts-express-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manju1807","download_url":"https://codeload.github.com/manju1807/node-ts-express-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247364327,"owners_count":20927121,"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","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":["advance-security","boilerplate","cors","data-sanitization","expressjs","helmet","mongoose","nodejs","nosql-injection","produc","product-ready","secure-backend","template","typescript","xss-protection"],"created_at":"2024-09-25T23:40:37.922Z","updated_at":"2026-01-18T19:08:06.285Z","avatar_url":"https://github.com/manju1807.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure Node.js Express.js \u0026 TypeScript Boilerplate 🛡️\n\nA robust and secure Express.js boilerplate with TypeScript, featuring advanced security middleware, MongoDB integration, and development tools for building production-ready Node.js applications.\n\n## 🚀 Features\n\n- **Express.js with TypeScript**: Modern, type-safe backend development\n- **MongoDB Integration**: Easy database setup with Mongoose\n- **Advanced Security Measures**:\n  - 🔒 Helmet for setting various HTTP headers\n  - 🌐 CORS support\n  - 🚦 Rate limiting to prevent abuse\n  - 🧹 Data sanitization against NoSQL injection and XSS\n  - 🛑 Parameter pollution prevention\n- **Environment Configuration**: dotenv for easy environment variable management\n- **Logging**: Morgan for HTTP request logging\n- **Error Handling**: Custom error handling middleware\n- **API Routing**: Structured API routing setup\n- **Development Tools**:\n  - 🐛 Debug for better debugging experience\n  - 🔄 Nodemon for auto-restarting the server (add to your devDependencies)\n\n## 📋 Prerequisites\n\n- Node.js (v14+ recommended)\n- MongoDB\n\n## 🛠️ Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/manju1807/node-ts-express-template.git\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Create a `.env` file in the root directory and add your environment variables:\n\n   ```bash\n   MONGODB_URI=your_mongodb_connection_string\n   PORT=3000\n   NODE_ENV=development\n   ```\n\n4. Start the development server:\n\n   ```bash\n   npm run dev\n   ```\n\n## 🚦 API Routes\n\nAll routes are prefixed with `/api/v1`. Add your routes in `src/routes/index.ts`.\n\n## 🛡️ Security\n\nThis boilerplate comes with several security measures:\n\n-\\* **Helmet**: Sets various HTTP headers\n\n-\\* **CORS**: Configures Cross-Origin Resource Sharing\n\n-\\* **Rate Limiting**: Limits repeated requests to public APIs\n\n-\\* **Data Sanitization**: Prevents NoSQL injections and XSS attacks\n\n-\\* **Parameter Pollution Prevention**: Prevents parameter pollution\n\n## 🐛 Debugging\n\nUse the `debug` package for debugging. Start your application with:\n\n```bash\nDEBUG=app:* npm start\n```\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome! Feel free to check issues page.\n\n## 😎 Author\n\nManjunath R\n\n## 📜 License\n\nThis project is MIT licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanju1807%2Fnode-ts-express-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanju1807%2Fnode-ts-express-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanju1807%2Fnode-ts-express-template/lists"}