Skip to content
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
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
context: ..
dockerfile: .devcontainer/Dockerfile
hostname: dev-team
container_name: dev-team-sp25
container_name: classroom-lm
volumes:
- ..:/app
command: sleep infinity
Expand Down
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
NEXT_PUBLIC_SUPABASE_URL=<SUBSTITUTE_SUPABASE_URL>
NEXT_PUBLIC_SUPABASE_ANON_KEY=<SUBSTITUTE_SUPABASE_ANON_KEY>
NEXT_PUBLIC_SITE_URL=<NEXT_PUBLIC_SITE_URL> // http://localhost:8080
NEXT_PUBLIC_ORGANIZATION_NAME="NYU"
NEXT_PUBLIC_HOSTED_DOMAIN="nyu.edu"
NEXT_PUBLIC_ALLOWED_EMAIL_DOMAINS=<ALLOWED_EMAIL_DOMAINS>
NEXT_PUBLIC_ORGANIZATION_NAME=<ORG_NAME>

SUPABASE_SERVICE_ROLE_KEY=<SUBSTITUTE_SUPABASE_SERVICE_ROLE_KEY>
RAGFLOW_API_KEY=<API_KEY>
Expand Down
Binary file added .github/assets/classrooms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/collab-full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/example2-full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/logo-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/main-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/personal-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/tech-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ next-env.d.ts

dist
pnpm-lock.yaml


# ignore k8 files that are templated for keys/configs
k8s/secret.yaml
k8s/config.yaml
k8s/deployment.yaml
2 changes: 1 addition & 1 deletion .tekton/events/trigger.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
name: cd-pipeline
params:
- name: APP_NAME
value: dev-team-sp25
value: classroom-lm
- name: GIT_REPO
value: $(tt.params.git-repo-url)
- name: IMAGE_NAME
Expand Down
2 changes: 1 addition & 1 deletion .tekton/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
- name: APP_NAME
description: Name of the application
type: string
default: dev-team-sp25
default: classroom-lm
- name: IMAGE_NAME
description: The name of the image to build
type: string
Expand Down
279 changes: 221 additions & 58 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion k8s/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: next-config
data:
.env: #|
.env: !!!#|
# NEXT_PUBLIC_SUPABASE_URL=<SUBSTITUTE -> SUPABASE_URL>
# NEXT_PUBLIC_SUPABASE_ANON_KEY=<SUBSTITUTE ->SUPABASE_ANON_KEY>
# NEXT_PUBLIC_SITE_URL=<SUBSTITUTE -> SITE_URL>
Expand Down
17 changes: 6 additions & 11 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dev-team-sp25
name: classroom-lm
labels:
app: dev-team-sp25
app: classroom-lm
spec:
replicas: 1
revisionHistoryLimit: 2
Expand All @@ -13,28 +13,23 @@ spec:
maxUnavailable: 50%
selector:
matchLabels:
app: dev-team-sp25
app: classroom-lm
template:
metadata:
labels:
app: dev-team-sp25
app: classroom-lm
spec:
restartPolicy: Always
containers:
- name: dev-team-sp25
image: dev.techatnyu.org:5000/dev-team-sp25:1.0
- name: classroom-lm
image: !!!<insert registry url, eg localhost>:<insert registry port>/classroom-lm/classroom-lm-app:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
protocol: TCP
envFrom:
- secretRef:
name: next-secret
# - name: DATABASE_URI
# valueFrom:
# secretKeyRef:
# name: postgres-creds
# key: database_uri
readinessProbe:
httpGet:
path: /api/health
Expand Down
4 changes: 2 additions & 2 deletions k8s/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dev-team-sp25
name: classroom-lm
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
Expand All @@ -13,7 +13,7 @@ spec:
pathType: Prefix
backend:
service:
name: dev-team-sp25
name: classroom-lm
port:
number: 8080
- path: /webhook
Expand Down
2 changes: 1 addition & 1 deletion k8s/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ kind: Secret
metadata:
name: next-secret
stringData:
SUPABASE_SERVICE_ROLE_KEY: <SUBSTITUTE -> SUPABASE ROLE KEY>
SUPABASE_SERVICE_ROLE_KEY: !!!<SUBSTITUTE -> SUPABASE ROLE KEY>
immutable: true
6 changes: 3 additions & 3 deletions k8s/service.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: dev-team-sp25
name: classroom-lm
labels:
app: dev-team-sp25
app: classroom-lm
spec:
selector:
app: dev-team-sp25
app: classroom-lm
type: ClusterIP
internalTrafficPolicy: Cluster
ports:
Expand Down
24 changes: 0 additions & 24 deletions public/cloud.svg

This file was deleted.

24 changes: 0 additions & 24 deletions public/cloud2-08.svg

This file was deleted.

Loading