This is the repository for the FER Job Fair website.
The current folder contains the frontend code. The backend code is located in the backend folder.
Make sure to install the dependencies first:
yarn installThe .tool-versions file contains the versions of the tools used in this project.
If you use asdf, you can run asdf install to install the correct versions.
Next, create a .env file.
The template for the files is .env.example.
Make sure to follow the setup steps for the backend next.
Next, generate the GraphQL schema on the backend:
yarn graphql:schema:dumpAnd then generate the GraphQL types for the frontend:
yarn graphql:schema:genStart the development server on http://localhost:3000 (by default, set the PORT environment variable to change the port)
yarn devCaddy is used as a reverse proxy for the frontend and backend. The configuration file is the Caddyfile. To run Caddy, run the following command:
sudo caddy runIt assumes that the frontend is running on port 3000 and the backend is running on port 3001. It will start a reverse proxy on port 80.
Build the frontend for production:
yarn buildStart the frontend in production mode:
yarn startTo run the whole application in a Docker container, run the following command:
docker compose up --build --detach --remove-orphans --pull always --waitIt will start all required services (frontend, backend, database, proxy, minio).
No ports are exposed to the host machine.
To access the application, you to create a docker-compose.override.yml file
and add the appropriate configuration/overrides to it.