A bot lover
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
db
decls
docs
src
test
.babelrc
.editorconfig
.env.sample
.eslintignore
.eslintrc.js
.flowconfig
.gitignore
.sequelizerc
.travis.yml
Dockerfile
LICENSE
README.md
docker-compose.yml
nodemon.json
package-lock.json
package.json
postcss.config.js
webpack.config.js
webpack.dev.config.js
webpack.prod.config.js

README.md

bot-house

🤖manage pseudo bots🤖

Run the code written in JS as a bot. Also, we don't need to deploy that bot or set it up with Slack.

Environment

If want to run locally, need to use below.

  • Node9.0 ~
  • postgresql

or use docker-compose.

Slack App Setup

See Slack App Setup.

.env

Copy .env.sample to .env and modify.
See environment variables of slack.

Production & Deploy

Recommend to use docker-compose.

# Please edit the value of .env before doing.

# without docker-compose
$ git clone https://github.com/abouthiroppy/bot-house
$ cd bot-house
$ npm i
$ npm run sequelize -- db:create
$ npm run db:migrate
$ npm run start:prod
$ npm run build

# use docker-compose and deploy to Heroku
$ git clone https://github.com/abouthiroppy/bot-house
$ cd bot-house
$ npm i
$ heroku container:push web --app bot-house
# go to Heroku's page and use "Run console" from "more" tab.
# https://dashboard.heroku.com/apps/xxxx?web-console=bot-house
# see https://devcenter.heroku.com/articles/local-development-with-docker-compose
>  npm run db:create

Development

$ brew services start postgres # if it is Mac
$ git clone https://github.com/abouthiroppy/bot-house
$ cd bot-house
$ npm i
$ mv .env.sample .env # please edit!
$ npm run sequelize -- db:create
$ npm run db:migrate
$ npm start # client and server
$ npm run server # only server
$ npm run client # only client

# with docker-compose
$ git clone https://github.com/abouthiroppy/bot-house
$ cd bot-house
$ npm i
$ mv .env.sample .env # please edit!
$ docker-compose build
$ docker-compose run app npm run sequelize -- db:create
$ npm run sequelize — db:create # if you can not run ↑
$ docker-compose run app npm run db:migrate
$ npm run db:migrate  # if you can not run ↑
$ docker-compose up