Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.26 KB

README.md

File metadata and controls

55 lines (34 loc) · 1.26 KB

Lunch Finder Build Status

Find random place for the lunch

Command Text Alias
/lunch help !help, h
/lunch random !random, rng
/lunch zzTop zz, zztop, zupa

Api docs https://api.slack.com/slash-commands

Endpoints

Lunch Finder (ready for the "slash" commands)

  • POST /command
  • POST /random

Places

  • POST /places-to-eat
  • GET /places-to-eat
  • GET /places-to-eat/:id
  • PUT /places-to-eat/:id
  • DELETE /places-to-eat/:id

Build & development

Create config.json (follow by the config.example.json)

npm install
npm start

Run npm install for building and npm start for preview. Do not commit your config.json file to any repo!

Testing

npm test
npm run tdd
npm run coverage

Running npm test or npm run tdd will run the unit tests with Mocha and Chai. npm run coverage will create coverage report.