Skip to content

faozziyyah/learning-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

learning-management-system

AltSchool Africa 3rd semester project using flask_restx using this this requirements. It is a simple API that allows you if you are an Admin to perform CRUD operations on students and courses. It also allows you to register students to courses and add grade for students.

Table of contents

Overview

The challenge

  • Admin can create, read, update and delete students and courses
  • Admin can register and unregister students to courses
  • Admin can add grade for students
  • Admin can view all students and courses
  • Admin can view all students registered to a course
  • Admin can view all courses a student is registered to
  • User/Student can view all courses he/she is registered to and the grade he/she got for each course
  • User/Student can Register to a course
  • User/Student can Unregister from a course
  • User/Studet can view and update his/her details

Installation

  • Clone the repository
  • Create a virtual environment python3 -m venv venv or with virtualenv venv
  • Install the requirements pip install -r requirements.txt
  • Run the application python3 runserver.py
  • Initialize the database Flask --app api db init

Links

To use

  • To run the application, run python3 runserver.py
  • To run the tests, run python3 -m pytest
  • To Create an Admin, run Flask --app api create-admin-command then put the admin Username and Password
  • To Active the Admin, run Flask --app api activate-admin-command then put the admin Username
  • To Deactivate the Admin, run Flask --app api deactivate-admin-command then put the admin Username
  • To Delete the Admin, run Flask --app api delete-admin-command then put the admin Username