Create and integrate a tic tac toe API within a pre-built vuejs front-end
The functional requirements:
- Be able to create and delete matches
- Be able to join a match
- Be able to make moves and alter the game board
- Identify the winner
Install docker and docker-compose
Then run
./setup
This will take a few minutes. It will create the containers and setup them for use.
When finished, run the application with:
./up
And the application will be running in http://localhost:8080.
Note: If the port 8080 is already in use, change the configuration in the docker-compose.yml file. For example, to use the port 9090 instead:
ports:
- 9090:80
The application is PSR-2 compliant and comes with an included Code sniffer
$ vendor/bin/phpcs ./app
$ vendor/bin/phpcs ./tests
Open on your browser the following file to view the test coverage results: tests/build/coverage/index.html
.
$ ./phpunit