Git Product home page Git Product logo

codementorhub's Introduction

CodeMentorHub

Description

A web app where users can get technical questions, get hints, get their solutions evaluated, and double-check thier BigO notation understanding for that solution. Users can also use their own technical questions.

How it works

Users can either request problems of varying difficulty or input their own. When requesting a problem, an AJAX call is made to the Flask app, which then makes an API call to the OpenAI API for a challenge. The received text is processed to enhance clarity by removing backticks and shortening the content. This processed text is converted into an audio file (TTS) and played automatically.

Users can submit their solutions in a designated text box. At any point, they can request hints or feedback or ask to evaluate their BigO notation. This again uses AJAX calls to the Flask app, triggering API calls to OpenAI. The responses are converted into audio files, automatically played for the user.

Screenshot

Homepage

Generated question and hint

Generated question, ask for hint, feedback and Big O

Gif of user experience

Technology Stack

Application: Python, Flask, Jinja
APIs: OpenAI
Front-End: HTML/CSS, Bootstrap, JQuery, JavaScript, AJAX

How to run CodeMentorHub on Replit

  • Go to Replit Project
  • Fork project
  • Click on Run button at the top of the webite

How to run CodeMentorHub

Create a virtual environment

> virtualenv env
> source env/bin/activate

Install the dependencies

> pip install -r requirements.txt

In a new Terminal run App

> python server.py

Open your browser and navigate to

http://localhost:5000/

Note: The Agent functionality requires that you have an OpenAI developer keys set as local environment variables:

OPEN_AI_KEY

About the Developer

Jessica Dene Earley-Cha

Linkedin

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.