Simplified Timetable
Ruby JavaScript HTML Shell CSS Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
.gitignore
Gemfile
Gemfile.lock
README.md
install.sh

README.md

Swantime

A simple web app to easy filter out correct lecture times for students. Build using.

  • Ruby => Sinatra and Nokogiri, used primarily to server and parse information

  • Python => To generate some crawler scripts

  • Bash => To automate some cron jobs

Project tree

App

The base of the server, here you will be abe to find all of the routing used to serve pages as well as some helper programs.

  • s.rb - The main file of the whole thing, this runs the server and managers requests

Internal

This is where most of the magic happens.

  • parse.rb - This is where the timetable is parsed and turned into an easily navigatable object.
  • cmd.py - This is where we generate the Lynx command script to get the timetable
  • t.sh - This is the script that the cron manager on the server calls when it's time to get a new timetable

Views

All of the erb templates for pages that may be served up.

  • Index - Is called when the user first lands on the page
  • User - Is called when the user has supplied a valid student ID
  • Feedback - Is called when the user needs to send feedback to us