Public | Automated Build

Last pushed: 3 months ago
Short Description
udaChef ingredients service
Full Description

Ingredients service

This repo's purpose is to fetch ingredient data.

How to setup locally
  1. Checkout the repo
  2. Run docker build -t <name-of-service> .
  3. Start the server by running
    docker run -p <port-you-want>:4000 <name-of-service>
  4. The server is now available at localhost:<port-you-want>
How to setup locally (without Docker)
  1. Checkout the repo
  2. Run yarn
  3. Start the server by running yarn start
    or to have a watcher running on the code type yarn run watch
  4. The server is now available at localhost:4000

API

  • GET /search:query - Search for ingredients by search query
  • GET /latest - get the 40 latest ingredients that were added
  • POST / - create a new ingredient. POST payload on the form of:
    {
      "name": "ingredientName",
    }
    
Docker Pull Command
Owner
udachef