First, install the dependencies:
bun install
This project uses PostgreSQL with Drizzle ORM.
Make sure you have a PostgreSQL database set up.
Update your apps/server/.env file with your PostgreSQL connection details.
Apply the schema to your database:
bun run db:push
Then, run the development server:
bun run dev
Open http://localhost:5173 in your browser to see the web application. The API is running at http://localhost:3000.
bun run checkERP-Svelte-Hono/
├── apps/
│ ├── web/ # Frontend application (SvelteKit)
│ └── server/ # Backend API (Hono, ORPC)
├── packages/
│ ├── api/ # API layer / business logic
│ ├── auth/ # Authentication configuration & logic
│ └── db/ # Database schema & queries
bun run dev: Start all applications in development modebun run build: Build all applicationsbun run dev:web: Start only the web applicationbun run dev:server: Start only the serverbun run check-types: Check TypeScript types across all appsbun run db:push: Push schema changes to databasebun run db:generate: Generate database client/typesbun run db:migrate: Run database migrationsbun run db:studio: Open database studio UIbun run check: Run Oxlint and Oxfmt