This is the backend service for Project Arcade, built with Spring Boot. It provides the necessary APIs for the application, including user authentication, order processing, and data management.
- Java 21
- Spring Boot 3.3.4
- Gradle
- Docker
- Git
- Java 21 installed
- Gradle installed
- Docker installed (if using the containerized version)
- Clone the repository:
git clone <repository-url> cd backend
- Build the project:
./gradlew build
- Run the application:
./gradlew bootRun
- The backend should now be running at
http://localhost:8081
You can pull the pre-built Docker images from GitLab:
docker pull registry.gitlab.com/kdg-ti/the-lab/teams-24-25/project-arcade/backendEnsure you have docker-compose.yml in your project directory, then run:
docker-compose up -dThis will start both the backend and any required services.
Ensure the following environment variables are set:
SPRING_DATASOURCE_URL– Database connection stringSPRING_DATASOURCE_USERNAME– Database usernameSPRING_DATASOURCE_PASSWORD– Database password- Other required secrets or configurations
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/example |
Retrieves example data |
| POST | /api/example |
Creates new data |
| PUT | /api/example/{id} |
Updates existing data |
| DELETE | /api/example/{id} |
Deletes data |
If your backend requires a database, ensure it's running and configured properly. If using Docker, update the docker-compose.yml file with the correct database settings.
The backend is deployed using Docker. Ensure the latest image is pushed before running in production:
docker build -t registry.gitlab.com/kdg-ti/the-lab/teams-24-25/project-arcade/backend .
docker push registry.gitlab.com/kdg-ti/the-lab/teams-24-25/project-arcade/backend- Hussein Ali, Rune Bossuyt, Pepijn Theuns