Find a place to eat a lunch.
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.
app
test
.editorconfig
.gitignore
.jshintrc
.travis.yml
README.md
app.js
config.example.json
package.json

README.md

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.