Giter Club home page Giter Club logo

elections's Introduction

選舉黃頁

選舉黃頁試著要製作一個介面去呈現在台灣出現過的所有選舉以及候選人資訊,目前主要聚焦在 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 ,透過瀏覽器開啟時會自動提示建立管理者帳號

elections's People

Contributors

kiang avatar minipai avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.