Enter Geomagnetic absolute measurements to calculate baselines to be applied to raw magnetometer data.
-
Fork the project into your GitHub user account.
-
Sign in to GitHub.
-
Go to
https://github.com/usgs/geomag-baseline-calculator
. -
Click the Fork button near the top right of the page.
-
Make sure you Add an SSH Key to GitHub for the computer you're working on into your GitHub account.
-
Clone from fork (update for your fork).
Navigate to the HOME directory that you want to use for projects. Replace[your username]
with your GitHub username.
git clone [email protected]:[your username]/geomag-baseline-calculator.git geomag-baseline-calculator
cd geomag-baseline-calculator
-
Add upstream remote for primary (use terminal)
git remote add upstream [email protected]:usgs/geomag-baseline-calculator.git
Check your remotes with
git remote -v
, it should look like this
origin [email protected]:[your username]/geomag-baseline-calculator.git (fetch)
origin [email protected]:[your username]/geomag-baseline-calculator.git (push)
upstream [email protected]:usgs/geomag-baseline-calculator.git (fetch)
upstream [email protected]:usgs/geomag-baseline-calculator.git (push)
You will need to have the following tools installed in order to run this project:
- Node
- Bower
- Grunt
- PHP
- Ruby
- Sass
- Compass
Dependency install details for Windows and Mac
Make sure you are in your geomag-baseline-calculator
project directory.
Install these packages from your terminal.
-
Use Node to install bower
npm install -g bower
bower install
-
Use Node to install grunt-cli and PHP
npm install -g grunt-cli
npm install php
-
Use Ruby to install sass and compass
gem install sass
gem install compass
-
Use Node to get any missing dependencies
npm install
Enter development mode: grunt
If grunt runs with no errors or warnings, and a test web page opens in your
default web browser then you are ready to begin development.
Files:
- All javascript classes are in the "src/htdocs/js/" directory.
- All matching tests for javascript classes are in the "test/spec" directory.