This is a REST API server built using ExpressJS. It is built for the XYZ build system and communicates with the laughing batman DREAMS API.
- Connect your app to XYZ build system; follow the instructions here.
You'll now have a dynamic REST API listening on port 3232
(or the port provided via the PORT
environment variable).
- Install NodeJS.
- Install and run a local copy of the DREAMS api from here.
- Open your terminal and do the following:
git clone <this repo>
cd <repo folder>
npm install
node app/server.js
NOTE Every request to the api needs to contain two headers, containing x-forwarded-user
and x-forwarded-email
. The is used by the server to create users upon connecting.
TODO
TODO
PROMISES ETC