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:
- Ruby 1.9.3 (support for 2.0+ coming soon)
- Bundler
- Githttp://git-scm.com)
-
Download the project code from Github
git clone git@github.com:tablexi/nucore-open.git nucore
-
Install dependencies
cd nucore bundle install --without oracle
-
Configure your databases
cp config/database.yml.mysql.template config/database.yml
Edit the adapter, database, username, and password settings for both the development and test DBs to match your database instance
-
Create your databases
rake db:create rake db:schema:load rake db:schema:load RAILS_ENV=test
-
Seed your development database
rake db:seed rake demo:seed
-
Start your server
bin/rails s
-
Log in
Visit http://localhost:3000
demo:seed
creates several users with various permissions. All users have the default password ofpassword
Email/username Role admin@example.com Admin ppi123@example.com PI sst123@example.com Normal User ast123@example.com Facility Staff ddi123@example.com Facility Director -
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