- Notifications
You must be signed in to change notification settings - Fork0
Villanova Course Indexing CLI. Rewrite of Oberon (https://github.com/Space-Cadets/Oberon) in Golang to work with RethinkDB. Built over a long weekend.
License
ahermida/Goberon
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Villanova Course Indexing CLI. Rewrite of Oberon (https://github.com/Space-Cadets/Oberon) in Golang to work with RethinkDB. Built over a long weekend.
The Villanova course registry is a mess and they've taken away Schedulr. Things likefinding interesting electives to take shouldn't be as difficult as they are.This is the first step to organizing course data and making registration less of ahassle.
Make sure you have a working Go environment. Go version 1.8+ is supported.Seethe install instructions for Go.
To install cli, simply run:
$ go get github.com/ahermida/Goberon
Make sure yourPATH
includes the$GOPATH/bin
directory so your commands canbe easily used:
export PATH=$PATH:$GOPATH/bin
This CLI is currently only tested against MacOS and the Linux Subsystem for Windows.
This project requires a RethinkDB instance to be running. If you don't have itinstalled yet, you can see theRethinkDB installation guidefor your system. If you have Homebrew on a mac, install withbrew update && brew install rethinkdb
.
Once you have it installed, you must set the "RdbAddress" value withinthe "Network" variable inGoberon/config/config.go
to the port that rethinkdb isopen on.
Go intoGoberon/config/secret.go
, edit out the comment and place the data for thePOST request to the registrar (set the cookie, body, headers, and URL). If youdon't know how to get this data, fear not.
You can alternatively navigate to the registrar HTML page with all of the courses, savethe HTML page with all of the courses into the Goberon directory with the namecourses.html
.
Once you've rungo get github.com/ahermida/Goberon
and you're in the Goberondirectory, you can rungo install
.
This will setup the command:goberon
Running$ goberon
will load a help menu.
Running$ goberon fetch
will download the course data. It usually takes ~4mins.
Using$ goberon index
will build course data, and write it into appropriateRethinkDB tables.
Using$ goberon drop
will drop all course data tables
Can't build this without a shoutout to the original Oberon authors:
About
Villanova Course Indexing CLI. Rewrite of Oberon (https://github.com/Space-Cadets/Oberon) in Golang to work with RethinkDB. Built over a long weekend.