Dashboard built at the Khan Academy 2014 Hackathon
JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fonts
images
js
server
third_party
.gitignore
LICENSE
README.md
index.html
package.json

README.md

Dashboard Hack

Setup instructions

npm install
npm start

Server will start at http://localhost:9966/.

Local API server

First, set up your secrets file.

cp server/secrets.js.sample server/secrets.js
# Add your secrets to server/secrets.js

Then you can run the server:

node server/app.js

GitHub Setup

TODO

BigQuery Setup

You need to generate an oauth2 token to access the API. Follow the instructions at https://github.com/Khan/webapp/blob/master/bigquery/bq_connection.py#L78.

Then symlink the token (which should be at ~/.bigquery.v2.token into the server directory).

You'll also need to put the KA project id into exports.bqProjectId in secrets.js.

Khan Academy API OAuth

Khan Academy uses OAuth 1.0. The full instructions are here.

First, get a consumer key and secret here. Put these into secrets.js.

Then clone this: Khan/khan-api

Navigate to examples/test_client. Modify the script to print out ACCESS_TOKEN after get_access_token() is called. That will give you the access token and secret. Put these into secrets.js.

Widget guidelines

Loading message

Render the LoadingMessage component (loading-message.jsx) if the widget content has not yet loaded.

return <WidgetContainer>
    <LoadingMessage />
</WidgetContainer>;