This is the backend for a course website built with Flask. It includes user authentication, course management, assignment uploads, and lecture uploads.
-
Clone the repository:
git clone <repository-url> cd backend chmod +x setup.sh
-
Install Ollama host:
curl -fsSL https://ollama.com/install.sh | sh -
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate -
Install the dependencies:
pip install -r requirements.txt
To run the Flask server, use the following command:
./setup.sh- Register:
POST /api/register - Login:
POST /api/login
- Get Courses:
GET /api/courses - Get Course Details:
GET /api/course/<course_id>
- Upload Assignment:
POST /api/teacher/upload-assignment - View Submissions:
GET /api/teacher/view-submissions - Upload Lecture:
POST /api/teacher/upload-lecture
- Serve Static Files:
GET /static/<filename>
This project is licensed under the MIT License.