A social polling app written by Ryan O'Shea, Tess Marchant, and Henry Lu for a semester project in COS 333 at Princeton.
While the site was taken down around a year after launch, you can still see what it looked like and how it worked.
You can read about who we are, the stack we deployed, and who we have to thank in /frontend/humans.txt
.
- Get an Apache server running (I used XAMPP on Windows) to actually serve the app.
- Create a symlink between the Apache
htdocs
orwww
folder and the/frontend
directory in this repository. For example, if your symlink is athtdocs/pp
, browsing tohttp://localhost/pp
will serve up the app. You may have to configure Apache to follow symlinks. - Edit Apache's
httpd.conf
by addingProxyPass /ppapi/ http://localhost:3000/
to the end and making sure themod_proxy
andmod_proxy_http
modules are turned on. This redirects API requests tohttp://localhost/ppapi
to port 3000, where our node.js backend runs. - Install node.js, cd into the
/backend/node
directory. - Install the necessary node packages via
npm install express mongoose body-parser multer async fs
- If you're on Ubuntu, you might need to follow the instructions here to get mongoose working.
- Install MongoDB and run it on the default port.
- Run
node server.js
to get the backend up and running.