A Hydra app that focuses on Digital Asset Management functions.
Phydo has the following dependencies that you must install yourself.
- Ruby >= 2.3.0
- Java 1.8
- Redis server
NOTE: All commands after Step 1 should be run from where ever your code is located.
-
Clone the repository
cd path/to/wherever/you/want/your/code/to/live git clone https://github.com/IUBLibTech/phydo.git
-
Install gems
bundle install
-
Migrate the database
rake db:migrate
-
From a new terminal window, start the development Solr instance using the
solr_wrapper
gembundle exec solr_wrapper --config .solr_wrapper.development.yml
NOTE: Solr will continue to run as long as the process in the terminal window is running. Closing the terminal window will stop Solr, unless you've explicitly told it to run in the background. Ctrl+C will stop Solr without closing the terminal window. Press Ctrl+C only once, and allow SolrWrapper to exit.
-
From a new terminal window, start the development Fedora instance using the
fcrepo_wrapper
gembundle exec fcrepo_wrapper --config .fcrepo_wrapper.development.yml
NOTE: Fedora will continue to run as long as the process in the terminal window is running. Closing the terminal window will stop Fedora, unless you've explicitly told it to run in the background. Ctrl+C will stop Fedora without closing the terminal window.
-
Start Redis server from a separate terminal window.
# From a dedicated terminal window... redis-server
NOTE: Redis server will continue to run as long as the process in the terminal window is running. Closing the terminal window will stop Redis server, unless you've explicitly told it to run in the background. Ctrl+C will stop Redis server without closing the terminal window.
-
From a new terminal window, start the Rails server.
rake rails s
NOTE: The Rails server will continue to run as long as the process in the terminal window is running. Closing the terminal window will stop the Rails server, unless you've explicitly told it to run in the background. Ctrl+C will stop Rails server without closing the terminal window.
-
Verify Rails is working by opening http://localhost:3000 in your browser.