A Slack app for networking bingo challenges, deployed on Heroku.
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile based on.env.example - Run locally:
npm run dev
To deploy this application on Heroku:
- Create a Heroku account if you don't have one
- Install the Heroku CLI and login:
heroku login - Create a new Heroku app:
heroku create your-app-name - Set up environment variables:
heroku config:set MONGODB_URI=your_mongodb_uri heroku config:set SLACK_BOT_TOKEN=your_slack_token heroku config:set APP_BASE_URL=https://your-app-name.herokuapp.com heroku config:set SECRET_KEY=your_secret_key heroku config:set ANNOUNCEMENTS_CHANNEL_ID=your_channel_id - Push your code to Heroku:
git push heroku main - Ensure at least one dyno is running:
heroku ps:scale web=1 - Open the app:
heroku open
Heroku free tier dynos sleep after 30 minutes of inactivity. To keep your app responsive:
- Enable Heroku's Eco Dyno to have much better uptime than free tier
- Or use a service like UptimeRobot to ping your app every 20 minutes
api/- Serverless API endpointslib/- Application logicpublic/- Static assets