- Clone the repository
- Create a
.env
file with environment variables or export them.
echo "PUBLIC_BACKEND_API_URL=http://127.0.0.1:8000/api" > .env
OR
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 dev
To create a production version of your app:
pnpm run build
You 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.