Clone this repository
npm install
it
Set the environment variables (see below)
Run the server with nodemon in a terminal window with:
npm run start:dev
Be sure you to have nodemon installed globally.
Run the webpack dev server in a separate terminal window with:
npm run dev
The app will be accessible from localhost:8080
. The main app server runs on localhost:9000
. The webpack dev server is set up to reroute requests to the main app server via proxy.
npm test
Tests require a separate Redis database to run, referenced by a DEVELOPMENT
environment variable.
A pre-test script runs test/utils/initDB.js
to pre-populate the testing database with dummy values. Dummy values are removed by the tests themselves.
npm run coverage
REDISCLOUD_ONYX_URL=*url for your main redis database*
CLIENT_ID=*your facebook developer client id*
CLIENT_SECRET=*your facebook developer client secret*
DEVELOPMENT=*url for your testing redis database*
CLIENT_ID=*your facebook developer client id*
CLIENT_SECRET=*your facebook developer client secret*
event:[num]
RSVP:event:[num]|[attendance status]
photos:event:[num] Stringified object with:
photos:event:16|[userID]