Modified readme

master
Keith Irwin 2017-03-18 15:53:48 -04:00
parent 187797a587
commit 1027eab499
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 31 additions and 0 deletions

View File

@ -4,10 +4,41 @@
node.js application to display a map with user's location.
## Installation
```sh
$ git clone https://github.com/Tracman-org/Server.git && (cd Server && exec npm install)
```
You will need to set up a configuration file at `config/secrets.js`. It should contain the following information:
```javascript
'use strict';
module.exports = {
env: 'development', // or 'production'
// Random strings to prevent hijacking
session: 'this is a secret',
cookie: 'shhhhh',
// Client IDs for authentication
googleClientId: '############-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com',
googleClientSecret: 'XXXXXXXXX_XXXXXXXXXXXXXX',
// A google maps API
googleMapsAPI: 'XXXXXXXXXXXXXXX_XXXXXXXXXXXXXXXXXXXXXXX',
// Location of your mongoDB
mongoSetup: 'mongodb://localhost/tracman',
// URL and port where Tracman will be run.
url: 'http://localhost:8080',
port: 8080
};
```
## Running
```sh