Skip to content
/ qu Public
forked from cfpb/qu

qu is an in-progress data platform created by the CFPB to serve their public data sets. This is a public domain work of the US Government.

Notifications You must be signed in to change notification settings

dezzie/qu

 
 

Repository files navigation

qu

Build Status

qu is an in-progress data platform created by the CFPB to serve their public data sets.

The goals of this platform are to:

Getting Started

Prerequisites

In order to work on qu, you need the following languages and tools installed:

Setup

Once you have the prerequisites installed and the code downloaded and expanded into a directory (which we will call "qu"), run the following commands:

cd qu
lein deps
npm install -g grunt-cli bower
npm install && bower install
grunt

If editing the JavaScript or CSS, run the following to watch the JS and CSS and make sure your changes are compiled:

grunt watch

You can run grunt to compile the files once.

To start a Clojure REPL to work with the software, run:

lein repl

In order to run the API as a web server, run:

lein ring server

Go to http://localhost:3000 and you should see the app running.

Before starting the API, you will want to start MongoDB and load some data into it. Currently, qu only supports connecting to a local MongoDB connection.

Loading data

Make sure you have MongoDB started. To load some sample data, run lein repl and enter the following:

(require 'cfpb.qu.loader)
(in-ns 'cfpb.qu.loader)
(mongo/connect!)
(load-dataset "county_taxes")
(load-dataset "census") ; Takes quite a while to run; can skip.
(mongo/disconnect!)

About

qu is an in-progress data platform created by the CFPB to serve their public data sets. This is a public domain work of the US Government.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published