项目作者: sasalatart

项目描述 :
ACM-PUC's kiosk management application.
高级语言: JavaScript
项目地址: git://github.com/sasalatart/acm-kiosk.git
创建时间: 2016-01-21T16:47:46Z
项目社区:https://github.com/sasalatart/acm-kiosk

开源协议:

下载


ACM-Kiosk

ACM-PUC’s kiosk management.

License: MIT
Docker Automated build

Setup

Development
  1. Clone and cd into this repository
  2. Run npm install (or yarn install)
  3. Set the environment variables:
    • DB_HOST (‘localhost’ should work), or alternatively MONGODB_URI
    • FB_CLIENT_ID (your app Facebook Client ID)
    • FB_CLIENT_SECRET (your app Facebook Client Secret)
  4. Turn on your local mongodb server if that is the case
  5. run gulp watch (turns on the frontend code watchers)
  6. run nodemon server/index.js (turns on the backend server)

Remember to set localhost as your App Domain and http://localhost/ as your
Site URL at Developers.Facebook.

Docker
  1. # Set the environment variables
  2. $ export HOST=your-deployment-host
  3. $ export PORT=80
  4. $ export FB_CLIENT_ID=your-Facebook-Client-ID
  5. $ export FB_CLIENT_SECRET=your-Facebook-Client-Secret
  6. $ export SECRET_TOKEN=any-string
  7. # Build & run
  8. $ docker-compose up -d

The server’s machine should now be redirecting its port 80 to the container’s
port 8888.

To stop:

  1. $ docker-compose stop

Remember that your App Domain and your Site URL at Developers.Facebook should be configured
according to ACM_KIOSK_HOST’s value.