The MealFinder is an application for you who want to discover new meals.
This application consumes an external API called "themealdb". The application detects if the database returns a null value and will look for them in the external API and automatically insert them into the database. There are negotiations so that there is no data redundancy.
- Creating Docker Container with postgres image, creating database and setting database user
docker run --name mealfinder -d -p 5432:5432 -e POSTGRES_USER=rickybustillos -e POSTGRES_PASSWORD=superpassword -e POSTGRES_DB=mealfinder postgres
- Creating table
docker run -it --rm --net=host -v %cd%/database:/tmp postgres /bin/bash
psql -h localhost -U rickybustillos mealfinder -f /tmp/tb_meals.sql
- Access
docker exec -it mealfinder /bin/bash
psql -U rickybustillos mealfinder
- Java 11
- Maven Project
- Jar
- Spring Web
- Spring Data JPA
- Lombok
- PostgreSQL Driver
/api/v1/meals
/api/v1/meals?s=yourNameSearchHere