Skip to content

About

🌍 iaeste lleida's website repository. iaeste is an international organization exchanging students for technical work experience abroad.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

IAESTE LC Lleida Web

IAESTE LC Lleida's Turborepo contains the public websites and a separately deployable HTTP API.

Local development

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

Checks

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 test

Scope 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.

Documentation

API

The API is an independent Hono app under apps/api. Its initial endpoints are:

  • POST /v1/registrations
  • GET /health
  • GET /openapi.json
  • GET /docs

Route schemas generate apps/api/openapi.json. TypeScript clients are generated from that document into packages/api-client:

npm run generate:api

CI fails if the committed output is stale.

API deployment

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

About

🌍 iaeste lleida's website repository. iaeste is an international organization exchanging students for technical work experience abroad.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages