DinmaOtutu / meal-app

Allows users create meal and receipes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meal-app

Accepts lists of MEAL IDs that exist in https://themealdb.com/api.php and returns the id with the least number of ingredients

Table of Contents

Setup

Dependencies

list of libraries, tools, and technologies used.

  • express.js - Fast, unopinionated, minimalist web framework for Node.js
  • Node.js - A JavaScript runtime environment
  • Docker - For container
  • A package manager - [NPM]

Getting Started

  • clone the repo - https://github.com/DinmaOtutu/meal-app.git
  • cd meal-app.
  • docker build -t meal-app .
  • docker run -it -p 8080:8080 meal-app
  • If you do not have docker installed, run npm install
  • run npm start

Description of features

LIST MEAL IDS

  • Navigate to https://themealdb.com/api.php get list of meal IDS, pass it as an array in the request body on postman, it returns the meal with the least number of ingredients
POST REQUEST
{
    "mealIds" : [id1, id2, .......]
}
localhost:8080/api/meal

RESPONSES

  • 200 : Success image

  • 400 : Invalid meal Id image

  • 400 : Invalid input image

  • 500 : Internal server error

AUTHOR

  • Yours truly DinmaOtutu

About

Allows users create meal and receipes


Languages

Language:JavaScript 97.4%Language:Dockerfile 2.6%