Giter VIP home page Giter VIP logo

filmemo's Introduction

filmemo

A movie emoji party game where users have to guess the movie name from emojis Game Link: http://filmemo.techtuft.com

Setting up and running docker

docker build -t platput/filmemo:1.0.0 .
docker create \
   -e OPENAI_API_KEY=<actual openai api key> \
   -e GOOGLE_APPLICATION_CREDENTIALS=/tmp/keys/g-secret.json \
   -v $GOOGLE_APPLICATION_CREDENTIALS:/tmp/keys/g-secret.json:ro \
   --name filmemo -p8081:8080 platput/filmemo 

Testing

poetry run coverage run -m pytest . && coverage report -m

CI/CD

  • Before setting up the github action,
    • the openai api key should be set in github secrets
    • gcp credentials file should exist in the ec2 instance
    • the path to credential file should be set under the env key GOOGLE_APPLICATION_CREDENTIALS
  • There will be 2 set of tags ui-release-1.0.0 and api-release-1.0.0
    • upon a new tag like ui-v only ui action will be triggered
    • upon a new tag like api-v only api action will be triggered

filmemo's People

Contributors

dependabot[bot] avatar platput avatar platvin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

filmemo's Issues

Add a message for asking the user to wait until the game is created

After the "Create Game" button click, the button shows loading animation. But sometimes, the game creator will have to wait for like 20+ seconds. When this happens, the user might think that there is some issue or, the request has failed. So, there should be a snackbar alert asking the user to wait in case the game is not created within 5 seconds. Snackbar implementation can be found in: filmemo-ui/src/views/GameRoom.vue

The delay is occurring because when chatgpt is under load, the game can't be created instantly as the response from chatgpt is delayed.

Let the users keep on trying until the time is up

If the guessed answer is wrong, user can enter another answer until either the time is up or the correct answer is entered. There should be a button so that users can skip answering it as well. This should ideally put the user in waiting mode.

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.