Skip to content

h2n0/Timetable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

EDIT

This project is no longer being maintained

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