Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MOPCON/Game-Server

Open more actions menu

Repository files navigation

Game-Server

大地遊戲後端

Requirement

  • PHP >= 7.1.3
    • GD PHP Extension

安裝

  • 安裝 PHP 套件
composer install
  • 複製 .env.example 到 .env
cp .env.example .env
  • 設定管理密碼
    ADMIN_KEY=

  • 設定最後一道關卡的 uid
    LAST_MISSION_UID=

  • 設定最後一項任務的 id
    LAST_TASK_ID=

  • QR Code 產生器網址
    /qrcode/{slug}

  • 修改資料庫相關參數

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=mopcon_gameserver
DB_USERNAME=user
DB_PASSWORD=pwd
  • 產生 JWT secret key

ps. 此指令會將原本的 secret 覆蓋掉

php artisan jwt:secret
  • 產生資料表與假資料,如果不想產生假資料,請移掉 --seed 參數。
php artisan migrate --seed
  • 執行內建的開發用伺服器
php -S localhost:8000 -t public

About

大地遊戲後端

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.