Open source version of Northwestern University Core Facility Management Software
Welcome to NU Core! This guide will help you get a development environment up and running. It makes a few assumptions:
-
You write code on a Mac.
-
You have a running Oracle or MySQL instance with two brand new databases.
-
You have the following installed:
-
Download the project code from Github
git clone [email protected]:tablexi/nucore-open.git nucore
-
Install dependencies
cd nucore bundle install
-
Configure your local settings
cd config/settings touch settings.local.yml ... edit settings.local.yml and add email.fake.to and override email.from with addresses that make sense for you ...
-
Configure your databases
cp database.yml.template database.yml ... edit the adapter, database, username, and password settings for both the development and test DBs to match your database instance ... cd ..
-
Create your databases
rake db:schema:load export RAILS_ENV=test; rake db:schema:load; unset RAILS_ENV
-
Seed your development database
rake demo:seed
-
Start your server
rails server
-
Login as Dave The Director
... Go to http://0.0.0.0:3000 ... ... Login with username '[email protected]' and password 'password' ...
-
Play around! You’re running NU Core!
NU Core uses Rspec to run tests. Try any of the following from NU Core’s root directory.
-
To run all tests (this will take awhile!)
rake spec
-
To run just the model tests
rake spec:models
-
To run just the controller tests
rake spec:controllers
There are valuable resources in the NU Core’s doc directory.
-
Need help getting Oracle running on your Mac? See HOWTO_oracle.txt
-
Want to authenticate users against your institution’s LDAP server? See HOWTO_ldap.txt
-
Need to use a 3rd party service with your NU Core? See HOWTO_external_services.txt
-
Need to asynchronously monitor some aspect of NU Core? See HOWTO_daemons.txt