Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1 KB

README.md

File metadata and controls

65 lines (45 loc) · 1 KB

luncher

Build Status

Accessible lunch menus.

Install

npm i

Test

npm test

Configure

Get environment variables

heroku config --app sbks-luncher | sed '1d' | sed 's/: */=/' > .env

Or you can get if from maintainers

.env structure

PORT=3000
NODE_ENV=development
# necessary for server/service communication
CLOUDAMQP_URL=amqp://....
# when you need caching to work
MEMCACHEDCLOUD_PASSWORD=...
MEMCACHEDCLOUD_SERVERS=...
MEMCACHEDCLOUD_USERNAME=...
# when you want to use slack notifier
URL=http://localhost:8080/
SLACK_API_TOKEN=...
ZOMATO_USER_KEY=...

Run

heroku local
# or
npm run server
npm run service

Structure

bin - one-off scripts like slack notifier

client - frontend

lib - common code shared between server & service, possibly frontend

server - web server related code like routes

service - worker related code like scrappers