Giter Site home page Giter Site logo

game-server's Introduction

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

game-server's People

Contributors

hashman avatar fwcloud916 avatar unciax avatar xwang0929 avatar zames-chang avatar dependabot[bot] avatar

Watchers

James Cloos 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.