-
Notifications
You must be signed in to change notification settings - Fork 2
Running locally
This is a quick tutorial how to get your own coops-demo instance running.
Before you start make sure you have MongoDb installed on your computer (https://www.mongodb.org/)
-
Install canvas dependencies (follow instructions from https://www.npmjs.com/package/canvas)
-
Clone the git repository on your local computer
git clone [email protected]:coops-demo.git -o heroku
-
Navigate into the cloned Git -repository
cd coops-demo
-
Install dependencies
npm install
-
Register Application into GitHub, Google and Facebook for OAuth (https://github.com/settings/applications/new, https://code.google.com/apis/console/, https://developers.facebook.com/)
Callback urls must be in following format: http://localhost:8080/auth/github/callback
-
Add settings.json into git folder with following content (replace mongo url, ws host and auth clientIds and clientSecrets with your own):
{ "mongo": { "url": "mongodb://replace:mongo/url" }, "http": { "host": "localhost", "port": "8080" }, "ws": { "host": "localhost", "port": "8080" }, "auth": { "facebook": { "clientId": "[facebook client id]", "clientSecret": "[facebook client secet]" }, "google": { "clientId": "[google client id]", "clientSecret": "[google client secet]" }, "github": { "clientId": "[github client id]", "clientSecret": "[github client secet]" } }, "sessionSecret": "keyboard cat" }
-
start application
npm start
-
Navigate into your application and you should see the CoOps demo.