Welcome to the Express TypeScript Boilerplate 2024 – a streamlined, efficient, and scalable foundation for building powerful backend services. This boilerplate merges modern tools and practices in Express.js and TypeScript, enhancing productivity, code quality, and performance.
Developed to streamline backend development, this boilerplate is your solution for:
git clone https://github.com/edwinhern/express-typescript-2024.gitcd express-typescript-2024npm ci.env: Copy .env.template to .env.env: Fill in necessary environment variablesnpm run devnpm run build.env to NODE_ENV="production" then npm run build && npm run start.
├── api
│ ├── healthCheck
│ │ ├── __tests__
│ │ │ └── healthCheckRouter.test.ts
│ │ └── healthCheckRouter.ts
│ └── user
│ ├── __tests__
│ │ ├── userRouter.test.ts
│ │ └── userService.test.ts
│ ├── userModel.ts
│ ├── userRepository.ts
│ ├── userRouter.ts
│ └── userService.ts
├── api-docs
│ ├── __tests__
│ │ └── openAPIRouter.test.ts
│ ├── openAPIDocumentGenerator.ts
│ ├── openAPIResponseBuilders.ts
│ └── openAPIRouter.ts
├── common
│ ├── __tests__
│ │ ├── errorHandler.test.ts
│ │ └── requestLogger.test.ts
│ ├── middleware
│ │ ├── errorHandler.ts
│ │ ├── rateLimiter.ts
│ │ └── requestLogger.ts
│ ├── models
│ │ └── serviceResponse.ts
│ └── utils
│ ├── commonValidation.ts
│ ├── envConfig.ts
│ └── httpHandlers.ts
├── index.ts
└── server.ts
We'd love to hear your feedback and suggestions for further improvements. Feel free to contribute and join us in making backend development cleaner and faster!
🎉 Happy coding!
$ claude mcp add express-typescript \
-- python -m otcore.mcp_server <graph>