This project is a a simple RESTful API for the Pirate Cave project.
Check the Unity game here
GET - players/
GET - players/{nick}
POST - players/
PUT - players/
GET - history/{nick}
PUT - history/
- Clone this repository
git clone https://github.com/pferreirafabricio/php-pirateCave.git
; - Enter in the project's folder:
cd php-pirateCave
- Build the app image:
docker-compose build app
- Start the containers:
docker-compose up -d
- Install project's dependencies:
docker-compose exec app composer install
- Finally you can visit
127.0.0.1:8000
from your browser 😃
- Fork this repository;
- Create a branch with your feature:
git checkout -b my-feature
- Commit your changes:
git commit -m 'feat: My new feature'
- Push your branch:
git push origin my-feature
This project is under the MIT license. Take a look at the LICENSE file for more details.