-
Notifications
You must be signed in to change notification settings - Fork 16
Home
surhud004 edited this page Jan 9, 2024
·
3 revisions
A Node.js/Express.js REST API to GET a random picture of food dishes.
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?
- Clone/fork this repository
- Install Node.js
- Install dependencies
npm i
- Replace
https://foodish-api.com/
with./
inapp.js
to serve API images locally - Launch the app with
npm start
and it will be running onlocalhost:3000
Please create a new issue for support.
Check out the JavaScript version of the Foodish API here!
If the website is down, returns a 503
or if you see an Application error
.
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.
- Here's an alternative JavaScript version of the Foodish API which can be used - π² Foodish.js π
- The API will be reinstated and running as expected on the first day of the next month.
- Replace the Base URL in your application from
https://foodish-api.herokuapp.com/
tohttps://foodish-api.com/
- And that's all!