Angie Kim


Welcome to my Blog :-)
If you wanna know about me more...

︎︎︎ ︎︎︎ Check these out ︎︎︎ ︎︎︎

Portfolio Website ︎︎︎

Linkedin ︎︎︎

Week 2 : Chat

Feb 26, 2023

Week 3&4: Draw!

GitHub Archive

with Camera
without Camera

For this project

I set the https:// (secured) server with node.js as it is mandatory to secure the server to operate Camera on the browser. For the certificate, Shawn set the domain for me so that I could use ITP’s wildcard certificate. I’ll never share it to anybody and it’s sleeping in my local directory :)

** I had some hard time to see the server running, uploaded the code multiple times but couldn’t solve the issue. But it was a really small thing; I had to put https:// in front of my domain to run the server as I changed the port from 80 to 443 and made it secure. **

Code (Server Side)
//original code by Shawn Van Every.
// We need the file system here
//This is a Node.js library that enables to set the https:// server. var fs = require('fs');
// Express is a node module for building HTTP servers var express = require('express'); var app = express();
// Tell Express to look in the "public" folder for any files first app.use(express.static('public'));
// If the user just goes to the "route" / then run this function app.get('/', function (req, res) { res.send('Hello World!') });
// Here is the actual HTTP server // In this case, HTTPS (secure) server var https = require('https');// Security options - key and certificate var options = { key: fs.readFileSync('nameOfTheKey.pem'), cert: fs.readFileSync(’nameOfTheCertificate.pem') };
// We pass in the Express object and the options object var httpServer = https.createServer(options, app);
// Default HTTPS port httpServer.listen(443);

HTML/CSS/p5.js codes can be found here at Github.

Have a wonderful day :)

Random thought outlives  here ︎︎︎