Code Monkey home page Code Monkey logo

tortoise_vs_turtle's Introduction

Tortoise vs Turtle

About

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.

Screenshot

Demo

https://tortoisevsturtlewebapp.azurewebsites.net/

Pipeline

https://github.com/ganievart/tortoise_vs_turtle/actions

Contribution

Prerequisites

The project requires docker to be installed on your local machine.

How to start

  1. Request the tokens for Pixabay and Azure Bing from Artur.
  2. 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>
  1. Build with docker docker build -f Dockerfile -t app ..
  2. Run docker run -p 80:5000 --env-file .env app

Application is avaliable on http://localhost/

Run Client (UI) only

Node 16.13.1 si required.

  1. Go to client folder.
  2. Run npm install
  3. Run npm run start

UI is avaliable on http://localhost:30000/

Run API only

Python 3.7 is required.

  1. Run flask run

API is avaliable on http://localhost:50000/

Cleanup

To remove all containers:

docker rm -f $(docker ps -aq)

To remove all images:

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.

tortoise_vs_turtle's People

Contributors

ganievart avatar andreitalashka avatar mrupyachka avatar montesqu1eu avatar

Stargazers

 avatar

Watchers

James Cloos avatar

tortoise_vs_turtle's Issues

Make keywords configurable

Would be nice to be able to try this app with custom keywords, not just turtle/tortoise.
new keywords could be sourced from environment or provided by player on start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.