Skip to content
Draft
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ To deploy to any Node.js-supported platform (Heroku, Railway, Render, etc.):

1. Push this repo to GitHub.
2. Set the build command to `npm install` and the start command to `node server.js`.
3. Optionally use a reverse proxy or HTTPS config for production.
3. Set the health check path to `/health`.
4. Optionally use a reverse proxy or HTTPS config for production.

## 💡 Potential Extensions

Expand Down
4 changes: 4 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ app.get('/console', (req, res) => {
res.sendFile(path.join(__dirname, 'public', 'teacher.html'));
});

app.get('/health', (req, res) => {
res.status(200).send('OK');
});

// Store drawing history for each student and track teachers
const rooms = new Map(); // sessionCode -> { students: Map<username, {history, currentStep}>, teacherSocketId: string }

Expand Down