Skip to content

mealfinder/mealfinder-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MealFinder Logotype


Java Spring IntelliJ IDEA Apache Maven Postman Postgres Docker

Mealfinder API

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.

Development server

Configure PostgreSQL Database with Docker

  1. 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
  1. 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
  1. Access
docker exec -it mealfinder /bin/bash

psql -U rickybustillos mealfinder

Spring Boot

  • Java 11
  • Maven Project
  • Jar
  • Spring Web
  • Spring Data JPA
  • Lombok
  • PostgreSQL Driver

Routes mapping

/api/v1/meals

/api/v1/meals?s=yourNameSearchHere

Releases

No releases published

Packages

No packages published

Languages