Email: [email protected]
- Clone the repository in your system
- Open command line and Navigate to the directory in which you cloned the repository
- Do
cd zendesk-coding-challenge/
- Type the following
npm install
- Within the current directory please create a .env file
- In the env file type the following:
USERNAME = {username provided in the email}
PASSWORD = {password provided in the email}
Then run the following command to run the CLI app
node app.js
- Once you have intercated with the app, you can run the following command to run the unit tests
npm test
The code currently works for my account but we can get the user input for a different sub domain and the credentials for the account, and authenticate the credentials for that subdomain
While using pagination the limit is currently 25 tickets per page but we could customise this by asking the user of how many tickets do they want to view or we can ask the user for the range of ticket numbers they would like to view
I wasn't able to find an API for verifying the Agent's credentials for creating unit test. Like, I thought of creating a test for checking whether the Agent is valid for the account or not. Maybe we can create one.
Error messages from my end should have been better
Currently I have added only the next links in pagination, but previous links can also be added
PS: I wanted to write comments but wasn't able to complete them. Moreover, the first commit which you see is of STSC that's because I am using my university laptop and by default it picked up the username from the system