Building an ERP system for a local store in public.
- Install Deps
deno install - Start docker compose:
docker compose up -d - Generate prisma client
deno task -r prisma:generate - Run database migrations:
deno task -r prisma:migrate:dev
deno task dev- Run tests:
deno test - Run linting:
deno lint
Open the Grafana Dashboard on https://localhost:3000, to view the traces.
The ERP system follows a modern, monorepo-based architecture with clear separation of concerns:
- Framework: tRPC for type-safe API development.
- Database: PostgreSQL with Prisma ORM for type-safe database access.
- Authentication: Session-based authentication.
- Framework: React with Vite for fast development and building.
- Routing: TanStack Router for type-safe routing.
- State Management: TanStack Query with tRPC for end-to-end type-safe API communication.
- UI Components: Shadcn/ui and Tailwind CSS.
- Internationalization: i18next for multi-language support (English and Arabic).
- Backend: Deployed on Deno Deploy.
- Frontend: Deployed as a SPA and served from same instance as backend on Deno Deploy.
- Database: Managed PostgreSQL on Neon
MIT License