Author: Kate Dameron
NOTICE! The host url has changed due to Heroku's restructuring! The new host is:
https://futurama-api.fly.dev
This is an open-source API that provides Futurama quotes with corresponding character names and images. These are publicly sourced and I have no claim to ownership.
All routes are GET requests
'/api/quotes' -> Returns a list of all quotes
'/api/quotes/:count -> Returns ':count' of randomly picked quotes
'/api/characters/:character -> Returns a list of all quotes for the ':character'
'/api/characters/:character/:count -> Returns random ':count' for the ':character'
I welcome contributions and suggestions for improvement via Pull Requests.
-
Clone and download GitHub repo
-
Install dependencies:
npm i
-
Run scripts:
npm run lint
npm run pretest
npm run test
npm run test:watch
npm run start
(start node server)
npm run start:watch
(start nodemon server)
node seed
(seed database)
npm run drop
(drop MongoDB)
npm run db-load-all
(drop db and load seed data from scratch)
Standard MIT