Skip to content

Deckbuilder for Legend of the Five Rings (API server)

License

Notifications You must be signed in to change notification settings

xWorkerBeex/fiveringsdb-api

 
 

Repository files navigation

CircleCI

fiveringsdb

A deckbuilder for Legend of the Five Rings LCG

Installation

Prerequisites

  • php 7.x and various extensions (see composer.json)
  • mysql (or compatible)
  • git
  • composer
  • node 6.x (currently, the Ubuntu 16 official repo has node 4.x)
  • npm

Installation

  • Create a database in MySQL: mysql -uroot -p -e "create database fiveringsdb"
  • Clone the code repository: git clone https://github.com/Alsciende/fiveringsdb.git
  • Clone the data repository: git clone https://github.com/Alsciende/fiveringsdb-data data
  • Go to the code repository: cd fiveringsdb

Back-end

  • Install the vendors: composer install
  • Create the schema and fixtures: ./reset-env dev
  • Run the Symfony server: bin/console server:start localhost:8642

Images (optional)

  • Symlink to a folder containing the card images: ln -s /path/to/card/images web/bundles/card_images

Front-end

  • Go to the frond-end project: cd vue
  • Install the vendors: npm install --no-optional
  • Export the API URL: export FIVERINGSDB_API_URL=http://localhost:8642/app_dev.php/ (trailing slash mandatory)
  • (optional) Export the card images folder URL: export FIVERINGSDB_IMG_URL=http://localhost:8642/bundles/card_images/ (trailing slash mandatory)
  • Run the Webpack server: npm run dev

Tests

Back-end

./reset-env test
./vendor/phpunit/phpunit/phpunit

Front-end

Soon...

Code Quality

Back-end

Soon...

Front-end

cd vue
npm run lint

About

Deckbuilder for Legend of the Five Rings (API server)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 95.8%
  • API Blueprint 2.1%
  • Gherkin 1.4%
  • Makefile 0.7%