πŸ‘©πŸ»β€πŸ’» Rate and view your professors from various modules, semesters and years!

A Django based RESTful API project that allows students to rate the teaching of professors in various modules - it makes SQL queries to the database to add, update and view ratings.

➰ Project Duration

March, 2020 - April 2020

🎨 Features / μ£Όμš” κΈ°λŠ₯

  • These REST API endpoints provide the following functionalities:
Commands API Explanation Syntax
Register /api/register/ register to the website register
Login /api/login/ login login http://localhost:8000/
Logout /api/logout/ logout logout
List /api/list/ List all module instances and the professors teaching each of them list
View /api/view/ View the rating of all professors view
Average /api/average/ View the average rating of a certain professor in a certain module average professor_id module_code **e.g.** e.g. average JE1 CD1
Rate /api/rate/ Rate the teaching of the professor in a certain module instance rate professor_id module_code year semester rating e.g. rate JE1 CD1 2017 1 4

🐾 Examples / μ‚¬μš© 예제

  • Main Command Line Interface
    Screenshot 2020-12-01 at 3 37 52 pm
  1. Register
    Screenshot 2020-12-01 at 4 02 22 pm

  2. Login / logout
    Screenshot 2020-12-01 at 3 43 42 pm

  3. List
    Screenshot 2020-12-01 at 3 42 08 pm

  4. View
    Screenshot 2020-12-01 at 3 42 02 pm

  5. Average
    Screenshot 2020-12-01 at 3 44 09 pm

  6. Rate
    Screenshot 2020-12-01 at 3 45 29 pm

πŸ“š Stack / 개발 ν™˜κ²½

  • Python
  • Django - A high-level Python Web framework that allows for rapid development and clean, pragmatic design
  • SQLite3 - A C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine.

βš’ Installation / μ‹€ν–‰ 방법

Installing dependencies

pip install requests
pip install pandas

Running the server:

python3 manage.py runserver 8000

Running the client:

python3 client.py

πŸ“œ License

This project is licensed under the terms of the MIT license.

You can check out the full license here

Leave a comment