node package manager

lurk-the-chats

Atlassian Add-on using Express

Congratulations! You've successfully created a HipChat Connect Add-on using the Express web application framework.

What's next?

Read the docs.

Running

  1. start postgres
  2. ngrok http 3000
  3. AC_LOCAL_BASE_URL=https://.ngrok.io nodemon app.js (e.g. AC_LOCAL_BASE_URL=https://0d0d0340.ngrok.io nodemon app.js)

Installing

  1. Visit https://hitboxtest.hipchat.com/rooms
  2. If installing in a single room, find and select room
  3. Install from URL: https://.ngrok.io/atlassian-connect.json (e.g. https://0d0d0340.ngrok.io/atlassian-connect.json)

Deploying to Micros##

The complete (and up to date) guide is at https://extranet.atlassian.com/display/MICROS/Getting+Started+with+Node.js+on+Micros.

  1. Register the service with Micros: micros service:create lurk-the-chats
Artifact type [jvm, python, docker, npm] (docker): npm
Artifact id (@atlassian/lurk-the-chats):
Artifact version (0.0.1):
Organization (HipChat Engineering): HipChat
Healthcheck uri (/healthcheck):
Source code repo url: https://bitbucket.org/dugaldmorrow/lurk-the-chats
Owner email address (dmorrow@atlassian.com):
Notification email (dmorrow@atlassian.com):
Validating service descriptor
Service descriptor is valid
Saved to ./lurk-the-chats.sd.yml
 
Registering service lurk-the-chats with Micros Server
{
    "name": "lurk-the-chats",
    "email": "dmorrow@atlassian.com",
    "owner": "dmorrow",
    "users": [
        "dmorrow"
    ],
    "token": "VkJf2HbvUEjiuuullfiqK9MbYZSsC9C4"
}
Service lurk-the-chats created.
To publish the current version and deploy your service:
    npm publish
    micros service:deploy lurk-the-chats
  1. Deploy the service: micros service:deploy lurk-the-chats

  2. Deploy the service: micros service:init lurk-the-chats

This utility will walk you through creating a service descriptor file.
It only covers the most common items, and tries to guess sane defaults.
 
Press ^C at any time to quit.
Creating service: micros-workshop-{username}
Name (long): Micros Workshop {username}
Description:
Organization: RD:Engineering Services
Artifact type (maven, python, docker, npm) : npm
Artifact id (@atlassian/micros-workshop-{username}):
Artifact version (0.0.0):
Healthcheck uri (/healthcheck):
Source code repo url: git@stash.atlassian.com:7997/micros/micros-workshop.git
Notification email: {username}@atlassian.com
Owner email address: {username}@atlassian.com
name: Micros Workshop {username}
organization: 'RD:Engineering Services'
links:
  binary:
    type: npm
    artifactId: '@atlassian/micros-workshop-{username}'
    version: 0.0.0
  healthcheck:
    uri: /healthcheck
  source:
    url: 'git@stash.atlassian.com:7997/micros/micros-workshop.git'
notifications:
  email: {username}@atlassian.com
owners:
  - {username}@atlassian.com
 
Validating service descriptor
Service descriptor is valid
Do you want to proceed? yes
Service descriptor saved to micros-workshop-{username}.sd.yml
  • Upload the artifact to the npm registry: npm publish
  • Deploy the service to Micros: micros service:deploy micros-workshop-{username} -f micros-workshop-{username}.sd.yml -v
    • This will take a little while (~5 minutes). Meanwhile, log on to IDP and observe as your stack is created.