- Clone the repository
- Create a
.envfile with environment variables or export them.
echo "PUBLIC_BACKEND_API_URL=http://127.0.0.1:8000/api" > .envOR
export PUBLIC_BACKEND_API_URL=http://127.0.0.1:8000/api- Install dependencies
npm install -g pnpm
pnpm install- Start a development server (ensure that the django app is running)
pnpm run devTo create a production version of your app:
pnpm run buildYou can preview the production build with pnpm run preview.
To deploy your app, you may need to install an adapter for your target environment.
Safari requires https. To test it, the simplest solution is to use a local instance of caddy. To have it work properly, it is necessary to trick vite by sending it the Origin variable, as vite does not handle environment variables. The Caddyfile provided here is working properly, and can be launched by simply typing "caddy run".
In this setup, it is necessary to launch the backend with an adjusted CISO_ASSISTANT_URL=https://localhost.
- Use
caddy run -c Caddyfile-sso - Launch
ORIGIN=https://localhost:8443 PUBLIC_BACKEND_API_EXPOSED_URL=https://localhost:8443/api pnpm run devon frontend side - Launch
CISO_ASSISTANT_URL=https://localhost:8443 python manage.py runserveron backend side - Use
https://localhost:8443as the connection URL. - Configure your IdP accordingly.