Deployment Manual
Class Explorer is a three-part application designed to enhance interactive learning and classroom engagement. It is composed of the following components:
- Unity Game
- React Teacher Dashboard
- FastAPI Model Backend
1. Unity Game
The Unity game component of Class Explorer provides an immersive, interactive learning environment. Students can engage with educational content through gamified elements, making it fun and motivating to explore various topics.
- Deployment: The game can be downloaded directly over the network and installed on student devices.
- Getting Started:
- Download the Unity game client.
- Install and run the client on a compatible device (PC, Mac, or mobile).
2. React Teacher Dashboard
The React-based teacher dashboard serves as the control center for the game. It provides tools for managing game content and game settings.
- Repository: teacher-ui on GitHub
- Features:
- Configure or customize game scenarios
- Manage Game settings
- Generate and upload quiz questions
- Object detection for quiz generation
- Getting Started:
- Clone the teacher-ui repository.
- Install dependencies by running
npm install
. - Start the development server with
npm run dev
to launch the dashboard locally. - Access the dashboard through your browser to log in and manage classrooms.
3. FastAPI Model Backend
The FastAPI Model Backend will handle data processing, storage, and AI model integrations for the Class Explorer system.
- Repository:
- Features:
- AI model integration for question generation
- Data processing and storage
- API endpoints for game interactions
- Getting Started:
- Option 1 (Local Deployment):
- Make sure you have a Nvidia GPU with CUDA support for AI model acceleration and python 3.8 or later.
- Clone the Educational Question Generator
- Install torch, torchvision for your CUDA version Click here for more information to install right torch.
- Install llama-cpp-python Click here for more information to install llama-cpp-python
- Install dependencies by running
pip install -r requirements.txt
. - Run the desktop application for generating questions by running
python ./main.py
. - Start the FastAPI server by running
uvicorn app.main:app --reload
to launch the backend server.
- Option 2 (Docker Deployment):
- Make sure you have a Nvidia GPU with CUDA support for AI model acceleration.
- Build the Docker image by running
docker build -t educational-quiz-generator .
. - Run the Docker container by running
docker run --gpus all -p 8000:8000 educational-quiz-generator
. - This will start the FastAPI server inside a Docker container, and you can access the API at http://127.0.0.1:8000.
- Option 1 (Local Deployment):
- Troubleshooting:
- If your server is not using GPU, make sure you have installed the right version of CUDA and torch. And also make
sure you install with CUDA support (set the
GGML_CUDA=on
environment variable before installing). - Check NVIDIA drivers are up to date
- For MacOS users, verify Metal support requirements
- If your server is not using GPU, make sure you have installed the right version of CUDA and torch. And also make
sure you install with CUDA support (set the