Udaman is UHERO's data management system.
Guide assumes you've installed mysql on your computer
Run this from zsh or bash, not from inside mysql.
$ mysqldump -u uhero -p test > dump.sql
Move file from uhero12 to udaman's root directory
$ scp username@uhero12:/path/to/dump.sql /path/to/local/udaman/dir
Load copied data file into test db on your computer
$ mysql -u uhero -p test < ./dump.sql
Voila! Doublecheck your database.yml file to confirm your databse name, and access info.
.ruby-version
and Rails version listed in Gemfile
. $ bundle install
From the Udaman application folder, open the rails console:
$ rails console
Add a user:
User.create!(email: "your@email.com", role: <as appropriate>, password: "secret", password_confirmation: "secret")
Replace your@email.com
and secret
with your desired username and password.
Quit the rails console
quit
Start the rails server in the console
$ rails s -b 0.0.0.0
In another terminal window enter the rails console in the project folder (rails console
). And find the name of a series with data in it using the following command:
Series.all.each {|s| dps = s.current_data_points.count; puts "#{s.name}, #{dps}" if dps > 0};0
This command will spit out a list of series mnemonics with their number of current data points.
Navigate to Udaman in your browser. The default location is http://localhost:3000/.
Type the name of the series (i.e., the series mnemonic) you've chosen into the search bar in the top right of Udaman. For example, "BRENT@US.M"
Click the Analyze link in the under the series header to the left to see a graphical display of this series.
Fork this repo and submit a pull request if you would like to contribute to Udaman.