Skip to content

1. How to Run

  1. Clone Repository:
    git clone https://github.com/joeaoregan/TUS-26-MA-CA1-Guitar-Store-API.git
    
  2. 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>
    
  3. Run: (requires Maven)
    ./mvnw spring-boot:run
    
  4. Local Access Points:
  5. Dashboard: http://localhost:8080
  6. Swagger UI: http://localhost:8080/swagger-ui/index.html
  7. Test Page: http://localhost:8080/hello (Test project running OK)
  8. H2 DB Console: http://localhost:8080/h2-console (Check in-memory database)

The database is automatically pre-populated using data.sql for repeatable testing.