Giter Club home page Giter Club logo

zendeskcodingchallenge_x2st's Introduction

ZendeskTicketApp

This project is for the zendesk coding challenge to view all the tickets in my account. This project uses both node.js, to connect to the Zendesk API, and Angular to display the data from the API.

Prerequisites

To run this program make sure you have the latest versions of the following software installed.

Also, in order to connect to the Zendesk API you will need a .env file. I should have provided you with this file when submitted, but if you do not have one, please let me know and I can provide it to you. This file should belong in the root folder of the repository.

Once you have these prerequisites, you can fork or clone this repo and start running the app.

Running the App

Running the Node Server

Open the command terminal and go to the root directory of the repository and install necessary dependencies.
Run npm install to install the dependencies for the node server.

Development server

Run npm run dev for a dev server of the node server. Navigate to http://localhost:3080/ to see the server running.

Production server

I have not set up a production server for this project

Issues

If you experience any issues, check the potential issues section to hopefully help you solve any issues you are experiencing

Running the Angular Server

Open the command terminal and move into the zendesk-ticket-app directory to run the app by using the following command:

cd zendesk-ticket-app

Install dependencies

Run npm install to install all the necessary dependencies for the angular server.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

You can also run ng serve --open to automatically open a window to http://localhost:4200/.

Production server

I have not set up a production server for this project.

Issues

If you experience any issues, check the potential issues section to hopefully help you solve any issues you are experiencing

Build & Testing

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Angular Server

To run tests on the angular server make sure you are in the zendesk-ticket-app directory. Run ng test in the zendesk-ticket-app directory to execute the unit tests via Karma.

To see the code coverage of the angular server, after running ng test, it will create a coverage directory in the zendesk-ticket-app. In this dirctory is an index.html file that you can open with a live server. ng test will also display a code summary in the terminal

Node Server

I have not set up unit tests for the node server at this time.

Potential Issues

If you experience an authentication error, make sure you have the .env file as I have mentioned before. If you do not have one, be sure to contact me and I will provide you with the .env file.

If you experience an http error response (status 0), then make sure you have the node server running. See Running the Node Server

zendeskcodingchallenge_x2st's People

Contributors

shak623 avatar trellixvulnteam 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.