Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
126a93c
added UUID for _id and fixed the start point issue
MakarandPundlik Oct 27, 2024
ebd5f02
added ride owner, unique username constraint and simplified db querying
MakarandPundlik Oct 27, 2024
eab2487
reomved route id by destination, used uuid instead
MakarandPundlik Oct 27, 2024
d7e602f
added google map integration
MakarandPundlik Oct 27, 2024
42354c6
changed db conn string
V4run14 Oct 27, 2024
35e7544
Added password hashing
V4run14 Oct 27, 2024
ad86c98
Merge pull request #2 from GradHackersGuild/varun_features
V4run14 Oct 27, 2024
027e2fb
Added GoogleMaps API autocomplete in create ride form. Added capacity…
V4run14 Oct 27, 2024
9f756b4
added option to join a ride and approve a ride for organizer
MakarandPundlik Oct 28, 2024
d19ec7e
Merge branch 'makarand_features' of https://github.com/GradHackersGui…
MakarandPundlik Oct 28, 2024
8c03c1d
Added feature to predict ride costs
michellevarghese Oct 28, 2024
1209d4d
Delete ride functionality fixed
V4run14 Oct 28, 2024
97bb35a
Added UI v2 temp files
michellevarghese Oct 28, 2024
1ae6c63
added approve requested user functionality from my rides
MakarandPundlik Oct 31, 2024
993452b
added requested ride and confrmed rides feature for user
MakarandPundlik Oct 31, 2024
2cb4a1b
Update testcases.yml
V4run14 Oct 31, 2024
27ad1e3
Modified files for tests
V4run14 Oct 31, 2024
65c7c8d
Merge branch 'varun_features' of https://github.com/GradHackersGuild/…
V4run14 Oct 31, 2024
22e4932
Update pip installs in testcases.yml
V4run14 Oct 31, 2024
5403da4
Update testcases.yml - Adding setuptools upgrade
V4run14 Oct 31, 2024
0eddd88
Updated python version in testcases.yml
V4run14 Oct 31, 2024
9adfcc1
Updated testcases.yml: DowngradedUbuntu version to support python
V4run14 Oct 31, 2024
bf4ef23
Update testcases.yml: Changing path for venv and requirements.txt
V4run14 Oct 31, 2024
c07ae49
Update README.md: Updated repos in all badges. Added Test badges.
V4run14 Oct 31, 2024
4b7765d
Update testcases.yml: Code coverage report upload
V4run14 Oct 31, 2024
564345b
Update testcases.yml: Renamed Workflow
V4run14 Oct 31, 2024
bd1a71e
Update README.md: Fixing workflow badges
V4run14 Oct 31, 2024
1dc5626
Update README.md: Path for test workflow badge
V4run14 Oct 31, 2024
b6258b9
Rename testcases.yml to run_test_cases.yml
V4run14 Oct 31, 2024
2e8a9e0
resolved a bug of redirecting to index page after request to ride
MakarandPundlik Oct 31, 2024
b9960bc
resolved a bug - same user was getting added on every approval
MakarandPundlik Oct 31, 2024
2e1aa5d
Update run_test_cases.yml: added branches to test workflows
V4run14 Oct 31, 2024
be00701
Update run_test_cases.yml: coverage report generation
V4run14 Oct 31, 2024
2ff0336
Update run_test_cases.yml: Adding codecov token
V4run14 Oct 31, 2024
968c830
Update README.md: Fixed codecov badge
V4run14 Oct 31, 2024
7980091
Update run_test_cases.yml: Run test workflows on all branches created
V4run14 Oct 31, 2024
d824918
Merge branch 'varun_features' into makarand_features
V4run14 Oct 31, 2024
dba86a3
Merge pull request #6 from GradHackersGuild/makarand_features
V4run14 Oct 31, 2024
bccf69a
Merge pull request #7 from GradHackersGuild/varun_features
V4run14 Oct 31, 2024
8ee6701
Update README.md: DOI Badge changed
V4run14 Oct 31, 2024
901a021
Update README.md: DOI Badge change
V4run14 Oct 31, 2024
8d36396
Revamped Navbar to new UI theme
michellevarghese Nov 1, 2024
c033ec4
Homepage Updated with new UI
michellevarghese Nov 1, 2024
e6da6e2
Updated UI of ride details page. Fixed Map not loading error
michellevarghese Nov 1, 2024
a746bfe
Revamped Search Rides UI. Integrated new navbar
michellevarghese Nov 1, 2024
b72a0db
Changed UI of add new ride page
michellevarghese Nov 1, 2024
265b3cd
Merge branch 'varun_features' of https://github.com/GradHackersGuild/…
michellevarghese Nov 1, 2024
454b4c9
Merge branch 'main_new' of https://github.com/GradHackersGuild/PackTr…
michellevarghese Nov 1, 2024
5b06ffe
Added test_views.py
V4run14 Nov 1, 2024
5c5fa66
Update nav to include ride_status
michellevarghese Nov 1, 2024
91fb473
Updated search to include request-to-join button
michellevarghese Nov 1, 2024
944871e
Built ride_status page+UI include all ride info
michellevarghese Nov 1, 2024
19f8558
Added makefile
V4run14 Nov 1, 2024
6f624e0
Added 14 test cases for user.views
V4run14 Nov 1, 2024
df50428
Fixed user.views test cases to mock db
V4run14 Nov 1, 2024
ce53a76
deleted sql db file, unnecessary
MakarandPundlik Nov 1, 2024
a4799cb
merging new_main into varun_features
MakarandPundlik Nov 1, 2024
6c20ce0
Merge pull request #22 from GradHackersGuild/varun_features
MakarandPundlik Nov 1, 2024
c4817bb
added license to all python files
MakarandPundlik Nov 1, 2024
77512b1
Update README.md: Fixed Tokei Badge
V4run14 Nov 1, 2024
969559d
Merge pull request #24 from GradHackersGuild/main_new
V4run14 Nov 1, 2024
0e307c0
added docstring to all python functions
MakarandPundlik Nov 1, 2024
babd87a
added unit test cases for publish/views.py
MakarandPundlik Nov 1, 2024
f41a95f
unit test cases for publish/views
MakarandPundlik Nov 1, 2024
42efad0
added test cases
MakarandPundlik Nov 1, 2024
5cb1a19
more tests
MakarandPundlik Nov 1, 2024
41b8286
added additional test cases
MakarandPundlik Nov 1, 2024
365e661
Merge pull request #23 from GradHackersGuild/makarand_lint
MakarandPundlik Nov 1, 2024
d004148
Added more tests for user.views
V4run14 Nov 2, 2024
130e450
removed hardcoded password from utils.py
MakarandPundlik Nov 2, 2024
2354369
removed hardcoded google api key
MakarandPundlik Nov 2, 2024
fc4fda6
Merge branch 'main_new' into varun_features
V4run14 Nov 2, 2024
a9ba578
Merge pull request #26 from GradHackersGuild/varun_features
V4run14 Nov 2, 2024
3bea431
added contributers name in license and fixed config.ini
MakarandPundlik Nov 2, 2024
885f6f3
Merge pull request #25 from GradHackersGuild/makarand_lint
MakarandPundlik Nov 2, 2024
ef045b3
Updated new rubric requirements
V4run14 Nov 2, 2024
36d524d
Update developers
MakarandPundlik Nov 2, 2024
0072f60
added test_views.py for search functionality
michellevarghese Nov 2, 2024
6fb70c0
Merge pull request #28 from GradHackersGuild/varun_features
V4run14 Nov 2, 2024
27a6a05
Merge branch 'main_new' of https://github.com/GradHackersGuild/PackTr…
michellevarghese Nov 2, 2024
0e1bc94
Updated CITATION.cff
V4run14 Nov 2, 2024
429fad7
Update README.md
MakarandPundlik Nov 2, 2024
d9e351c
Update CONTRIBUTING.md
V4run14 Nov 2, 2024
7008dc4
Update rubric.md
V4run14 Nov 2, 2024
d15d817
Update Documentation
MakarandPundlik Nov 2, 2024
a75cf41
Update README.md
MakarandPundlik Nov 2, 2024
f414913
Revamped login page UI
michellevarghese Nov 2, 2024
ec870d6
Revamped UI for register page
michellevarghese Nov 2, 2024
dc73a1b
Updated discord channel link
MakarandPundlik Nov 2, 2024
2e606e3
Merge branch 'main_new' of https://github.com/GradHackersGuild/PackTr…
michellevarghese Nov 2, 2024
a8e18e8
Merge pull request #29 from GradHackersGuild/makarand_lint
MakarandPundlik Nov 2, 2024
e5c637f
Updated rubric.md
MakarandPundlik Nov 2, 2024
962cedc
Added evidence of workload distribution
MakarandPundlik Nov 2, 2024
1390aa4
Added evidence of work distribution
MakarandPundlik Nov 2, 2024
e089f5d
Updated rubric score
MakarandPundlik Nov 2, 2024
ad13dc4
Updated windows env activation
MakarandPundlik Nov 2, 2024
39050c2
Update README.md
MakarandPundlik Nov 2, 2024
da35684
Added animated video
MakarandPundlik Nov 2, 2024
e5a3add
Added Demo Link
michellevarghese Nov 2, 2024
c234385
Update README.md
michellevarghese Nov 3, 2024
2db139f
Update README.md
michellevarghese Nov 3, 2024
f1f721e
Added Gifs of demo to readme
michellevarghese Nov 3, 2024
da450b7
Update README.md
michellevarghese Nov 6, 2024
f0472ab
Update README.md
michellevarghese Nov 6, 2024
bff2f60
Update README.md
michellevarghese Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/run_test_cases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: run_test_cases

on: [pull_request, push]

jobs:
test_python:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.10.2'

- run: pip install virtualenv

- run: |
python -m virtualenv newenv
source newenv/bin/activate

pip install django django-allauth pymongo setuptools --upgrade
pip install -r requirements.txt

python manage.py test
pip install coverage
coverage run manage.py test
coverage xml

- name: Upload coverage to Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bash <(curl -s https://codecov.io/bash) -f coverage.xml
24 changes: 0 additions & 24 deletions .github/workflows/testcases.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Byte-compiled / optimized / DLL files
__pycache__/
config.ini
config.txt
PackTravel/__pycache__/
*.py[cod]
*$py.class
Expand Down Expand Up @@ -139,4 +139,5 @@ dmypy.json
.pytype/

# Cython debug symbols
cython_debug/
cython_debug/
templates/publish/route_old.html
70 changes: 54 additions & 16 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,17 +1,55 @@
cff-version: 1.2.0
message: "Hello!! If you use this software, please cite it using the metadata from this file"
title: "PackTravel"
abstract: '<h2><strong>Pilot Release - v1.1</strong></h2>

<h3><strong>New Features:</strong></h3>

<p><strong>1. Google Map Integration:</strong>

- Users can now auto fill exact start and destination locations with the help of
googleMapAPI''s autocomplete.

- Users can now view their ride route from start to destination with embedded GMap
on clicking view Ride Details.</p>

<p><strong>2. Joining a ride:</strong>

- Users can now request ride owner to add them to the created ride.

- Ride owners can view requested users and approve their request.

- Availability and Capacity of ride fields added to keep track of number of users
that can be added to a ride.</p>

<p><strong>3. Secure Password Storage:</strong>

- Users passwords are hashed and stored in the database.</p>



<h3><strong>Bug Fixes:</strong></h3>

<p><strong>1. Ride Deletion Issue:</strong> Fixed an issue where ride owners were
unable to delete the rides they created. Ride owners can now successfully delete
any rides they''ve created as intended.</p>

<p><strong>2. Unique Identifier:</strong> source point was being used as the _id
for searching rides. This was fixed by using a UUID as the _id as the identifier
for a ride.</p>

<p><strong>3. Unique Username Constraint:</strong> Added ride owner unique username
constraint and simplified db querying.</p>'
authors:
- family-names: Chavan
given-names: Ameya
- family-names: Waghela
given-names: Amisha
- family-names: Das
given-names: Aoishi
- family-names: Shah
given-names: Kunal
- family-names: Mohan
given-names: Swarnamalya
version: "1.2"
date-released: "10/09/2022"
doi: 10.5281/zenodo.7178601
- family-names: Varatharajan
given-names: Varun
- family-names: Pundlik
given-names: Makarand
- family-names: Varghese
given-names: Michelle
cff-version: 1.2.0
date-released: '2024-10-30'
doi: 10.5281/zenodo.14020211
license:
- cc-by-4.0
repository-code: https://github.com/GradHackersGuild/PackTravel-Old/tree/v1.1
title: PackTravel by GradHackersGuild
type: software
version: v1.1
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ This section guides you through submitting a bug report. Following these guideli
> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
#### Before Submitting A Bug Report

* **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/amisha-w/PackTravel/issues).
* **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/orgs/GradHackersGuild/projects/2/views/1)

* If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/amisha-w/PackTravel/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.
* If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/GradHackersGuild/PackTravel-Old/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.

#### How Do I Submit the fixes for the Bug?

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Amisha Waghela
Copyright (c) 2022 Makarand Pundlik

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
41 changes: 41 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
PYTHON = py # change the python run command according to your system
PIP = pip
PORT = 8080

.PHONY: help
help:
@echo "Makefile for Django Project"
@echo ""
@echo "Usage:"
@echo " make setup Install dependencies, apply migrations, and start the server"
@echo " make install Install Django and dependencies"
@echo " make migrate Apply migrations"
@echo " make run Start the Django development server"
@echo " make tests Run all tests"
@echo ""

# Install Django and other dependencies
.PHONY: install
install:
$(PIP) install -r requirements.txt
$(PIP) install django django-allauth pymongo setuptools --upgrade


# Apply database migrations
.PHONY: migrate
migrate:
$(PYTHON) manage.py migrate

# Start the Django server
.PHONY: run
run:
$(PYTHON) manage.py runserver $(PORT)

# Install, migrate, and run server
.PHONY: setup
setup: install migrate run

# Run all django tests
.PHONY: tests
tests:
$(PYTHON) manage.py test
29 changes: 29 additions & 0 deletions PackTravel/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
"""
MIT License

Copyright (c) 2022 Makarand Pundlik

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

"""
Django settings for PackTravel project.

Expand Down Expand Up @@ -42,6 +66,7 @@
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.google', # for Google OAuth 2.0
'user'
]

MIDDLEWARE = [
Expand Down Expand Up @@ -81,6 +106,10 @@
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'TEST': {
'NAME': 'my_test_database',
'MIRROR': None,
},
}
}

Expand Down
32 changes: 30 additions & 2 deletions PackTravel/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
"""
MIT License

Copyright (c) 2022 Makarand Pundlik

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

"""PackTravel URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
Expand Down Expand Up @@ -36,6 +60,10 @@
path('display_ride/<ride_id>', publishViews.display_ride, name='display_ride'),
path('accounts/', include('allauth.urls')),
path('logout/', LogoutView.as_view()),
path('myrides/', userView.my_rides, name = 'search'),
path('delete_ride/<ride_id>', userView.delete_ride, name = 'delete_ride')
path('myrides/', userView.my_rides, name = 'my_rides'),
path('delete_ride/<ride_id>', userView.delete_ride, name = 'delete_ride'),
path('join_ride/<ride_id>',searchViews.join_ride,name='join_ride'),
path('approve_rides/<ride_id>',userView.approve_rides,name='approve_rides'),
path('approve_user/<ride_id>/<user_id>',userView.approve_user,name='approve_user'),
path('ride_status/',userView.requested_rides,name='requested_rides')
]
Loading