Skip to content

Johan511/OB-course-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Course Website Backend

This is the backend for a course website built with Flask. It includes user authentication, course management, assignment uploads, and lecture uploads.

Setup

  1. Clone the repository:

    git clone <repository-url>
    cd backend
    chmod +x setup.sh
  2. Install Ollama host:

    curl -fsSL https://ollama.com/install.sh | sh
    
  3. Create a virtual environment and activate it:

    python3 -m venv venv
    source venv/bin/activate
  4. Install the dependencies:

    pip install -r requirements.txt

Running the Server

To run the Flask server, use the following command:

./setup.sh

API Endpoints

User Authentication

  • Register: POST /api/register
  • Login: POST /api/login

Courses

  • Get Courses: GET /api/courses
  • Get Course Details: GET /api/course/<course_id>

Teacher Endpoints

  • Upload Assignment: POST /api/teacher/upload-assignment
  • View Submissions: GET /api/teacher/view-submissions
  • Upload Lecture: POST /api/teacher/upload-lecture

Static Files

  • Serve Static Files: GET /static/<filename>

License

This project is licensed under the MIT License.

About

Backend for OB Software Engineering course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors