This program can be used to used to view list of all the tickets and display a particular ticket in detail (given access to Zendesk API). The program is coded in python3 and webpages are rendered using flask api.
- Get a copy of this Repository by any preferable method.
- Make sure you have python 3.X.X and python -pip install.
- cd in to the root folder and run following command to install dependencies.
$ pip install -r requirements.txt
** if you encounter any problems doing above step please install the packages manually by running these commands.
$ pip install Flask
$ pip install requests
$ pip install Flask_Assets
- cd into app folder and open configurations.py and open with an editor.
- Insert your Zendesk account email in the filed { your email here } and your API token { your token here } respectively in line 20 and 21.
- Save changes and exit.
** if you don't have an API token generated you can do it by following This link. - Then cd in to the app folder and run the following command.
$ python main.py
- While the flask app is running in the background navigate to following URL from your browser.
http://localhost:5000/index/
- cd in to the app folder and run the following command.
$ python unit_tests.py
-
main.py : This module is responsible for delivering data to flask front end and rendering web pages
-
ticket.py : This module is the python ticket object which is throughout the application
-
tickets_factory.py : This module is responsible for creating above ticket object from the given inputs.
-
zendesk_api.py: This module is responsible for handling connections to zendesk API.
-
configurations.py: This module store/get user specific runtime data. (Ex. Tokens/User email)
-
unit_tests.py: This module has all the unit tests for the app.