{"id":20401028,"url":"https://github.com/sohanemon/express-ts","last_synced_at":"2026-04-07T16:32:30.110Z","repository":{"id":212247757,"uuid":"731040097","full_name":"sohanemon/express-ts","owner":"sohanemon","description":"Express TypeScript Starter designed to be a comprehensive template for building high-quality web applications using Express with TypeScript.","archived":false,"fork":false,"pushed_at":"2024-01-24T16:05:33.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-05T13:58:16.131Z","etag":null,"topics":["cookie-parser","cors","eslint","express","filebaserouting","helmet","husky","morgan","nodejs","nodemon","prettier","ts-node","typescript"],"latest_commit_sha":null,"homepage":"https://express-ts-waas.onrender.com","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/sohanemon.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}},"created_at":"2023-12-13T08:23:55.000Z","updated_at":"2023-12-13T15:18:32.000Z","dependencies_parsed_at":"2023-12-15T18:48:49.942Z","dependency_job_id":null,"html_url":"https://github.com/sohanemon/express-ts","commit_stats":null,"previous_names":["sohanemon/express-ts"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/sohanemon/express-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fexpress-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fexpress-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fexpress-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fexpress-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sohanemon","download_url":"https://codeload.github.com/sohanemon/express-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fexpress-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31520519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cookie-parser","cors","eslint","express","filebaserouting","helmet","husky","morgan","nodejs","nodemon","prettier","ts-node","typescript"],"created_at":"2024-11-15T04:47:36.840Z","updated_at":"2026-04-07T16:32:30.088Z","avatar_url":"https://github.com/sohanemon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express TypeScript Starter\n\nThis Express TypeScript Starter is designed to be a comprehensive template for building high-quality web applications using Express with TypeScript.\n\n## Benefits of Using This Starter\n\n### TypeScript Integration\n\n- **Type Safety**: TypeScript provides static type checking, which helps catch errors early in the development process.\n- **Improved Developer Experience**: Features like auto-completion and code navigation enhance productivity and code quality.\n\n### File-based Routing\n\n- **Simplified Routing**: Easily manage routes through a file-based routing system, which organizes endpoints within the file structure.\n- **Automatic Route Discovery**: New routes are automatically recognized without manual registration, streamlining the development workflow.\n\nAn example of file-based routing can be seen below:\n\n```typescript\n// src/routes/user.ts\n\nimport { Router } from 'express';\nconst router = Router();\n\n// GET request for http://localhost:5000/user\nrouter.get('/', function (req, res) {\n  res.send('User List');\n});\n\n// POST request for http://localhost:5000/user/create\nrouter.post('/create', function (req, res) {\n  res.send('User created');\n});\n\nexport default router;\n```\n\nThats it! No more integration.\n\n### Husky for Git Hooks\n\n- **Code Quality Enforcement**: Husky integrates Git hooks that ensure code standards are met before commits and pushes (e.g., linting and testing).\n- **Automated Workflows**: Set up pre-commit and pre-push workflows to automate tasks like code formatting and validation.\n\n\u003e Start with `npm run prepare`\n\n### ESLint for Code Linting\n\n- **Consistent Code Style**: Enforce a consistent coding style across the project, making the codebase easier to understand and maintain.\n- **Catch Common Errors**: Identify and fix common coding mistakes before they become problematic.\n\n### Prettier for Code Formatting\n\n- **Automatic Formatting**: `Prettier` formats code consistently, ensuring a uniform code style throughout the project.\n- **Integration with Editors**: Integrate `Prettier` with your code editor for on-the-fly formatting as you write code.\n\n### Additional Features\n\n- **Development Efficiency**: `Nodemon` is configured to automatically restart the server during development when code changes are detected.\n- **Environment Variables**: `Dotenv-cli` integration for managing environment variables in development and production setups.\n- **Production Ready**: The starter is configured for deployment on platforms like Render.com and Vercel, with predefined build and start commands.\n\n## Quick Start\n\n- **Initialize Project**: You can quickly bootstrap a new Express TypeScript project using the `npx` command.\n\n```bash\nnpx sohanemon@latest express-ts my-express-app\n```\n\n```bash\nnpx sohanemon@latest express-ts my-express-app --yarn\n```\n\n```bash\nnpx sohanemon@latest express-ts my-express-app --pnpm\n```\n\n```bash\nnpx sohanemon@latest express-ts my-express-app --bun\n\n```\n\n## Getting Started\n\n1. Clone the repository.\n2. Install dependencies with `npm install`.\n3. Start the development server with `npm run dev`.\n\n## Scripts\n\n- `npm start`: Launches the server.\n- `npm run build`: Compiles TypeScript to JavaScript in the `dist` directory.\n- `npm run dev`: Starts the development server with nodemon.\n- `npm run lint`: Runs `ESLint` to check for linting errors.\n- `npm run format`: Checks for formatting issues with `Prettier`.\n- `npm run format:write`: Formats code with `Prettier`.\n\n## Deployment\n\nFollow the instructions in `docs/render.md` for deploying your application on Render.com.\n\n## Contribution\n\nFeel free to fork and use this starter template for your projects. Contributions to enhance this template are welcome.\n\n## License\n\nThis project is open-sourced under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohanemon%2Fexpress-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsohanemon%2Fexpress-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohanemon%2Fexpress-ts/lists"}