Get started
Let's start using boilerplate to make apps already!
Last updated
Was this helpful?
Let's start using boilerplate to make apps already!
Last updated
Was this helpful?
Clone repository to the place of preference
Install packages in the repo
Ensure you have zcli
installed ()
Start applications
a) Start zcli
server
b) Start application
OR
You will always need to have 2 commands running, in order to use the boilerplate. Command from A) and B).
a) - zcli
server that will serve your application to Zendesk's iframe
b) - Your actual web application
It does not matter in which order you start each server. You can even start them both separarely. Because each of these applications are intended to be used in different locations (ticket sidebar and user sidebar) they will not conflict with each other, and you can work with both of them at the same time.
For demonstration purposes, let's assume you modified some stuff inside any of those 2 demo projects or both of them even, and now would like to build and proceed to uploading your application to the actual Zendesk instance.
Nothing more simpler:
You will notifce following output:
However, it did trigger build of non-server-app
and the entire React application was built.
The result of the build you can find in /dist
folder, that now looks like this:
At this stage, your project is ready to be packaged and shipped to Zendesk.
Packaging an application simply means zipping the /dist
folder into a zip file with help of zcli
tool we installed previously.
Boilerpalte has a helper command for this:
Now, in your /dist
folder, you will see folder /tmp
appeared. There is a zip file with random numbers (it's a timestamp) in its name - this is a packaged application, ready to be published.
What has happened is that your first application my-main-app
was not actually built by the boilerplate itself, because it recognises that the project is a server side application. This is enirely up to you to build the application and deploy it somewhere. The easiest thing to do is to deploy it to .
I will leave out the part on publishing the actual application, but I invite you to read about it more in article provided by Zendesk - .
If you have any questions or troubles, feel free to jump into where I am always reachable and other like-minded developers can help you out.