a mini game (text format) that emulates a turn-based battle of Stalingrad between the two tanks.
The game is done using php 8.2 with laravel framework and MongoDB the API is documented using Swagger
- You have installed Docker and Docker Compose. If not, you can download them here.
- You have a Linux machine. This guide is tailored for Linux users.
To install Battle of Stalingrad, follow these steps:
- Clone the repository from GitHub:
- Navigate to the project directory:
cd BattleOfStalingrad
- Build the Docker images and start the containers:
docker-compose up --build
- Go into de container battleofstalingrad-app-1
Run the BASH or EXEC into the battleofstalingrad-app-1 container and run:composer install
NOTE: this is because I use a especific library for connect to the mongo DB database so is needed to reinstall all the vendor packages. - Start the laravel server with the command:
php artisan serve
- Once the project is up and running go to
http://localhost:8000/start
This command will setup tanks and maps needed to play the game
The API run in the port 8000 and you can check it http://localhost:8000/api/documentation.
The Laravel framework is open-sourced software licensed under the MIT license.