π©π»βπ» 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
-
Register
-
Login / logout
-
List
-
View
-
Average
-
Rate
π 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