This project resides in a pnpm monorepo. The web server is located in the package named web, currently stored in /web. All the other accessory packages are stored in the /packages directory. To use packages installed in the monorepo, you can utilize the workspace: directive as outlined in the pnpm documentation. To run the web server in development mode, execute the following command:
$ pnpm --filter web devNote: The
--filter <package-name>option allows you to select a specific list of packages on which to run the desired script.
There are several ways to deploy this platform, with the recommended approach being the use of Docker. The container image for the web server can be built using the Dockerfile located in the root of the repository. To simplify deployment, Docker Compose can be employed by following the configuration schema in docker-compose.yml. To start the container for production, use the following command:
$ docker compose up -d --buildThis command will build the image locally and start the container, exposing port 3000. It is advised to use a reverse proxy service.
To configure traefik, change the example configuration traefik/traefik.yml and include a BASIC_AUTH variable in the environment running docker. You can generate one using the following:
$ printf "<user>:$(openssl passwd -apr1 <your password>)"- Coauthor: Antonio Trapanese [@hydra-yse]
- Coauthor: Giuseppe Pascale [@pasc4le]
By accessing, modifying, deploying and sharing this codebase, you are agreeing to its assigned legal terms, defined in the LICENSE.md. The LICENSE.md file (and its contents) must be shared along side the codebase to whomever wants to view, access or make changes to it.
