This repository aims to deliver the project requirements in SIT ICT Module 2101/2104.
python -m venv venv
venv\Scripts\activate
python3 -m pip install -r requirements.txt
python -m pip install --upgrade pip
set FLASK_APP=webportal.py
set FLASK_DEBUG=1
where debug = 1 is to make it so that it updates the pages.python ./webportal.py
http://127.0.0.1:5000/
to visit the web portal. The Git Feature Workflow with Development Branch is used by the team. We have a Development Branch that runs alongside the Master Branch and reflects the most recent development changes for the next release. Then, from the Development Branch, each developer on the team creates their own Feature Branch to work on the web portal's assigned features. Once a feature has been tested, it is merged with the Development Branch before being merged with the Master Branch.
Clone project
git clone https://github.com/TeamP4-04/ICT2101-2201-Team-Project.git
Checkout dev branch
git checkout dev
Create and checkout feature branch
git checkout -b feature/<featurename>
Push your feature branch to GitHub
git push -u origin feature/<featurename>
Checkout your feature branch
git checkout feature/<featurename>
Code and test your feature
Add your changes to the feature branch (best practice to add the files that you modified only)
git add <file name>
Commit your changes
git commit -m “<commit message>”
or
git commit
Press enter and type the summary and description for the commit. Then press esc and type :wq
Push your changes to Github
git push
Check out master branch
git checkout master
Pull updates from remote master branch to local master branch
git pull
Change back to feature branch
git checkout feature/<featurename>
Merge master branch code to feature branch
git merge master
You can create a pull request in Github to merge your branch to master branch
Checkout dev branch
git checkout master
Merge your feature branch to dev branch
git merge feature/<featurename>
Once every feature is integrated and tested, then it is ready to merge into master branch.
Checkout master branch
git checkout master
git merge dev
Delete local feature branch
git branch -d feature/<featurename>
Delete remote feature branch
git push origin --delete feature/<featurename>
Note: Best practice to commit your changes regularly
Alternatively, you can click on this link to watch the video https://www.youtube.com/watch?v=3BZyPw8U0CA
We have decided to choose Tutorial.
The following python scripts below are test cases for the test suite:
They reside in the RoboCarWEBPORTAL folder
of the repo.
Path Coverage was conducted on the Tutorial Class where V(G) = e - n + 2(p) such that:
- Edges = 18
- Nodes = 17
- Components = 2
Hence a minimum of 5 paths are needed to have sufficient coverage.
We have generated these statistics manually.
1. Ensure that Pytest is installed.
2. Ensure test scripts are in the same directory as webportal.py.
3. Open a command prompt from the same directory.
4. Enter "pytest" into the command prompt to run all test scripts.
Please go to the M3 Individual Reflection Folder
to access our individual reflections.