livigbaji / slack-boto

Slack bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slack Bot

Test and Deploy

Live API

https://slack-boto.herokuapp.com

API SPEC

POST /messages

GET /messages?user=<user_id>&limit=<num>&offset=<num>

How to Install

Running Application as API Locally

  • create a .env file in the project directory using env.example as template

  • If you are not using a remote or cloud MongoDB environment, start your local mongoDB database or you can use the command below to start one using docker

   $ docker-compose up --scale restapi=0
  • Run npm run start to start the server

  • From your browser or REST client(like postman) visit http://localhost:4500

  • If you make any changes, you will have to first close the running server, and the start it again using npm run start

Running Test

# To run unit test
$ npm run test

# To run test coverage
$ npm run test:cov

# To run integration test
$ npm run test:e2e

About

Slack bot


Languages

Language:JavaScript 97.9%Language:Dockerfile 1.7%Language:Shell 0.4%