- Node.js
- pnpm
- Clone the repository with submodules
git clone --recurse-submodules <repo-url>- Install dependencies
pnpm i- Copy Environment Variables
# frontend
cp ./apps/frontend/.env.local.example ./apps/frontend/.env.local
# backend
cp ./apps/backend/.dev.vars.example ./apps/backend/.dev.vars
# docker
cp ./.env.example ./.envFill in the environment variables in the files as needed.
- Start OpenTripPlanner
docker comose up -d- Start the development server
pnpm devpnpm dev- Start the development serverpnpm check- Run linting and formatting checkspnpm fix- Fix linting and formatting issuespnpm typecheck- Run TypeScript type checkingpnpm build- Build frontend and backend
VITE_BACKEND_BASE_URL: Base URL of the backend API
FRONTEND_BASE_URL: Base URL of the frontendOPENAI_API_KEY: API key for OpenAIOPENAI_BASE_URL: Base URL for OpenAI APIODPT_ACCESS_TOKEN: Access token for ODPT APIODPT_CHALLENGE_ACCESS_TOKEN: Access token for ODPT Challenge APIOTP_GTFS_API_BASEURL: Base URL for OpenTripPlanner GTFS API
ODPT_CHALLENGE_ACCESS_TOKEN: Access token for ODPT Challenge APIOTP_MEMORY_LIMIT: Memory limit for OpenTripPlanner (ex:-Xmx16G)OTP_SERVER_PORT: Port for OpenTripPlanner serverOTP_OPTIONS: Options for OpenTripPlanner server--build --save --serve: Build and save the graph and serve the server (probably only needed for the first time)--load --serve: Load the graph and serve the server