Application to simulate chess knight moves
Here, you can register some pieces and get all possible positions to a knight piece in two turns.
The recommendation is to user Docker and docker-compose (if you need to install it on Ubuntu, I suggest this tutorial)
You just need to clone or download this repository, navigate into folder, then run the following commands:
$ docker-compose build
$ docker-compose up -d
Now, you have an running API on your localhost on the port 8000.
You may want have a local superuser, so run the command below and follow instructions.
$ docker-compose run --rm web python manage.py createsuperuser
You can use the provided credentials to access the admin interface on https://localhost:8000/admin/
.
You can find API swagger documentation and do some tests https://localhost:8000/swagger/
Also, you can run unit automated tests running the following command
$ docker-compose run --rm web python manage.py test
I hope you enjoy it.
Feel free to contact me any time on telegram @tyronedamasceno or tyronedamasceno@gmail.com