-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Setup Django Project and setup api app and a testing router #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 37 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
4753ee4
feat: integrate Mapbox for enhanced mapping functionality
GURUDAS-DEV 84f3c35
fix: remove error logging from token verification middleware response
GURUDAS-DEV 558e13e
Merge branch 'kaihere14:main' into main
GURUDAS-DEV e16f2df
feat: Implement interactive map for selecting route source/destinatio…
GURUDAS-DEV 0598536
Merge branch 'kaihere14:main' into main
GURUDAS-DEV a5c32d8
Merge branch 'kaihere14:main' into main
GURUDAS-DEV 3385dee
feat: Implement interactive Mapbox map component for source and desti…
GURUDAS-DEV e8e953e
feat: Minute Bug Update
GURUDAS-DEV 0e1e982
feat: implement interactive Mapbox map for location selection on the …
GURUDAS-DEV e430043
Merge branch 'kaihere14:main' into main
GURUDAS-DEV b870060
Merge branch 'kaihere14:main' into main
GURUDAS-DEV 0faee97
feat: implement route discovery, comparison, and map visualization wi…
GURUDAS-DEV b35e17f
Merge branch 'kaihere14:main' into main
GURUDAS-DEV 4650c18
Merge branch 'main' of https://github.com/GURUDAS-DEV/BreathClean
GURUDAS-DEV b01b129
feat1: implement route discovery, comparison, and map visualization w…
GURUDAS-DEV 4ab28ec
feat: Implement route discovery and comparison features with pollutio…
GURUDAS-DEV ecbae17
Merge branch 'kaihere14:main' into main
GURUDAS-DEV a8da103
feat: Implement route discovery, comparison, and saving features with…
GURUDAS-DEV 02db6ae
Merge branch 'kaihere14:main' into main
GURUDAS-DEV 24f4a94
feat: Add user profile page with detailed card, display saved routes,…
GURUDAS-DEV 43a6501
Merge branch 'kaihere14:main' into main
GURUDAS-DEV da61bb5
Merge branch 'kaihere14:main' into main
GURUDAS-DEV 8d69776
feat: Add public About and Features pages, introduce Navbar and Saved…
GURUDAS-DEV 88bb043
feat: Add a new About Us page and a SavedRouteItemClient component.
GURUDAS-DEV fd1079a
feat: Add a new About Us page and a SavedRouteItemClient component.
GURUDAS-DEV 7034411
Merge branch 'kaihere14:main' into main
GURUDAS-DEV a31c58e
feat: implement initial landing page with navigation, mission, how it…
GURUDAS-DEV bb73943
Merge branch 'kaihere14:main' into main
GURUDAS-DEV d8803c7
feat: Implement route scoring API including breakpoint calculation an…
GURUDAS-DEV 3d3ad64
feat: Implement API for route score calculation considering weather a…
GURUDAS-DEV 79f1878
Merge branch 'kaihere14:main' into main
GURUDAS-DEV 41881ef
Merge branch 'kaihere14:main' into main
GURUDAS-DEV 4091e1c
feat: Integrate Air Quality Index (AQI) data into route comparison fe…
GURUDAS-DEV c111433
refactor: Remove outdated AQI documentation and guides
GURUDAS-DEV 38c2d82
Merge branch 'kaihere14:main' into main
GURUDAS-DEV c7c87f9
Merge branch 'kaihere14:main' into main
GURUDAS-DEV a2c09e2
feat: Setup Django Project and setup api app and a testing router
GURUDAS-DEV 0f32fd3
Merge branch 'kaihere14:main' into main
GURUDAS-DEV 40a8199
feat: Implement scoring transformers for BreathClean Pathway pipeline
GURUDAS-DEV 1056d1c
feat: Implement a data processing server and scheduler for dynamic ro…
GURUDAS-DEV f4f2d38
feat: Add data processing pipeline for route score computation using …
GURUDAS-DEV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
File renamed without changes.
Binary file added
BIN
+209 Bytes
data-processing/dataProcessingServer/api/__pycache__/__init__.cpython-313.pyc
Binary file not shown.
Binary file added
BIN
+253 Bytes
data-processing/dataProcessingServer/api/__pycache__/admin.cpython-313.pyc
Binary file not shown.
Binary file added
BIN
+506 Bytes
data-processing/dataProcessingServer/api/__pycache__/apps.cpython-313.pyc
Binary file not shown.
Binary file added
BIN
+250 Bytes
data-processing/dataProcessingServer/api/__pycache__/models.cpython-313.pyc
Binary file not shown.
Binary file added
BIN
+421 Bytes
data-processing/dataProcessingServer/api/__pycache__/urls.cpython-313.pyc
Binary file not shown.
Binary file added
BIN
+474 Bytes
data-processing/dataProcessingServer/api/__pycache__/views.cpython-313.pyc
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| from django.contrib import admin | ||
|
|
||
| # Register your models here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| from django.apps import AppConfig | ||
|
|
||
|
|
||
| class ApiConfig(AppConfig): | ||
| name = 'api' |
Empty file.
Binary file added
BIN
+220 Bytes
data-processing/dataProcessingServer/api/migrations/__pycache__/__init__.cpython-313.pyc
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| from django.db import models | ||
|
|
||
| # Create your models here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| from django.test import TestCase | ||
|
|
||
| # Create your tests here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| from django.urls import path | ||
| from django.http import HttpResponse | ||
| from api import views | ||
|
|
||
| urlpatterns = [ | ||
| path('myRoute', views.myRoute) | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| from django.http import HttpResponse | ||
|
|
||
| a = 1 | ||
| # Create your views here. | ||
| def myRoute(request): | ||
| global a | ||
| a += 1 | ||
| return HttpResponse(f"a={a}") | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
Empty file.
Binary file added
BIN
+226 Bytes
...processing/dataProcessingServer/dataProcessingServer/__pycache__/__init__.cpython-313.pyc
Binary file not shown.
Binary file added
BIN
+2.48 KB
...processing/dataProcessingServer/dataProcessingServer/__pycache__/settings.cpython-313.pyc
Binary file not shown.
Binary file added
BIN
+764 Bytes
data-processing/dataProcessingServer/dataProcessingServer/__pycache__/urls.cpython-313.pyc
Binary file not shown.
Binary file added
BIN
+740 Bytes
data-processing/dataProcessingServer/dataProcessingServer/__pycache__/wsgi.cpython-313.pyc
Binary file not shown.
16 changes: 16 additions & 0 deletions
16
data-processing/dataProcessingServer/dataProcessingServer/asgi.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| """ | ||
| ASGI config for dataProcessingServer project. | ||
|
|
||
| It exposes the ASGI callable as a module-level variable named ``application``. | ||
|
|
||
| For more information on this file, see | ||
| https://docs.djangoproject.com/en/6.0/howto/deployment/asgi/ | ||
| """ | ||
|
|
||
| import os | ||
|
|
||
| from django.core.asgi import get_asgi_application | ||
|
|
||
| os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dataProcessingServer.settings') | ||
|
|
||
| application = get_asgi_application() |
118 changes: 118 additions & 0 deletions
118
data-processing/dataProcessingServer/dataProcessingServer/settings.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| """ | ||
| Django settings for dataProcessingServer project. | ||
|
|
||
| Generated by 'django-admin startproject' using Django 6.0.2. | ||
|
|
||
| For more information on this file, see | ||
| https://docs.djangoproject.com/en/6.0/topics/settings/ | ||
|
|
||
| For the full list of settings and their values, see | ||
| https://docs.djangoproject.com/en/6.0/ref/settings/ | ||
| """ | ||
|
|
||
| from pathlib import Path | ||
|
|
||
| # Build paths inside the project like this: BASE_DIR / 'subdir'. | ||
| BASE_DIR = Path(__file__).resolve().parent.parent | ||
|
|
||
|
|
||
| # Quick-start development settings - unsuitable for production | ||
| # See https://docs.djangoproject.com/en/6.0/howto/deployment/checklist/ | ||
|
|
||
| # SECURITY WARNING: keep the secret key used in production secret! | ||
| SECRET_KEY = 'django-insecure-&o^m3_*@exw4xx1*mc!9nzy7tpj4zjp%11gf-ag_7!lx+gvxpt' | ||
|
|
||
| # SECURITY WARNING: don't run with debug turned on in production! | ||
| DEBUG = True | ||
|
|
||
| ALLOWED_HOSTS = [] | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
|
|
||
| # Application definition | ||
|
|
||
| INSTALLED_APPS = [ | ||
| 'django.contrib.admin', | ||
| 'django.contrib.auth', | ||
| 'django.contrib.contenttypes', | ||
| 'django.contrib.sessions', | ||
| 'django.contrib.messages', | ||
| 'django.contrib.staticfiles', | ||
| 'api', | ||
| ] | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| MIDDLEWARE = [ | ||
| 'django.middleware.security.SecurityMiddleware', | ||
| 'django.contrib.sessions.middleware.SessionMiddleware', | ||
| 'django.middleware.common.CommonMiddleware', | ||
| 'django.middleware.csrf.CsrfViewMiddleware', | ||
| 'django.contrib.auth.middleware.AuthenticationMiddleware', | ||
| 'django.contrib.messages.middleware.MessageMiddleware', | ||
| 'django.middleware.clickjacking.XFrameOptionsMiddleware', | ||
| ] | ||
|
|
||
| ROOT_URLCONF = 'dataProcessingServer.urls' | ||
|
|
||
| TEMPLATES = [ | ||
| { | ||
| 'BACKEND': 'django.template.backends.django.DjangoTemplates', | ||
| 'DIRS': [], | ||
| 'APP_DIRS': True, | ||
| 'OPTIONS': { | ||
| 'context_processors': [ | ||
| 'django.template.context_processors.request', | ||
| 'django.contrib.auth.context_processors.auth', | ||
| 'django.contrib.messages.context_processors.messages', | ||
| ], | ||
| }, | ||
| }, | ||
| ] | ||
|
|
||
| WSGI_APPLICATION = 'dataProcessingServer.wsgi.application' | ||
|
|
||
|
|
||
| # Database | ||
| # https://docs.djangoproject.com/en/6.0/ref/settings/#databases | ||
|
|
||
| DATABASES = { | ||
| 'default': { | ||
| 'ENGINE': 'django.db.backends.sqlite3', | ||
| 'NAME': BASE_DIR / 'db.sqlite3', | ||
| } | ||
| } | ||
|
|
||
|
|
||
| # Password validation | ||
| # https://docs.djangoproject.com/en/6.0/ref/settings/#auth-password-validators | ||
|
|
||
| AUTH_PASSWORD_VALIDATORS = [ | ||
| { | ||
| 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', | ||
| }, | ||
| { | ||
| 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', | ||
| }, | ||
| { | ||
| 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', | ||
| }, | ||
| { | ||
| 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', | ||
| }, | ||
| ] | ||
|
|
||
|
|
||
| # Internationalization | ||
| # https://docs.djangoproject.com/en/6.0/topics/i18n/ | ||
|
|
||
| LANGUAGE_CODE = 'en-us' | ||
|
|
||
| TIME_ZONE = 'UTC' | ||
|
|
||
| USE_I18N = True | ||
|
|
||
| USE_TZ = True | ||
|
|
||
|
|
||
| # Static files (CSS, JavaScript, Images) | ||
| # https://docs.djangoproject.com/en/6.0/howto/static-files/ | ||
|
|
||
| STATIC_URL = 'static/' | ||
10 changes: 10 additions & 0 deletions
10
data-processing/dataProcessingServer/dataProcessingServer/urls.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| from django.contrib import admin | ||
| from django.urls import path, include | ||
| from django.http import HttpResponse | ||
| from api import views | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| urlpatterns = [ | ||
| path('admin/', admin.site.urls), | ||
| path('healthCheck', lambda request: HttpResponse('Hello World!')), | ||
| path('api/', include('api.urls')), | ||
| ] | ||
16 changes: 16 additions & 0 deletions
16
data-processing/dataProcessingServer/dataProcessingServer/wsgi.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| """ | ||
| WSGI config for dataProcessingServer project. | ||
|
|
||
| It exposes the WSGI callable as a module-level variable named ``application``. | ||
|
|
||
| For more information on this file, see | ||
| https://docs.djangoproject.com/en/6.0/howto/deployment/wsgi/ | ||
| """ | ||
|
|
||
| import os | ||
|
|
||
| from django.core.wsgi import get_wsgi_application | ||
|
|
||
| os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dataProcessingServer.settings') | ||
|
|
||
| application = get_wsgi_application() |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #!/usr/bin/env python | ||
| """Django's command-line utility for administrative tasks.""" | ||
| import os | ||
| import sys | ||
|
|
||
|
|
||
| def main(): | ||
| """Run administrative tasks.""" | ||
| os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dataProcessingServer.settings') | ||
| try: | ||
| from django.core.management import execute_from_command_line | ||
| except ImportError as exc: | ||
| raise ImportError( | ||
| "Couldn't import Django. Are you sure it's installed and " | ||
| "available on your PYTHONPATH environment variable? Did you " | ||
| "forget to activate a virtual environment?" | ||
| ) from exc | ||
| execute_from_command_line(sys.argv) | ||
|
|
||
|
|
||
| if __name__ == '__main__': | ||
| main() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.