A barebones Node.js app using Express 4.
This application supports the Getting Started on Heroku with Node.js article - check it out.
Make sure you have Node.js and the Heroku CLI installed.
$ git clone https://github.com/StatesTitle/SlackBot-LetMeGoogleThatForYou.git
$ cd SlackBot-LetMeGoogleThatForYou
$ npm install
$ npm start
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku open
or
- Create a slack app
- Add a slash command
/lmgtfy
that points to<your heroku url>/lmgtfy
- Add bot to workspace
For more information about using Node.js on Heroku, see these Dev Center articles: