Resources Management - Persistence
- 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:
- Make sure you have docker/podman installed and running
- Enter the
resources-management
directory 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:
- Make sure to complete the previous 3 steps
- Enter the
db-tools
directory -
python3 seed.py
orpython seed.py
Edited by Jan Nouza