Giter VIP home page Giter VIP logo

zendesk-coding-challenge's Introduction

Zendesk Coding Challenge

Name: Tarun Kukreja

Installation

  1. Clone the repository in your system
  2. Open command line and Navigate to the directory in which you cloned the repository
  3. Do
cd zendesk-coding-challenge/
  1. Type the following
npm install
  1. Within the current directory please create a .env file
  2. 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

  1. Once you have intercated with the app, you can run the following command to run the unit tests
npm test

Design suggestions

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

zendesk-coding-challenge's People

Watchers

Tarun Kukreja avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.