Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

oct partwaychagese #8

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions server/djangoapp/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
backend_url ="https://markmacw-3030.theiadockernext-0-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai/"
sentiment_analyzer_url="https://sentianalyzer.1na4xj0klzjm.us-south.codeengine.appdomain.cloud"
backend_url =https://markmacw-3030.theiadockernext-0-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai/
sentiment_analyzer_url=https://sentianalyzer.1na4xj0klzjm.us-south.codeengine.appdomain.cloud
Empty file removed server/djangoapp/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion server/djangoapp/restapis.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment the imports below before you add the function code
# import requests
import requests
import os
from dotenv import load_dotenv

Expand Down
4 changes: 2 additions & 2 deletions server/djangoapp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
path(route='login', view=views.login_user, name='login'),
path(route='logout', view=views.logout_request, name='logout'),
path(route='get_cars', view=views.get_cars, name='get_cars'),
path(route)='get_dealers', view=views.get_dealerships, name='get_deales'),
path(route='get_dealers/', view=views.get_dealerships, name='get_dealers'),
path(route='get_dealers/<str:state>', view=views.get_dealerships, name='get_dealers_by_state'),
path(route='dealer/<int:dealer_id>', view=views.get_dealer_details, name='dealer_details'),
path(route='reviews/dealer/<int:dealer_id>', view=views.get_dealer_reviews, name='dealer_details'),
path(route='reviews/dealer/<int:dealer_id>', view=views.get_dealer_reviews, name='get_dealer_reviews'),
path(route='add_review', view=views.add_review, name='add_review'),

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
2 changes: 2 additions & 0 deletions server/djangoproj/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
path('login/', TemplateView.as_view(template_name="index.html")),
path('logout/', TemplateView.as_view(template_name="index.html")),
path('register/', TemplateView.as_view(template_name="index.html")),
path('dealers/', TemplateView.as_view(template_name="index.html")),
path('dealer/<int:dealer_id>',TemplateView.as_view(template_name="index.html")),

] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
4 changes: 4 additions & 0 deletions server/frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import LoginPanel from "./components/Login/Login";
import { Routes, Route } from "react-router-dom";
import RegisterPanel from "./components/Register/Register"; // Ensure the correct path
import Dealers from './components/Dealers/Dealers';
import Dealer from "./components/Dealers/Dealer"

function App() {
return (
<Routes>
<Route path="/login" element={<LoginPanel />} />
<Route path="/register" element={<RegisterPanel />} />
<Route path="/dealers" element={<Dealers />} />
<Route path="/dealer/:id" element={<Dealer />} />
</Routes>
);
}
Expand Down