Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1000 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 1000 Bytes

Slackbot API

Start in docker

In order to get the API and database up and running the Java image needs to be build first.

  1. Start with cloning this repo
    • git clone git@github.com:dgorczyca/demo.git
  2. Setup the remaining folders
    • run ./setup
  3. To build an image you will need a docker running on your machine.
  4. Once docker is running we can run command to create an image (image name will be slackbot/volunteering)
    • ./mvnw install dockerfile:build
  5. Add BOT id environment variable and run docker-compose up (can be done in one line like below)
    • HUBOT_SLACK_TOKEN=xoxb-261235603910-x6RKm1qL4nppolGIZStlnKo1 docker-compose up
  6. Now you should be able to access database on port 3005 and API on port 8080

References