This project was created with Better-T-Stack, a modern TypeScript stack that combines React, React Router, Express, ORPC, and more.
- TypeScript - For type safety and improved developer experience
- React Router - Declarative routing for React
- TailwindCSS - Utility-first CSS for rapid UI development
- shadcn/ui - Reusable UI components
- Express - Fast, unopinionated web framework
- oRPC - End-to-end type-safe APIs with OpenAPI integration
- Bun - Runtime environment
- Prisma - TypeScript-first ORM
- SQLite/Turso - Database engine
- Authentication - Better-Auth
- Turborepo - Optimized monorepo build system
First, install the dependencies:
npm installThis project uses SQLite with Prisma.
- Start the local SQLite database:
cd apps/server && npm run db:local-
Update your
.envfile in theapps/serverdirectory with the appropriate connection details if needed. -
Generate the Prisma client and push the schema:
npm run db:pushThen, run the development server:
npm run devOpen http://localhost:5173 in your browser to see the web application. The API is running at http://localhost:3000.
chatbot/
├── apps/
│ ├── web/ # Frontend application (React + React Router)
│ └── server/ # Backend API (Express, ORPC)
npm run dev: Start all applications in development modenpm run build: Build all applicationsnpm run dev:web: Start only the web applicationnpm run dev:server: Start only the servernpm run check-types: Check TypeScript types across all appsnpm run db:push: Push schema changes to databasenpm run db:studio: Open database studio UI