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
htdocsorwwwfolder and the/frontenddirectory in this repository. For example, if your symlink is athtdocs/pp, browsing tohttp://localhost/ppwill serve up the app. You may have to configure Apache to follow symlinks. - Edit Apache's
httpd.confby addingProxyPass /ppapi/ http://localhost:3000/to the end and making sure themod_proxyandmod_proxy_httpmodules are turned on. This redirects API requests tohttp://localhost/ppapito port 3000, where our node.js backend runs. - Install node.js, cd into the
/backend/nodedirectory. - 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.jsto get the backend up and running.
