Built as part of the recruitment process for the 2017 Zendesk Internships
$ npm install
$ npm run
-- then navigate to localhost:3000
$ npm test
example output:
> ticketzen@0.0.0 test B:\TicketZen
> mocha test.js --timeout 15000
loading express
GET / 200 217.218 ms - 1111
√ responds to / (237ms)
GET /foo/bar 404 38.243 ms - 822
√ 404 everything else (44ms)
ticket routes
GET /tickets 200 6299.421 ms - 9881
√ tickets overview (6301ms)
GET /ticket?id=1 200 1900.043 ms - 1676
√ specific ticket (1904ms)
GET /ticket 400 2311.014 ms - 868
√ specific ticket (no id) (2314ms)
GET /ticket?id=9999 404 448.386 ms - 874
√ non-existing ticket (450ms)
6 passing (12s)
- Displays a list of all tickets
- Pages through 25 tickets at a time
- Displays individual tickets
- install using npm install
- run testes using npm test (optional)
- set auth details in the config folder (my zendesk details are still there for testing by Zendesk - not an active account)
- Run the script using npm run
- navigate to localhost:3000 to view the page
- the overview can be found at /tickets
- individual tickets can be found at /ticket?id={ticket-id}