Skip to content

Resources Management - Persistence

Jan Nouza requested to merge resources-management-persistence into development
  • Replacing InMemory repository implementations with ListCrudRepository interface
  • Updating service layer to comply with the updated repository methods
  • Adjust the unit tests accordingly
  • Add JPA annotations to model classes
  • Setup PostgreSQL database using docker and docker-compose
  • Create directory db-tools with python scripts to seed the database
  • Add exception handling to controllers

To run the microservice:

  1. Make sure you have docker/podman installed and running
  2. Enter the resources-management directory
  3. mvn clean install && docker-compose up

Microservice is running on port 8082, db is running on 5434 (8080, 8081, 5432 and 5433 are left for the other two microservices)

To seed the database:

  1. Make sure to complete the previous 3 steps
  2. Enter the db-tools directory
  3. python3 seed.py or python seed.py
Edited by Jan Nouza

Merge request reports