Skip to content
surhud004 edited this page Jan 9, 2024 · 3 revisions

Welcome to the 🍲 Foodish πŸ› API wiki!

Logo

A Node.js/Express.js REST API to GET a random picture of food dishes.

Introduction

Technology is all around us and we use it in our day-to-day lives. With the use of APIs, we get all the information in one place, from Google's weather snippet to the Continue with Facebook. In this day and age, everything has an API. So why not have an API for food pictures?

Installation

  1. Clone/fork this repository
  2. Install Node.js
  3. Install dependencies npm i
  4. Replace https://foodish-api.com/ with ./ in app.js to serve API images locally
  5. Launch the app with npm start and it will be running on localhost:3000

Please create a new issue for support.

🍲 Foodish.js πŸ› - a JavaScript version

Check out the JavaScript version of the Foodish API here!

Server limit issue

If the website is down, returns a 503 or if you see an Application error.

Reason:

The API is running on a free instance, which provides us with a limited number of uptime hours each month. Once that limit is reached, the service becomes unavailable.

Solutions:

  1. Here's an alternative JavaScript version of the Foodish API which can be used - 🍲 Foodish.js πŸ›
  2. The API will be reinstated and running as expected on the first day of the next month.

How to migrate from v1 to v2

  1. Replace the Base URL in your application from https://foodish-api.herokuapp.com/ to https://foodish-api.com/
  2. And that's all!