Code Monkey home page Code Monkey logo

kahoot-clone-1's Introduction

Kahoot Clone

This project was created to clone the kahoot game with the backend section.


Prerequisites

There is somethings and tools that must be prepared and installed before starting the project.

1. Python
2. Visual Studio Code
3. Insomnia
4. Flask / Django

Installations

Flask

Create environment

Create a project folder and a venv folder within:

mkdir myproject
cd myproject
python3 -m venv venv

On Windows:

  py -3 -m venv venv

If you needed to install virtualenv because you are on an older version of Python, use the following command instead:

virtualenv venv

Activate the Environment

Before you work on your project, activate the corresponding environment: On Windows:

venv\Scripts\activate

Install FLASK

Within the activated environment, use the following command to install Flask:

pip install Flask

Feature from Kahoot Clone

  • Able to register and login data for creator quiz

      @app.route('/register', methods=["POST"])
      def userRegister():
      @app.route('/login', methods=["POST"])
      def loginUser():

    Password encode and decode for secure

      def enkrip(string,move):
      def dekrip(string,move):
  • Able to create, delete and update Quiz.

    @app.route('/quiz', methods=["POST"])
    def createQuiz():
    @app.route('/quizzes/<quizId>', methods = ["PUT", "GET", "DELETE"])
    def deleteQuiz(quizId):
    @app.route('/quizzes/<quizId>', methods = ["PUT", "GET", "DELETE"])
    def updateQuiz(quizId):

    Insomnia JSON for new quiz

      {
      "quiz-id": 123,
      "quiz-name": "makers batch IV",
      "quiz-category": "fun fact",
      "question-list": []
      }
  • Able to create. delete and update Question in Quiz

  • Join the game with username and game pin

    @app.route('/game/join', methods=['POST'])
    def joinGame():

    Insomnia JSON for join the game

      {
      "game-pin": 568929,
      "username": "clover"
      }
  • Submit answer for question

    @app.route('/game/answer', methods=['POST'])
    def submitAnswer():

    Insomnia JSON for submit answer

      {
      "answer": "C",
      "quiz-id": 123,
      "question-number": 1,
      "username": "aduh",
      "game-pin": 568929
      }
  • View leader board for the Winner

    @app.route('/game/leaderboard', methods = ["POST"])
    def getLeaderboard():

    Insomnia JSON for get leaderboard

    {
      "game-pin": 568929
    }   

License

Nur Imam Hawari Akbar makers institute

kahoot-clone-1's People

Contributors

hawariakbarr avatar

Watchers

James Cloos avatar

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.