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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:22-alpine AS base

# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN corepack enable && corepack prepare pnpm@10 --activate

FROM base AS deps

Expand Down Expand Up @@ -75,4 +75,4 @@ EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"

CMD ["npx", "tsx", "src/server.ts"]
CMD ["npx", "tsx", "src/server.ts"]
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Hey
# AskEasy

A real-time classroom Q&A platform built for live lectures at the University of Toronto. Students post questions anonymously or publicly, upvote what matters most, and get answers from instructors — all updating instantly during class. Professors see exactly what the room is confused about, right now.
Expand All @@ -16,17 +17,17 @@ AskEasy is built for that moment. It gives every lecture a live Q&A room where t
┌─────────────────────────────────────────────────────────────┐
│ Production │
│ │
│ Browser ──HTTPS──▶ Apache + mod_shib ──localhost──▶ App │
│ Browser ──HTTPS──▶ Apache + mod_shib ──localhost──▶ App
│ │ │
│ ▼ │
│ U of T IdP (SAML) │
└─────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────┐
│ Application Layer
│ Application Layer │
│ │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ Node.js Custom Server (server.ts) │ │
│ │ Node.js Custom Server (server.ts) │ │
│ │ │ │
│ │ ┌─────────────────┐ ┌────────────────────────┐ │ │
│ │ │ Next.js App │ │ Socket.IO Server │ │ │
Expand Down
1 change: 1 addition & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
- ./src/server.ts:/app/src/server.ts:ro
- ./src/app/api/auth/session/route.ts:/app/src/app/api/auth/session/route.ts:ro
- ./whitelist.txt:/app/whitelist.txt:ro
- ./admin_whitelist.txt:/app/admin_whitelist.txt:ro
- ./uploads:/app/uploads
env_file: .env
environment:
Expand Down
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
"prisma": {
"seed": "pnpm run db:seed"
},
"pnpm": {
"onlyBuiltDependencies": [
"@prisma/engines",
"prisma"
]
},
"dependencies": {
"@embedpdf/core": "^2.3.0",
"@embedpdf/engines": "^2.3.0",
Expand Down Expand Up @@ -98,4 +92,4 @@
"vite-tsconfig-paths": "^6.0.3",
"vitest": "^4.0.16"
}
}
}
6 changes: 5 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
packages:
- .

onlyBuiltDependencies: '["@prisma/engines", "prisma"]'
nodeLinker: hoisted

onlyBuiltDependencies:
- '@prisma/engines'
- prisma
4 changes: 4 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://askeasy.utm.utoronto.ca/sitemap.xml
15 changes: 15 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://askeasy.utm.utoronto.ca</loc>
<lastmod>2026-05-24</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://askeasy.utm.utoronto.ca/classes</loc>
<lastmod>2026-05-24</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
Loading
Loading