1. How to Run
- Clone Repository:
git clone https://github.com/joeaoregan/TUS-26-MA-CA1-Guitar-Store-API.git - Environment Setup: Create a .env file in the root directory (Project uses java-dotenv).
SPRING_DATASOURCE_URL=<url> SPRING_DATASOURCE_DRIVER=<org.h2.Driver> SPRING_DATASOURCE_USERNAME=<username> SPRING_DATASOURCE_PASSWORD=<password> - Run: (requires Maven)
./mvnw spring-boot:run - Local Access Points:
- Dashboard:
http://localhost:8080 - Swagger UI:
http://localhost:8080/swagger-ui/index.html - Test Page:
http://localhost:8080/hello(Test project running OK) - H2 DB Console:
http://localhost:8080/h2-console(Check in-memory database)
The database is automatically pre-populated using data.sql for repeatable testing.