Skip to content

This web app uses the OPEN AI API to take prompt from the user about the question category and its level to return the questions of mentioned category from Leetcode.

Notifications You must be signed in to change notification settings

jesmigeorge/Leetcode-Recommendation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openaiProject

This web app uses the OPEN AI API to take prompt from the user about the question category and its level to return the questions of mentioned category from Leetcode.

Errors

  1. Not completed the endpoint in fetch() of frontend,also proxy in package.json should have address of the backend.

  2. Get Request - CORS error - just enable cors through the response.header that is passed from backend to frontend because browser follows same origin policy for safety.In case of this error dont disable cors in browser manually,rater control it via code.

  3. Post Request - There wasn't any problem in code.The problem was virtual environment was not setup properly.In the requirements.txt there were many other packages that weren't needed for the project also faced issues during their installation.Just delete the venv and install it once again.Then check the requirements.txt if its correct and confirm.

To run flask in backend

First install virtual environment - python -m venv env

Then run this -

env\scripts\activate
flask run

For frontend

To install the react packages.

npx create-react-app

To run for development.

npm start

Final Working

output1

output

Product Walkthrough

Open.ai.mp4

About

This web app uses the OPEN AI API to take prompt from the user about the question category and its level to return the questions of mentioned category from Leetcode.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published