This repo has a sourcecode for my implementation of wg_forge_backend test assignment.
- Configure hibernate-validator to validate input user's data. There are annotations from java.validation but they don't work at this moment.
- Lowercase ASC/DESC order types in query params.
- 6th task
The fastest way to run the entire solution is via docker-compose. There's a Makefile, so you can run
make rebuild-docker
It will stop current docker-compose containers if exist, build java app and run docker-compose up --build
This docker-compose.yaml has 3 services:
- db: Postgresql container configured by WG_Forge to complete course
- python_to_postgres: python script to complete two first tasks
- wg_backend_spring_postgres: Spring app for the rest tasks
For the first two tasks I decided to write simple python script which will run several sql queries
For the backend server task I took Spring, so most of the repo contains setup an src files for it