Its a simple Json server to fetch data without needing to setup any database and calling it via various API.
Just store all data in a db.json
file and upload it to any github repo.
- Clone this repo to your local machine
- Install
pipenv
- Run
pipenv install
to install all the required dependencies - Run
python3 run.py
to start the flask server
- Create a db.json file in your repository which stores all your data in json format
- Now you can fetch data from that file using this url
https://jsonserver-f.herokuapp.com/{username}/{reponame}
- repo: https://github.com/itissandeep98/ReactTest
- link: https://jsonserver-f.herokuapp.com/itissandeep98/ReactTest/
: https://jsonserver-f.herokuapp.com/itissandeep98/ReactTest/comments
- There are other api also which does the same or even better work than this but they all come with a limitation of size or requirement of login into their site.
- Currently it only accepts
GET
requests. - feel free to open any issue or Pull request