Skip to content

Commit

Permalink
added access tokens and started basic app along with dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannevela committed Apr 23, 2021
1 parent bb83d13 commit 5e16b3b
Show file tree
Hide file tree
Showing 9 changed files with 1,676 additions and 113 deletions.
5 changes: 4 additions & 1 deletion .env-example
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
SLACK_CLIENT_ID=
SLACK_CLIENT_SECRET=
SLACK_SIGNING_SECRET=
SLACK_BOT_TOKEN=
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node app.js
12 changes: 12 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { App } = require('@slack/bolt');
require('dotenv').config();

const app = new App({
token: process.env.SLACK_BOT_TOKEN,
signingSecret: process.env.SLACK_SIGNING_SECRET,
});

(async () => {
await app.start(process.env.PORT || 3000);
console.log('QuackApp is running!');
})();
9 changes: 0 additions & 9 deletions lib/app.js

This file was deleted.

13 changes: 0 additions & 13 deletions lib/middleware/error.js

This file was deleted.

5 changes: 0 additions & 5 deletions lib/middleware/not-found.js

This file was deleted.

Loading

0 comments on commit 5e16b3b

Please sign in to comment.