Install
$ pip install -r requirements.txt
Run
- Replace xxxxxxxxxxxxxxxxxxx in _PRIVATE.txt with access token
$ python server.py start
to start the server- App will run on
http://localhost:5000/
Working
- Flask app
- Two API's, one for totals and another for daily numbers. API endpoints have start date, end date and access token input attributes. These are then used when querying the data from giosg Reporting APIs.
- App makes
HTTP GET
request to giosg reporting API to fetch chat counts between those two given dates. - After recieving data, it is display on a UI and is paginated to display maximum of 5 items on the table per view/page
homepage.html
(Screenshot below)