This is the server for the Carleton University Science Student Success Centre. You can find the SSSC iOS app code here.
This project contains the server-side event-parsing code for the SSSC apps. Every 15 minutes, it scrapes the list of events from https://sssc.carleton.ca/events, as well as scrapes the individual events that are linked to from that page. From there, information is parsed and standardized, before being made available through the use of a GET request to /events
.
If anything goes wrong in terms of how events are scraped and parsed from the website, this should be the first place to make modifications, as it does not require going through a formal app review process from Apple or Google (and thus can be updated very quickly).
- Clone the repository: https://github.com/ScienceStudentSuccessCentre/SSSC-Server.git
- Navigate into the directory
- Run
npm install
The project is currently hosted on Heroku. It is synced up with the GitHub repository's master
branch, such that any changes to the master
branch are automatically deployed. As such, always work and test on a separate branch, and only merge to master
when you are confident nothing will be broken. Once you've made any changes, you can simply merge your branch into the master
branch, and the changes will go live.
app.js
contains the main routing code for server requestseventParser
scrapes and parses event info from the SSSC websiteevent.js
contains theEvent
class, to make event parsing easier