5 | | [wiki:UseCaseImplementation UseCaseImplementation] |
| 5 | **[wiki:UseCaseImplementation UseCaseImplementation]** |
| 6 | |
| 7 | == RouteMK Project Setup Guide |
| 8 | === Git Repository: |
| 9 | **[[https://github.com/KikoTheFinker/RouteMK|RouteMK GitHub]]** |
| 10 | === Prerequisites |
| 11 | - Docker and Docker Compose installed on your system **[[https://docs.docker.com/get-started/get-docker|Download Docker]]** |
| 12 | - Git (to clone the repository) **[[https://git-scm.com/downloads|Download Git]]** |
| 13 | === Setup Instructions |
| 14 | |
| 15 | 1. Clone the repository: |
| 16 | {{{ |
| 17 | git clone https://github.com/KikoTheFinker/RouteMK |
| 18 | }}} |
| 19 | |
| 20 | |
| 21 | 2. Build and run the containers: |
| 22 | {{{ |
| 23 | docker-compose up --build |
| 24 | }}} |
| 25 | |
| 26 | === Accessing the Application |
| 27 | - Spring Boot application: **http://localhost:8080** |
| 28 | - PostgreSQL database: |
| 29 | - Host: localhost |
| 30 | - Port: 5432 |
| 31 | - Database: RouteMK |
| 32 | - Username: postgres |
| 33 | - Password: postgres |
| 34 | |
| 35 | === Database Management |
| 36 | - Database data is persisted in a Docker volume named `postgres_data` |
| 37 | - The initialization script (`RouteMK.sql`) runs automatically on first database startup |
| 38 | - To reset the database: |
| 39 | {{{ |
| 40 | docker compose down -v |
| 41 | docker compose up -d |
| 42 | }}} |
| 43 | |
| 44 | === Stop the application |
| 45 | {{{ |
| 46 | docker compose down |
| 47 | }}} |
| 48 | |