Tortoise vs Turtle is a hobby project that allows users to test their knowledge of the differences between tortoises and turtles. It obtains free random images from Pixabay and then uses Bing to determine if the image depicts a turtle or a tortoise.
https://tortoisevsturtlewebapp.azurewebsites.net/
https://github.com/ganievart/tortoise_vs_turtle/actions
The project requires docker
to be installed on your local machine.
- Request the tokens for Pixabay and Azure Bing from Artur.
- Create a file named
.env
in the root directory, and add provided keys to it.
pixabaykey=<PUT_PIXABAY_KEY_HERE>
bingkey=<PUT_BING_KEY_HERE>
- Build with docker
docker build -f Dockerfile -t app .
. - Run
docker run -p 80:5000 --env-file .env app
Application is avaliable on http://localhost/
Node 16.13.1 si required.
- Go to
client
folder. - Run
npm install
- Run
npm run start
UI is avaliable on http://localhost:30000/
Python 3.7 is required.
- Run
flask run
API is avaliable on http://localhost:50000/
docker rm -f $(docker ps -aq)
docker rm -f $(docker ps -aq)
Please note that these commands will remove all running and stopped containers and all images from your system. If you want to keep some images or containers, you can list them and exclude them from the command.