IAESTE LC Lleida's Turborepo contains the public websites and a separately deployable HTTP API.
Copy .env.example to .env and fill it in. Every variable there is required
unless marked optional: the apps validate their configuration at startup
(packages/env) and fail with a named error rather than booting misconfigured.
npm install
npm run dev| Workspace | URL |
|---|---|
apps/web |
http://localhost:3000 |
apps/inscripcions |
http://localhost:3003 |
apps/api |
http://localhost:3004 |
These are the CI gates. Run them from the root before pushing:
npm run format:check
npm run lint # warnings are errors
npm run check-types
npm run testScope any of them to a workspace while iterating, e.g.
npm run --workspace @repo/constants test.
Working on this repo with a coding agent? See AGENTS.md.
The API is an independent Hono app under apps/api. Its initial endpoints are:
POST /v1/registrationsGET /healthGET /openapi.jsonGET /docs
Route schemas generate apps/api/openapi.json. TypeScript clients are generated
from that document into packages/api-client:
npm run generate:apiCI fails if the committed output is stale.
Deploy apps/api from the iaeste-api image. Its container entrypoint applies
the committed Drizzle migrations under a PostgreSQL advisory lock before it
starts Hono. Image names, runtime variables, Coolify setup, deployment order,
and rollback are documented in docs/deployment.md.
Set CORS_ALLOWED_ORIGINS to the comma-separated frontend origins that may use
the API, for example https://iaestelleida.cat. Set NEXT_PUBLIC_API_URL on
each frontend deployment to the API origin. The production fallback is
https://api.iaestelleida.cat.
For independent Turborepo builds, use filters instead of the root build:
npx turbo run build --filter=@repo/api
npx turbo run build --filter=inscripcions