Skip to content

Heroyt/LaserArenaControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laser arena control

PHP Unit test

Vojík Tomáš xvojik00@stud.vutbr.cz, vojik@wboy.cz

Installation

First, you need to set up the app's config file.

Copy the /private/config_dummy.ini file to /private/config.ini and change the necessary DB connection configuration.

Then, install the application by calling:

$ composer install-app

This will install all dependencies, build webpack assets (css and js), create all DB tables and seed it with starting data.

Lastly, you can start the PHP server with:

$ composer serve

(You don't have to start the server if you have Apache setup already)

Useful commands

$ composer build

Installs composer dependencies, installs npm dependencies, builds webpack assets.

$ composer build-production

Installs composer dependencies, installs npm dependencies, builds webpack assets and removes dev-dependencies.

$ composer install-app

Runs composer build and installs database - creating DB tables and seeding some data.

$ composer test

Runs unit tests.

$ composer serve

Starts PHP server on port 8000.

$ composer docs

Generates doxygen API docs.

$ npm run build

Builds webpack assets in production mode.

$ npm run build-dev

Builds webpack assets in development mode.

$ npm run watch

Builds webpack assets. Watches assets changes and auto-builds on save.