Skip to content

cic-tw/cic-website

 
 

Repository files navigation

國會調查兵團網站

這是國會調查兵團的網站原始碼,以MIT釋出。

API文件請見:

https://g0v.hackpad.com/API-bSmx3h922jc

Build Status

Project Build

  • Make sure you have already start PostgreSql and Redis
bundle install
cp config/database.yml.default config/database.yml
cp config/config.yml.default config/config.yml
  • Setup database.yml, start postgresql and start redis-server.
bundle install
rails 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.

Redis

  • install
brew install redis-server

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 50.8%
  • Ruby 21.8%
  • Slim 10.4%
  • CSS 9.8%
  • SCSS 5.2%
  • JavaScript 2.0%