In this challenge I am building zendesk ticket viewer, fetching tickets using the zendesk api. Proper testing of the functionality is performed in the testing module.
This app has been tested to work on 64-bit: Windows 10 and Mac OS.
The MVP or Model-View-Presenter, which is mostly used to build the user interface (UI).In this model, the Presenter is counted as the “middle man” and all program logic is sent to the Presenter.
- Model: Acts as an interface and defines the data to be in the user interface.
- View: Displays the data and sends the user commands to the Presenter.
- Presenter: It is like a bridge between Model and View. Presenter retrieves various data from Model repositories and prepares them for display in View.
In this project,
- model -> API_connection.py
- view -> view.py
- presenter -> presenter.py (This integrates both API_connection.py & view.py)
Python 3 Installation: Windows 10: To install Python 3.9.6, head to https://www.python.org/downloads/ and download the file which says "Windows x86-64 executable installer". After downloading, run the executable and chose Add Python 3.9 to PATH option. Then follow the instrcutions to get a full installation of Python 3.9.6 on your system.
Mac OS: For installing Python 3.9.6 on Mac, head to https://www.python.org/downloads/ and under "Python 3.9.6" click on "Download Mac OS X 64-bit/32-bit installer" and download the one suitable for your machine. Run the installer and follow the steps to get a full standard installation of Python 3.9.6 on your system.
Using the Application: (in windows 10)
- Clone the git-hub repository named Zendesk_Challenge in a new folder
- Open the folder in any IDE
- Now, create an venv using command ( virtualenv env )
- Here, activate the venve using command ( .\env\Scripts\activate.ps1 )
- Now,install the requirements.txt file using command ( pip install -r requirements.txt)
- Now, run python presenter.py or presenter/presenter.py (if gives location error)
or
Another way (Mac or Windows)
To start using this app, download the git repository or the zip file. Open terminal/command line and go in the presenter folder of this app through cd commands. Then type:
python presenter.py (Windows)
or
python3.9 presenter.py (Mac)
For testing this app, go to the "Testing_module" folder within the app on command line/terminal by using cd commands. Then type:
python test.py -b (Windows)
or
python3.9 test.py -b (Mac)
Output Screen for test.py Shows
- https://www.globo.tech/learning-center/5-most-common-http-error-codes-explained/ (For possible error codes)
- https://docs.python.org/3/library/datetime.html (for date-time)
- https://docs.python-requests.org/en/master/ (for requests library)
- https://ducmanhphan.github.io/2019-08-05-MVP-architectural-pattern/ (The MVP Architecture)
- https://docs.python.org/3/library/unittest.html (Testing)
- https://www.geeksforgeeks.org/unit-testing-python-unittest/


