tracman-server/README.md

104 lines
2.3 KiB
Markdown
Raw Normal View History

2016-03-31 17:06:21 -06:00
# Tracman
2017-03-18 01:39:53 -06:00
###### v 0.5.1
2016-05-05 16:06:45 -06:00
2016-05-29 15:15:26 -06:00
node.js application to display a map with user's location.
2016-04-27 22:02:13 -06:00
## Installation
2017-03-18 13:53:48 -06:00
2016-05-05 16:06:45 -06:00
```sh
2017-03-05 15:20:00 -07:00
$ git clone https://github.com/Tracman-org/Server.git && (cd Server && exec npm install)
2016-05-05 16:06:45 -06:00
```
2017-04-01 11:03:05 -06:00
You will need to set up a configuration file at `config/env.js`. It should contain the following information:
2017-03-18 13:53:48 -06:00
```javascript
'use strict';
module.exports = {
2017-04-01 11:03:05 -06:00
mode: 'development', // or 'production'
2017-03-18 13:53:48 -06:00
// Random strings to prevent hijacking
session: 'this is a secret',
cookie: 'shhhhh',
// Client IDs for authentication
googleClientId: '############-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com',
googleClientSecret: 'XXXXXXXXX_XXXXXXXXXXXXXX',
2017-04-01 11:03:05 -06:00
facebookAppId: 'XXXXXXXXXXXXXXXX',
facebookAppSecret: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
twitterConsumerKey: 'XXXXXXXXXXXXXXXXXXXXXXXXX',
twitterConsumerSecret: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
2017-03-18 13:53:48 -06:00
2017-04-01 11:03:05 -06:00
// A google maps API key
2017-03-18 13:53:48 -06:00
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
};
```
2017-04-01 11:03:05 -06:00
Use `config/env-sample.js` for help.
2017-03-18 13:58:57 -06:00
You can get API keys at the [google developer's console](https://console.developers.google.com/apis/credentials). You will need to set up approved hosts and auth callbacks. There is more information in [their documentation](https://support.google.com/googleapi/answer/6158857?hl=en).
2016-04-27 22:02:13 -06:00
## Running
```sh
2017-04-09 21:40:08 -06:00
$ node server.js
2016-05-12 21:10:34 -06:00
```
2017-04-09 21:40:08 -06:00
or
2017-03-18 13:58:57 -06:00
```sh
2017-04-09 21:40:08 -06:00
$ npm start
2017-03-18 13:58:57 -06:00
```
2017-03-15 04:30:03 -06:00
## Contributing
Tracman will be updated according to [this branching model](http://nvie.com/posts/a-successful-git-branching-model).
2016-06-14 15:40:09 -06:00
## Changelog
2016-05-12 21:10:34 -06:00
2017-03-18 01:39:53 -06:00
#### v 0.5.1
* Fixed broken controls
2017-03-15 04:30:03 -06:00
#### v0.5.0
2017-03-05 15:20:00 -07:00
2017-03-14 07:58:56 -06:00
* Updated libraries
* Fixed recognition of attached clients [#34](https://github.com/Tracman-org/Server/issues/21)
* Moved socket.io code to own file.
2017-03-15 04:30:03 -06:00
* Many minor fixes
2017-03-05 15:20:00 -07:00
2016-09-09 20:55:33 -06:00
#### v0.4.3
* Fixed memory store [#21](https://github.com/Tracman-org/Server/issues/21)
2016-09-08 05:26:12 -06:00
#### v0.4.2
* Fixed Streetview covering buttons
* Fixed error when viewing map of nonexistant user
2016-08-09 23:51:49 -06:00
#### v0.4.1
2016-08-10 00:17:37 -06:00
* Users can view/change email address
* Added linked accounts to admin
2016-08-09 23:51:49 -06:00
2016-07-01 19:14:36 -06:00
#### v0.4.0
* Opened registration
* Replaced 'Imperial' with 'Standard'
* Bug fixes
2016-06-14 15:40:09 -06:00
#### v0.3.0
* Unified map and dashboard UI
2016-07-01 19:14:36 -06:00
* Security updates
* New admin UI