ACM-PUC's kiosk management.
- Clone and cd into this repository
- Run
npm install
(oryarn install
) - Set the environment variables:
DB_HOST
('localhost' should work), or alternativelyMONGODB_URI
FB_CLIENT_ID
(your app Facebook Client ID)FB_CLIENT_SECRET
(your app Facebook Client Secret)
- Turn on your local mongodb server if that is the case
- run
gulp watch
(turns on the frontend code watchers) - 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.
# 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.