Skip to content
forked from kiang/elections

A platform to collect candidates profiles for all elections in Taiwan

Notifications You must be signed in to change notification settings

appleboy/elections

 
 

Repository files navigation

選舉黃頁

選舉黃頁試著要製作一個介面去呈現在台灣出現過的所有選舉以及候選人資訊,目前主要聚焦在 2014 發生的九合一選舉

選舉黃頁目前是以 CakePHP 2.5.x 製作,為了方便管理已經將核心放入了專案中

安裝方式

下載:

  1. cd /var/www
  2. git clone https://github.com/kiang/elections.git
  3. cd elections

環境設定:

  1. cp -R tmp_default/ tmp
  2. cp .htaccess.default .htaccess
  3. cp webroot/.htaccess.default webroot/.htaccess
  4. cp webroot/index.php.default webroot/index.php
  5. cp Config/core.php.default Config/core.php
  6. cp Config/database.php.default Config/database.php

資料庫處理:

  1. 在 MySQL 建立資料庫
  2. 將資料庫的設定寫入 Config/database.php
  3. 匯入 Config/sql/db_*.sql.gz 資料(需要解壓縮),例如:
  4. gzip -d db_20140731.sql.gz
  5. mysql -uroot -p your_db < db_20140731.sql
  6. 完成後預設帳號、密碼都是 kiang
  7. 如果只需要一個空的資料庫,可以匯入 Config/schema/schema.sql ,透過瀏覽器開啟時會自動提示建立管理者帳號

About

A platform to collect candidates profiles for all elections in Taiwan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published