Skip to content
Antti Leppä edited this page Feb 5, 2016 · 1 revision

Installing on local computer

This is a quick tutorial how to get your own coops-demo instance running.

Prerequisites

Before you start make sure you have MongoDb installed on your computer (https://www.mongodb.org/)

Steps

  1. Install canvas dependencies (follow instructions from https://www.npmjs.com/package/canvas)

  2. Clone the git repository on your local computer

     git clone [email protected]:coops-demo.git -o heroku
    
  3. Navigate into the cloned Git -repository

     cd coops-demo
    
  4. Install dependencies

     npm install
    
  5. 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

  6. 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"
     }
    
  7. start application

     npm start        
    
  8. Navigate into your application and you should see the CoOps demo.

    e.g. http://localhost:8080

Clone this wiki locally