This repo is no longer used. This functionality is now included in the main face.camp repo.
npm install
npm start
- Start app server from facecamp repo
- Open the app at localhost:8080
To set these create a .env
file:
echo "CLIENT_ID=\nCLIENT_SECRET=" > .env
This file will be ignored from git so its safe to put your CLIENT_ID
and CLIENT_SECRET
in here.
You can get these by creating a Slack app.
By default config/development.json
has authHost
and appUrl
set for local development.
If you are testing on a device on your network, you'll need to use the url that is displayed in the app's startup message (eg On Your Network: https://192.168.1.89:8080
) instead of localhost
and set those in config/development.json
. Note that authHost
is http
while appUrl
is https
. This is because https
is required to get the user's webcam in the app, but not when running this auth server locally.
{
"authHost": "http://192.168.1.89:3000",
"appUrl": "https://192.168.1.89:8080"
}
You will also need to whitelist your local IP address in your Slack app's settings.