Coder Social home page Coder Social logo

samuikaze / rinostudynotes Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.49 MB

一個提供 API 及網頁管理介面,可以存取與管理公主連結相關資料給為了解決聊天機器人爬蟲效率及資料來源問題的自己

Home Page: https://samukaze.heliohost.us/

License: MIT License

Shell 0.15% PHP 62.49% Vue 0.10% Blade 36.98% Sass 0.26%
princess-connect-redive princess-connect laravel

rinostudynotes's Introduction

璃乃學習筆記 / RinoStudyNotes

⚠ 這個專案目前還在開發階段 ⚠

這個專案是為 Line 機器人所寫的資料 API,做為後端資料對接用。

UptimeRobot   UPTIMEMonthly

TODO

  1. ✅ 編輯使用者資料
  2. ✅ 審核申請的使用者與停權/復權帳號
  3. ▶️ 編輯 API 資料
    1. ✅ 角色資料編輯
    2. ✅ 角色相關雜項資料編輯(刪除功能還沒)
    3. ✅ 專武資訊
    4. ❌ 角色站位資訊
    5. ✅ 版本管理
    6. ❌ 編輯使用者權限
    7. ▶️ API 資訊管理(前端顯示用)
    8. ✅ 後台資料取用的 API 與公共 API 拆分
  4. ▶️ API 清單
    1. ▶️ 清單
  5. ❌ 標頭驗證

說明

這個專案用於快速建置可以提供公主連結資料的 API 伺服器(不包含資料),提供的一個後台系統供新增和編輯資料,支援多人登入增修資料,此專案是以 Laravel 8.0 建置。

機器人講求的是回應快速,原本我是使用爬蟲爬各種資料,但是在經歷各種網站改版和回應過慢的問題後,還是決定自己寫一個提供資料的系統,再也不會因為網站改版或 Chrome 問題而煩惱要怎麼改 code 了

線上版本

由於這個專案就是我自己需要這些資料,所以目前可以直接 從這邊 存取資料,另可 由此檢視伺服器狀態

本機版本

需求

  • php 7.3 或以上
  • 至少包含一個下列其中一種資料庫
    • MySQL 5.6+
    • MariaDB
    • PostgreSQL 9.4+
    • SQLite 3.8.8+
    • SQL Server 2017+
    • 資料庫資訊參照 Laravel 文件

安裝

  • git clone 這個專案
  • .env.example 重新命名為 .env
  • 把設定填進 .env
  • 終端機執行 composer install
  • 終端機執行 npm install && npm run dev
  • 終端機執行 php artisan migrate:refresh --seed
  • 終端機執行 php artisan key:generate
  • 啟動網頁伺服器和資料庫或終端機執行 php artisan serve
  • 注意,如果是要部屬到正式環境,部屬前請先執行 npm run prod
  • 如要部屬到虛擬空間上,請注意須將所有流量重導到 public 資料夾下,下面以 Apache 為例:
    • 在根目錄新增 .htaccess 檔案。
    • 在檔案中輸入以下內容後儲存:
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteRule ^(.*)$ public/$1 [L]
    </IfModule>

使用

  1. 後臺功能
    • 直接使用瀏覽器存取 http://yourhostingurl/admin 即可
    • 第一次安裝後如需登入管理員帳號請使用下面的帳號,並請登入後自行修改密碼
    使用者名稱: administrator
    密碼: 123
    
  2. API 存取
    • 請加入以下列出的所有標頭
    Accept: application/json
    Content-Type: application/json
    X-Requested-With: XMLHttpRequest

版本管理

授權

MIT License

rinostudynotes's People

Contributors

dependabot[bot] avatar samuikaze avatar

Stargazers

 avatar

Watchers

 avatar

rinostudynotes's Issues

Logout redirect Issue

In resources/js/backend.js line 152 to 156, when API responses after the message modal is shown will cause modal event listener become invalid.

resources/js/backend.js 第 152 到 156 行中,當 API 在登出訊息的 Modal 顯示後才回應會導致 Modal 的顯示事件監聽無效

Footer style issue

When body content longer than view port, footer will cover body content and will fix buttom when scroll.

當網頁內容比瀏覽器顯示區域還要長時,頁腳會把網頁內容蓋住,且會一直固定顯示在瀏覽器的下方。

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.