Monorepo with Next.js frontend + FastAPI backend.
apps/
web/ # main Next.js app (Bun)
marketing/ # landing page (Next.js / Bun)
api/ # FastAPI (uv)
packages/
shared/ # shared TypeScript types
# install all JS dependencies
bun install
# install Python dependencies
cd apps/api && uv sync && cd ../..
# start the main app (http://localhost:3000)
bun run dev
# start the marketing page (http://localhost:3001)
bun run marketing:dev
# start the API (http://localhost:8000)
bun run api:devOpen separate terminals for each service.
| Command | Runs in |
|---|---|
bun run dev |
apps/web (next dev) |
bun run build |
apps/web (next build) |
bun run lint |
apps/web (next lint) |
bun run marketing:dev |
apps/marketing |
bun run marketing:build |
apps/marketing |
bun run api:dev |
apps/api (uvicorn) |
apps/web/.env.local— main app env varsapps/marketing/.env.local— landing page env varsapps/api/.env— backend env vars
After seeding the database, you can use the following default credentials to log in and test different role-based views:
| Role | Password | |
|---|---|---|
| Admin | [email protected] |
pass5506 |
| Fleet Manager | [email protected] |
pass2679 |
| Safety Officer | [email protected] |
pass1434 |
| Driver | [email protected] |
pass1234 |