This is the submission for the Zendesk Coding Challenge 2021 by Atharva Biwalkar.
This is a CLI based application, developed using Node.js that GETS the tickets from the Zendesk API, and then parses it in the terminal.
Please follow the given steps in order to run the Project:
Install the required dependencies:
- Express
- Prompt
- Mocha
- Axios
Instructions to run the project:
- Open the terminal on your system.
- "npm install" will install all the required dependencies from the packages requirements.
- Now run the main.js file with node. --> Usage "node ./src/main.js"
In order to run the tests:
Please follow the following instructions:
- Open the terminal in your system.
- "npm install" will install all the required dependencies from the packages requirements.
- Use "npm run test" to run the required Unit Tests on the project.
Authentication:
Please modify the URL, Username and Password fields in index.js and Main.js
Criterias Satisfied:
- Successfully connect to the Zendesk API.
- Requesting all the tickes for your account.
- Displaying them in a list.
- Displaying the individual ticket details.
- Paging through the tickets when more than 25 tickets are returned from the API call.
- All the basic errors are handled.
- Unit Testing is included.
- The CLI is very easy to use with basic knowledge and the tickets are displayed clearly in a tabulated manner.
- Clean and consistent Code.