Git Product home page Git Product logo

bot-house's Introduction

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

bot-house's People

Contributors

hiroppy avatar

Forkers

yuuuutsk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.