Tracker is to help developers to jumpstart developping anykind of mobility tracking applications.
Tracker lets any type or number of GPS devices to post their locations to a nodejs server through a ReST service.
This consists of several main modules
- HTML5+AngularJS Front-end
- NodeJS+MongoDB API for collecting and quering tracker data
- Php+MySQL back-end to manage the trackers & etc.
- Android app to push data to the API
- Documentation
##Installation Guide
- Clone the repo using
git clone https://github.com/scorelab/Tracker.git
-
Install node and mongodb.
-
cd to the mobility-track-nodejs folder. Do an npm install. It will install all the pakages.
cd mobility-track-nodejs
npm install
-
Run mongodb. Default path is set to
/data/db
( On Windows this would beC:\data\db
). You can change it when you are running. -
Install grunt-cli with
npm install -g grunt-cli
- Now run grunt, it will start the node server and listen to port 3000.
grunt
OSX is also quite a simple installation. Skip the sections if you already have that software installed.
- Run the installer
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Then run
brew update
to make sure Homebrew is up to date
brew update
- Add Homebrew to the dollar $PATH so it can be accessed properly
echo "export Path=/usr/local/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
- (Optional but suggested) Run
brew doctor
to make sure that homebrew is ready to work.
brew doctor
Use homebrew to install node.js and npm
brew install node
- Install Grunt's CLI with npm (If this did not work something went wrong with the Node installation)
npm install -g grunt-cli
- Use homebrew to install MongoDB
brew install mongodb
- Setup the default 'data/db' folder for mongoDB (use
sudo
if you have to)
mkdir -p /data/db
- Ensure the current user running mongoDB has read and write permissions for the data/db
-
Ensure you are in /mobility-track-nodejs/ for the following steps
-
Run mongoDB (use
sudo
if you need to)
mongod
- Run grunt to finish the setup and start the server
grunt
- Navigate to
localhost:3000
to access the site on your web browser.
Now get started developing!