From 5cfe19b597e7eae3cd437b397660dda35dae7ac9 Mon Sep 17 00:00:00 2001 From: Sujan30 Date: Mon, 5 May 2025 16:53:47 -0700 Subject: [PATCH 1/3] added spartan compass as a button in the navbar --- src/Components/Navbar/UserNavbar.js | 1 + src/Pages/Projects/Projects.js | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/Components/Navbar/UserNavbar.js b/src/Components/Navbar/UserNavbar.js index 54230717e..89af3baa8 100644 --- a/src/Components/Navbar/UserNavbar.js +++ b/src/Components/Navbar/UserNavbar.js @@ -9,6 +9,7 @@ export default function UserNavBar(props) { const unauthedRoutes = [ { title: 'About', route: '/about' }, { title: 'Projects', route: '/projects' }, + { title: 'Spartan Compass', route: '/spartan-compass' } ]; diff --git a/src/Pages/Projects/Projects.js b/src/Pages/Projects/Projects.js index 68846c38a..fb1ee5c35 100644 --- a/src/Pages/Projects/Projects.js +++ b/src/Pages/Projects/Projects.js @@ -2,6 +2,14 @@ import React from 'react'; import ProjectCard from './Components/ProjectCard'; const projects = [ + { + 'link': 'https://github.com/SCE-Development/spartan-compass', + 'image': '', + 'name': 'Spartan Compass', 'subnote': 'Rate My Professor+', + 'information': 'Full Stack', + 'caption': 'Spartan Compass is a web application that allows students to review professors based off their courses. It is built with React, Next.js, and Drizzle ORM. It also uses python for the webscraping of Rate My Professor.' + }, + { 'link': 'https://github.com/SCE-Development/Clark', 'image': 'https://user-images.githubusercontent.com/59713070/235862105-9606e862-e27e-40d4-8991-de1793c48dd0.png', From 13d330f3dea634ae2c6f3eddf8822830da3aa351 Mon Sep 17 00:00:00 2001 From: Sujan30 Date: Mon, 5 May 2025 17:47:11 -0700 Subject: [PATCH 2/3] made spartan compass image for project section work --- src/Pages/Projects/Projects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pages/Projects/Projects.js b/src/Pages/Projects/Projects.js index fb1ee5c35..03141c740 100644 --- a/src/Pages/Projects/Projects.js +++ b/src/Pages/Projects/Projects.js @@ -4,7 +4,7 @@ import ProjectCard from './Components/ProjectCard'; const projects = [ { 'link': 'https://github.com/SCE-Development/spartan-compass', - 'image': '', + 'image': 'https://i.postimg.cc/c4F1T49f/temp-Image-Ry-Gq-U4.avif', 'name': 'Spartan Compass', 'subnote': 'Rate My Professor+', 'information': 'Full Stack', 'caption': 'Spartan Compass is a web application that allows students to review professors based off their courses. It is built with React, Next.js, and Drizzle ORM. It also uses python for the webscraping of Rate My Professor.' From 4b5c37b3bb5d6c5f8ae5f77275582b9f85866c66 Mon Sep 17 00:00:00 2001 From: Yuri Tatishchev Date: Thu, 29 May 2025 19:37:36 -0700 Subject: [PATCH 3/3] nginx: add spartan-compass proxy --- nginx.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index 5ec6e2255..f08a176b7 100644 --- a/nginx.conf +++ b/nginx.conf @@ -34,7 +34,7 @@ http { #443(https) listen 443 ssl; - # ssl certificate + # ssl certificate ssl_certificate sce_sjsu_edu_cert.cer; ssl_certificate_key sce.key; # TLS protocol (remember to update to the newest protocols for best security) @@ -51,7 +51,7 @@ http { proxy_set_header X-Base-URL "$scheme://$host"; proxy_pass http://cleezy-nginx.sce; } - + location ~ ^/transit/ { resolver 127.0.0.11 valid=15s; @@ -60,12 +60,17 @@ http { proxy_pass $upstream; rewrite ^/transit(.*)$ $1 break; - } + } location ~ ^/transit$ { return 302 $scheme://$http_host/transit/; } + location ~ ^/spartan-compass(/.*)? { + proxy_set_header Host $http_host; + proxy_pass http://compass-app:3000; + } + #Load balancer location /api { proxy_pass http://mainendpoints;