A modern Express.js template with TypeScript, featuring:
- 🚀 Express.js with TypeScript
- 📦 Drizzle ORM for PostgreSQL
- 🔒 Built-in security with Helmet
- ✨ Prettier for code formatting
- 🚦 Eslint for code linting
- 🧪 Vitest for testing
- 🔄 Server-Sent Events support with better-sse
- ✅ Request validation with Zod
- 🏗 Esbuild for bundling
- 🧾 Api documentation with Zod-to-openapi and Swagger UI.
- Node.js
- PostgreSQL
- Clone the repository
- Copy
.env.example
to.env.local
and configure your environment variables - Install dependencies:
npm install
- Push drizzle database schema;
npm run db:push
- Start development server;
npm run dev
- Visit localhost:8000/docs to view api docs.
- Create and query posts from api docs.
This template uses Drizzle ORM with PostgreSQL. Configure your database connection in the .env.local
file.
MIT