This application contains two executables, a crawler to fetch data from the UQAM website and a webserver to access the data at any time.
The is a web client, built using Angularjs. An iOS and Androit app are also in developpement.
The project is currently running on https://results.jdupserver.com.
Mandatory:
Optional:
- An email smtp server
The recommended way to get the code is through the go get command.
go get github.com/janicduplessis/resultscrawler
-
Navigate to the root folder and install go dependencies. You may need to install mercurial and bazaar to be able to download the dependencies.
cd $GOPATH/src/github.com/janicduplessis/resultscrawler go install ./...
-
If you don't already have bower installed globally, install it.
npm install bower -g
-
Install the webserver libraries using bower.
cd webserver bower install
-
Create config files.
4.1 Crawler
From the project root:
cd crawler cp template.config.json crawler.config.json
Edit the crawler.config.json file to reflect your server configuration.
4.2 Webserver
From the project root:
cd webserver cp template.config.json webserver.config.json
Edit the webserver.config.json file to reflect your server configuration.
To run the crawler, from the project root:
cd crawler
go run crawler.go
To run the webserver, from the project root:
cd webserver
go run webserver.go
Hopefully everything worked!