An mini platform for sending tickets into Zendesk as an agent in behalf of the customer.
- Create a Zendesk account.
- Create a new token in Admin panel > Channels > API.
- Put the SUBDOMAIN*, USERNAME, and TOKEN into the
.env.examplefile and rename it for
- Create an Auth0 account.
- Crate a new client in Clients menu > Create client or modify the default one.
http://localhost:3000in Allowed Callback URLs and Allowed Origins (CORS).
- Get the CLIENT ID, CLIENT SECRET, and DOMAIN then put them into the
.envfile as you did it before.
- Create a new user in Users menu for test it.
*The SUBDOMAIN is the subdomain part of your
- Follow the Setup steps above.
- Install the dependencies running
- Start the development mode running
npm run dev.
- Open the browser at
The development mode starts the server listening its changes with
nodemon. Also, it is listening the client changes with
webpack-dev-serverthat have integrated the HMR. Learn more about HRM.
Deploy to Heroku
- Follow the Setup steps above but instead of put the tokens in the
.envfile you have to add them on Heroku* and in the step 6 add your herokuapp domain.
- Add them as enviroment variables in Settings tab > Reveal Config Vars button.
- Deploy the app as usual with
git push heroku master. Learn more.
*Environment variables that you need to have on Heroku:
NODE_ENV = production NPM_CONFIG_PRODUCTION = false ZENDESK_SUBDOMAIN = <YOUR_SUBDOMAIN> ZENDESK_TOKEN = <YOUR_ZENDESK_TOKEN> ZENDESK_USERNAME = <YOUR_ZENDESK_USERNAME> AUTH0_CLIENT_ID = <YOUR_CLIENT_ID> AUTH0_CLIENT_SECRET = <YOUR_CLIENT_SECRET> AUTH0_DOMAIN = <YOUR_CLIENT_DOMAIN>
The user that logs into the application should have the same email that it has as a Zendesk agent.