knowFootball API, built on the top of nodeJS and ExpressJS, is a fun JSON API for Football(soccer) related quiz and facts
The API is deployed on Heroku. Here is the root route: knowFootball.Herokuapp.com
Currently available features are:
- Quiz
- Facts
- /quiz
- /facts
Calling these routes return random facts and Q/A related to football.
Append "/num=" for more than one result. Example knowFootball.Herokuapp.com/facts/num=5
Dillinger uses a number of open source projects to work properly:
- NodeJS
- ExpressJS
- EJS
- Heroku (for deployment)
Install the dependencies and devDependencies and start the server.
$ cd knowFootball-API
$ npm install
$ node app.js
Now open localhost:5000/
on browser
JSON files store the data. Description as follows.
Route | File name | Structure |
---|---|---|
Quiz | quiz.json | Array of strings |
Facts | facts.json | Array of Objects |
Want to contribute? Great! Checkout the Todos section below or Give some creative suggestion :)
- Add more data
- Add more routes
- Add License
No Till Now xD
Free Software, Hell Yeah!