This project is a full-stack web application built with React for the frontend and FastAPI (Python) for the backend. It provides functionality to generate multiple-choice questions (MCQs) based on a given URL.
To run the frontend, follow these steps:
-
Open a terminal and navigate to the directory.
-
Install dependencies.
npm install
-
Start the development server.
npm run start
-
Open your web browser and visit http://localhost:3000.
To run the backend, follow these steps:
-
Open a terminal and navigate to the backend directory.
cd "Backend FastAPI Files"
-
Activate the virtual environment.
source venv/bin/activate
-
Run the FastAPI server.
uvicorn app.main:app --reload
-
Open your web browser and visit http://localhost:8000/docs to access the FastAPI interactive documentation.
-
Start the frontend and backend servers as instructed above.
-
Access the web application at http://localhost:3000.
-
Enter a URL and click the "Generate MCQs" button.
-
The application will communicate with the backend to fetch MCQs based on the provided URL.
-
View the generated MCQs and associated information on the web page.
- React
- Other dependencies are listed in the
package.json
file.
-- virtualenv
-- pip install virtualenv
- Ensure that both the frontend and backend servers are running simultaneously for the application to work correctly.
- Make sure to activate the virtual environment before running the backend server.