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.exampleto.env.localand 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