GithubHelp home page GithubHelp logo

bamcdougall / college-choice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rticwdt/college-scorecard

0.0 2.0 0.0 22.22 MB

College Scorecard

Home Page: https://collegescorecard.ed.gov/

License: Other

Ruby 1.01% Makefile 0.08% JavaScript 31.45% HTML 26.15% CSS 41.08% Shell 0.22%

college-choice's Introduction

College Scorecard

A website that allows students (high school and adult) and those who support them (parents, guidance counselors) to not only search among colleges to find schools that would meet their desires, but also encourage them to consider "value" factors, be exposed to schools with better outcomes, and allow users to compare and contrast schools across different dimensions of "fit," highlighting "value" factors. The goal is to enable people to find schools that are best suited to them, and ensure a broad and flexible definition of elements that contribute to "fit."

This repo contains the front end of a web app with its API created by an instance of Open Data Maker which is configured with a specific data set. For more details on setting up the back end of the web app, see below: Running the API Locally. However, you can run the web app with the hosted API following the installation instructions in the next section.

Installation

This site is made with Jekyll. Once you've got Ruby on your computer, you can run:

gem install github-pages

(Note: depending on how Ruby was installed, you may need to prefix the above command with sudo.)

This Jekyll site features dynamic Javascript that queries api.data.gov. For the Javascript to work, it needs an API key and a base URL. Jekyll will pull them from the local machine's environment variables at build time, so ensure that both the API_KEY and API_BASE_URL variables are set before running build scripts.

To start up the local server, run:

jekyll serve --baseurl='' -w

Then visit http://localhost:4000 to view it. The -w (or --watch) flag tells Jekyll to rebuild the relevant pages when you edit the source files.

Frontend Tools

Running the API Locally

To set up the API (as a developer), follow the Open Data Maker installation instructions then:

  1. download the [full data set](NEED FINAL LINK) into open-data-maker directory and rename the folder as "real-data"
  2. set DATA_PATH environment variable. On the command line:
export DATA_PATH=./real-data
  1. This application uses only most recent data. To speed up start up time, edit data.yaml file inside the real-data directory to limit the number of files indexed to 4 (year 2013 is included twice, once for the columns that are not specific to any year, and once for the 2013 data, then 2012 and 2011). Optionally, limiting the number of rows will reduce the set of colleges in the data set and is helpful for testing since it speeds startup time significantly:
options:
  limit_files: 4 
  limit_rows: 100

To create the API for the complete set of schools, comment out the limit_rows option by adding a # to the start of the line:

options:
  limit_files: 4 
#  limit_rows: 100
  1. Start Open Data Maker. On the command line, from the open-data-maker directory:
padrino start
  1. To view progress of indexing, it is helpful to look at the development log in another terminal window:
tail -f log/development.log

college-choice's People

Contributors

meiqimichelle avatar shawnbot avatar lisagee avatar eriemeyer avatar jjoteal avatar ultrasaurus avatar hollyallen avatar yozlet avatar dhcole avatar vgvg avatar alex avatar nacin avatar diego- avatar gbinal avatar rongoro avatar dmedfsa avatar engstrom avatar

Watchers

James Cloos avatar Brendan McDougall avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.