JRF Digital Archive
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
templates @ d1bb11a
test
vendor/assets
.gitignore
.gitmodules
.rspec
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru
test.csv
test.json
unicorn.conf.rb

README.md

司改會數位典藏系統

這是民間司法改革基金會數位典藏檢索系統

This is the Digital Archive Querying System of Judicial Reform Foundation, Taiwan.

Build Status

Project Build

  • Make sure you have already start PostgreSql
bundle install
cp config/database.yml.default config/database.yml
cp config/config.yml.default config/config.yml
  • Setup database.yml & start postgresql.
bundle install
rake db:create db:migrate
rails server
  • Yo login as admin, setup Google or Facebook OAuth login at config/config.yml, and set the user as admin in rails console.

PostgreSql

  • install
brew install postgresql
brew unlink postgresql
brew link postgresql
ARCHFLAGS="-arch x86_64" gem install pg
psql
  • replace your_name & your_password
CREATE USER your_name WITH PASSWORD 'your_password';
CREATE DATABASE "your_name";
GRANT ALL PRIVILEGES ON DATABASE "your_name" to "your_name";
ALTER USER "your_name" WITH SUPERUSER;

LICENSE

This project is release under MIT License.