A robust TypeScript-based API template with built-in error handling, logging, and OpenAPI documentation using TSOA.
- 🚀 TypeScript for type safety and better developer experience
- 📚 OpenAPI/Swagger documentation using TSOA
- 🔒 Built-in security with Helmet
- 📝 Winston logging
- ⚡️ Express.js for fast, unopinionated routing
- 🛡️ Rate limiting
- ✨ ESLint + Prettier for code consistency
- 🔄 Hot reloading with Nodemon
- Node.js >= 18
- npm or yarn (yarn is preferred)
-
Clone the repository:
git clone [email protected]:thecodearcher/tsoa-api-template.git cd tsoa-api-template
-
Install dependencies:
yarn install
-
Create a
.env
file:cp .env.example .env
-
Start development server:
yarn dev
Once the server is running, access the Swagger documentation at:
- Add Prisma ORM for database access
- Add Docker support??