This project was created with Better-T-Stack, a modern TypeScript stack that combines Express, and more.
- TypeScript - For type safety and improved developer experience
- Express - Fast, unopinionated web framework
- Node.js - Runtime environment
- Prisma - TypeScript-first ORM
- PostgreSQL - Database engine
- Biome - Linting and formatting
- Husky - Git hooks for code quality
First, install the dependencies:
pnpm installThis project uses PostgreSQL with Prisma.
-
Make sure you have a PostgreSQL database set up.
-
Update your
apps/server/.envfile with your PostgreSQL connection details. -
Generate the Prisma client and push the schema:
pnpm db:pushThen, run the development server:
pnpm devThe API is running at http://localhost:3000.
routine-backend/
├── apps/
│ └── server/ # Backend API (Express)
├── packages/
│ ├── api/ # API layer / business logic
pnpm dev: Start all applications in development modepnpm build: Build all applicationspnpm dev:web: Start only the web applicationpnpm dev:server: Start only the serverpnpm check-types: Check TypeScript types across all appspnpm db:push: Push schema changes to databasepnpm db:studio: Open database studio UIpnpm check: Run Biome formatting and linting