Giter Site home page Giter Site logo

machiko / newshelper-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from g0v/newshelper-backend

0.0 2.0 0.0 3.28 MB

新聞小幫手網站及 API server

Home Page: http://newshelper.g0v.tw/

ApacheConf 0.01% PHP 24.20% HTML 74.64% Perl 0.06% Shell 0.08% Python 0.27% CSS 0.57% JavaScript 0.17% LiveScript 0.02%

newshelper-backend's Introduction

新聞小幫手Backend

http://newshelper.g0v.tw/ 新聞小幫手的網頁以及 API Server 負責讓使用者回報錯誤新聞以及將錯誤資訊傳給 extension 用

如何開始

  1. 建立一個 mysql 資料庫

echo 'create database newshelper-db' | mysql -u root

  1. 建立一組 mysql 資料庫帳號密碼

  2. 產生 config.php

cp config.php.sample config.php

  1. 編輯 config.php 填入正確的資料庫帳號密碼、資料庫資訊

  2. 執行 php ./_backend/webdata/prompt.php 進入 prompt 模式

  3. 在 prompt 中執行以下語法

Report::createTable(); ReportChangeLog::createTable();

  1. 如果以上沒有任何錯誤訊息,代表資料庫建立完成了。

    接下來請執行 ./build 即可產成 _public 目錄

  2. 最後將 web server 的 document root 指到 _public 資料夾即可。

License

MIT http://g0v.mit-license.org/

newshelper-backend's People

Watchers

 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.