This repository contains the backend of the DinoDev project.
- Make sure that the Gropius backend is accessible, either by running it locally or by using the deployed version. If
running local, ensure that the public-api and the login-service are in the
scrum-game-network
network. - Edit the docker-compose.yml file to set the correct environment variables:
- GROPIUS_URL: http://:8080
- GROPIUS_FRONTEND_URL: http://localhost:4200
- For Version 1.2 (and older)
- GROPIUS_AUTH_SECRET: secret of the login service The frontend URL is used to provide a direct link from issues. The given URL is the default URL of the Gropius frontend when running locally. When using a deployed version, ask the administrator for the secret.
- Newer versions:
- GROPIUS_AUTH_PUBLICKEY: <GROPIUS_PUBLIC_KEY> The public RSA key, stored at the Gropius Frontend. Encoded as Base64.
- Run
docker compose up
to start the backend.
- Follow the instructions of the first step in the previous section.
- Only run the database, i.e.,
docker compose up database-scrum-game
. - Edit the
application-dev
properties similar to step 2 in the previous section. With the default Gropius setup, only the secret/public key needs to be changed. - Run the backend in the
dev
profile:./gradlew bootRun --args='--spring.profiles.active=dev'
. Or simply use an IntelliJ run configuration, but make sure to set thedev
profile in the run configuration.
config
: Contains the configuration classes.controller
: Contains the GraphQL controllers.exception
: Code for exception handling.persistance
: Contains the repositories, entities, and mappings.service
: Contains the services.util
: Contains utility classes.