Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

sasalatart/acm-kiosk

Repository files navigation

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)
  1. Turn on your local mongodb server if that is the case
  2. run gulp watch (turns on the frontend code watchers)
  3. 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
# Set the environment variables
$ export HOST=your-deployment-host
$ export PORT=80
$ export FB_CLIENT_ID=your-Facebook-Client-ID
$ export FB_CLIENT_SECRET=your-Facebook-Client-Secret
$ export SECRET_TOKEN=any-string

# Build & run
$ docker-compose up -d

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

To stop:

$ 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.

Releases

No releases published

Packages

No packages published