Welcome to Exparo testing library!
You can test hosted admin panel on https://exparo.assylniet.kz login: admin@example.com password: admin
Also you can test hosted demo website on https://exparo-demo.assylniet.kz
The repository is monorepo with the following structure:
apps/
|__ admin/
|__ backend/
|__ web/
packages/
|__ library/
The admin panel is a React application that allows you to manage your experiments and users.
To run the admin panel locally:
pnpm install
pnpm run dev --filter=adminThis will start the admin panel on http://localhost:5174. You can login with the credentials from the .env file: ADMIN_EMAIL and ADMIN_PASSWORD.
The backend is a Django application that provides the API for the admin panel.
To run the backend locally:
docker-compose upThis will start the backend on http://localhost:8000.
The web application is a React application that allows you to test your experiments.
To run the web application locally:
pnpm install
pnpm run dev --filter=webAlthough it's recommended to run:
pnpm run devThis will start all applications and run build for library in watch mode. That is slightly faster than building library on every change
The library is a React library that allows you to use experiments in your application.
You can't exactly run the library locally. Since it is a package, it can't be run directly. Use the web application to test it.
To use the library read the documentation in the docs.
To deploy the application you need Docker and Docker Compose.
- Change the .env file to your needs. ALLOWED_HOSTS is the hosts you want to use.
- If you want to configure SSL certificates:
- Run
chmod +x ./init-letsencrypt.sh - Run
./init-letsencrypt.sh -e <email> -d <domain1> -d <domain2> -d <domain3>... - Change the ./nginx/conf.d/${your-domain}.conf files to your needs.
- Run
Run:
docker-compose up -dThis will start the applications.