This application consumes TheMealDB.com's API.
- Node.js version 11
- Express.js
- Axios
- Docker
Ensure you have docker installed
- Clone this repo by running
[email protected]:Noblemajesty/MealService.git
in your command line - Change directory into the cloned repo by running
cd MealService
- Build the project by running
docker build -t node-meal-service .
- Run the application by using
docker run -it -p 3472:8080 node-meal-service
- On your postman, make a
POST request to /meals
for example;localhost:3742/meals
AJSON
example request looks like this
{
"data": ["52964", "52963", "52962", "52961"]
}
A response would look like this
{
"message": "success",
"meal": {
"mealId": "52961",
"mealName": "Budino Di Ricotta",
"mealIngredients": [
"Ricotta",
"Eggs",
"Flour",
"Sugar",
"Cinnamon",
"Lemons",
"Dark Rum",
"Icing Sugar"
],
"numberOfIngredients": 8
}
}
The meal with id 52961
has the smallest number of ingredients, 8