This project serves the dist directory via an Express server.
- Node.js (v22 or later recommended)
- npm
npm install
node server.jsStatic assets are already included in the dist directory, so no separate build
step is required.
The server listens on PORT (default 8080).
KEYCLOAK_URL– Keycloak base URL (defaulthttps://dev-auth.finmars.com)KEYCLOAK_REALM– Keycloak realm (defaultfinmars)KEYCLOAK_CLIENT_ID– Keycloak client ID (defaultfinmars)REDIRECT_PATH– redirect path after login (default/v/profile)PORT– HTTP port to listen on (default8080)
Export variables before running the server, for example:
KEYCLOAK_URL=https://auth.example.com PORT=3000 node server.jsBuild and run using Docker:
docker build -t finmars-start-page .
docker run -p 8080:8080 finmars-start-pageUse -e VAR=value to pass environment variables into the container.