Basic OAuth 2.0 API for accessing personal Duke & UNC Student data from ACES with their permission
-
Download and install Node.js & MongoDB
-
Start MongoDB Server
$ mongod
- Navigate to correct directory:
$ cd campusconnect
- Install dependencies:
$ npm install
- Start the server
$ node app.js
- Visit localhost:8081 in your browser
A sample client application to CampusConnect
-
Install dependencies for cc-client
-
In one terminal start cc-client server
$ npm cc-client/app.js
- In another terminal start campusconnect server
$ npm campusconnect/app.js
- Use the following URL as redirect from client app to CampusConnect API
http://localhost:8081/oauth/authorize?client_id=2f18b05f9da2c9c32c8b32cc1e1c6717&perms=transcript&uni=duke&redirect_uri=http://localhost:3000/oauthcall
- Look at localhost:8081/documentation for an indepth look at implementing clients for CampusConnect
Complete course scraper for Duke University & Authenticated scrapers for ACES
Note: Both Duke & UNC Scrapers are functional (UPenn a work in progress)
- Install Gem dependencies (mechanize & nokogiri)
$ bundle install
- On terminal, run following command
$ ruby mechanize.rb netid password transcript,advanced_info,basic_info,schedule
It will return the data in JSON format
TODO
A visual search app built for an earlier version of Duke's course data
Install Yeoman
curl -L get.yeoman.io | bash
run server
yeoman server