Skip to content

Commit

Permalink
add explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
sciuridae0603 committed Jul 30, 2016
1 parent f8be5ee commit 13c9e5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# YSITD_QA_API
Write By Sciuridae and Coin
Write By Sciuridae and Coin
# API
GET question?token&user
Return 題目(string), 答案(array), 問題編號(int?), 出題者
Expand All @@ -13,3 +13,10 @@ Retuen 答對題數 錯誤題數
POST start
Fields: token, user
建立基本使用者資料

# 使用
1. php init.php
建立資料庫用
2. vim config.php
將裡面的數值修改為主機的數值
3. 可以開始使用了!
12 changes: 6 additions & 6 deletions config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

return [
'token' => 'Token Here',
'db_host' => 'Host IP Here',
'db_user' => 'DB Username Here',
'db_password' => 'DB Password Here',
'db_name' => 'DB Name Here',
'questions' => '0'
'token' => 'Token Here', //驗證用
'db_host' => 'Host IP Here', //資料庫IP
'db_user' => 'DB Username Here', //資料庫使用者
'db_password' => 'DB Password Here', //資料庫密碼
'db_name' => 'DB Name Here', //資料庫名稱
'questions' => '0' //題目數量
];

0 comments on commit 13c9e5e

Please sign in to comment.