This add-on shows how to use the basic blocks of the HipConnect API. In particular:
In the same directory:
Then, In a terminal window, run:
#!shellcd atlassian-connect-express-hipchatgit checkout support-pluggable-clientsnpm linkcd ../hipchat-connect-samplenpm link atlassian-connect-express-hipchat
Open 3 terminal windows.
#!shellngrok -subdomain yourSubdomainName 3000
#!shellcd hipchat-connect-samplenpm installAC_LOCAL_BASE_URL=https://yourSubdomainName.ngrok.com node app.js
The Connect descriptor is atlassian-connect.json It is where the add-on declares how it wants to extend HipChat. In there I declared the dialog, glance, sidebar view and actions.
The main application router is index.js. That's what handles any request
In layout.js, you can see the main imports.