KRISTINA, NAIF, MUNEER, DESMEND
Frontend: HTML, CSS, Bootstrap , Javascript
Backend: Python 3.10, Flask Web Framework, Virtual Environment , Microsoft Sql Server Database
Student Enrollment System Website
The Website is designed to serve educational organizations that will allow students to enroll in courses, with features such as printing several reports (timetable, location, courses, student list), implemented academic calendar, future course plans, and statical information. The organization will have control over the website with multiple rolls such as managers, lectures, and staff, each with their special features from printing reports to updating the data. The main objective is to construct a system that allows students to plan efficiently when enrolling in courses and have a better perspective of the requirement and the timeframe to finish their degree. The website will provide guidelines and alternative course plans.
Lecturers, Students, Regustration Staff Members, Regustration Managers, Head Officials
Decomposed User Stories into Tasks and Allocate tasks to each team member and record the allocation:
Backend: Database Backbone (Create Tables, Users Table and rols)
Frontend: Web Page (Main: login page ,Student: Enrolment, Student: Courses Plan, Student: future Courses Plan, Lecturer: Timetable, Lecturer: Student Lists)
Iteration 1 (2 weeks):
-
Develop Database Design
-
Create Flask Project and Venv
-
Create Database.
Iteration 2 (2 weeks):
-
Create Template and Style.
-
Create Webpage: (Main: login page ,Student: Enrolment, Student: Courses Plan, Student: future Courses Plan, Lecturer: Timetable, Lecturer: Student Lists)
Timeline: 4 weeks to milestone 1, 5 weeks to milestone 2
Iteration 1: 3 user stories x 8 story points = 24 Iteration 2: 7 user stories x 8 story points = 56
Total = 80
So, your average velocity is 80 ÷ 2 = 40.
Starting velocity: 40 % Total: 6 hours per week Current: 4 hours per week
1.C:> pip install virtualenv
-
venv\Scripts\activate.bat
-
python -m pip install --upgrade pip
-
python -m pip install flask
paste this code in visual studio code
Then run this code in terminal:
python -m flask run
When renamed the flask file: set Flask_APP=front_page
After getting the website link:
Hold Ctrl button and click on the link:
(venv) C:\Users\Muneer\Desktop\work>python -m flask run
- Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
- Running on http://127.0.0.1:5000 Press CTRL+C to quit 127.0.0.1 - - [01/Oct/2022 16:01:51] "GET / HTTP/1.1" 200 - 127.0.0.1 - - [01/Oct/2022 16:01:51] "GET /favicon.ico HTTP/1.1" 404 -
-
Open Any Terminal and run below command: python -m venv venv
-
Activate the Virtual Environment: For Linux Based OS Or Mac-OS. pip3 install --upgrade pip source venv/bin/activate
-
Installing Flask: pip install -U Flask
-
Flask run
For windows: $ pip install pytest from front_page import app
def test_front_page(): response = app.test_client().get('/')
assert response.status_code == 200
assert response.data == b'PythonByte!'
For MacOS and Linux: pip3 install pytest
For windows: pytest test_front_page.py
Output: (venv) C:\Users\Muneer\Desktop\work>pytest test_front_page.py ========================================================== test session starts =========================================================== platform win32 -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0 rootdir: C:\Users\Muneer\Desktop\work collected 1 item
test_front_page.py . [100%]
For MacOS and Linux: pytest test_front_page.py