- heroku addons:create heroku-postgresql:hobby-dev
- heroku config
- Copy the POSTGRES_URL to .env file
- Connect to db and import the users table in db.sql file
- Create or use existing atlassian app from developer https://developer.atlassian.com/apps/
- Enable oauth access grants in the atlassian app you created. Here is the official documentation: https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/#enabling-oauth-2-0-authorization-code-grants
- Copy app id and secret to environment variables i. Put env variables in .env file ii. Set up deployment (heroku in this example) env variables
- Set up redirect urls in the app in AtlassianStrategy object config
- Add the callback urls to atlassian app's whitelisted redirect urls
You need to create and place all configuration about your database, atlassian app details in .env file or in your target platform's environment variables. The env file or variables listed below:
DATABASE_URL=postgres://...
ATLASSIAN_CLIENT_ID=9d024....
ATLASSIAN_CLIENT_SECRET=082fd...
ATLASSIAN_CALLBACK_URL=https://...
- npm install
- node index.js
- git init
- heroku login
- heroku create
- git push heroku master