GithubHelp home page GithubHelp logo

graham42 / qcumber-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from queens-hacks/qcumber-api

0.0 2.0 0.0 81 KB

transforms qcumber data repo into something blah

Python 98.57% Shell 1.43%

qcumber-api's Introduction

qcumber-api

Build Status

Note: If you're looking for the easy to use course catalogue for Queen's University, you came close! This is the normalized filestructure database the powers it. You'll want to head over to http://qcumber.ca for the end-user site :)

Note also! Work in progress, not live yet. The current live site code is at http://github.com/ChrisCooper/QcumberD

Consumes qcumber data and denormalizes/transforms it into endpoints that are nice to work with. The qcumber frontend (the main public site for qcumber) consumes this api. Hopefully this api also makes it easy for anyone to make a course wiki or something that wants to hook in with the catalog.

This code will also be responsible for managing writes to qcumber-data, so managing the data can all be through this one interface.

Install

1. Python & Git

Python 2.7 or 3.3 and git must be installed on your system to run qcumber-api.

To get set up, just grab the dependancies:

2. Application Requirements

You'll probably want to use a virtualenv, maybe with virtualenvwrapper.

(venv) $ pip install -r requirements.txt

3. Tests & Formatting

You'll also need to set up a precommit hook for pep8 to keep with the style spec:

$ ln -s ../../pre-commit.sh .git/hooks/pre-commit

4. Local Configuration

A couple variables can be set locally. You can either create the file api/local_config.py and define the variables there, or export them to your environment. An example local_config:

DATA_REMOTE = https://github.com/Queens-Hacks/qcumber-data.git

At the moment, there are no required config variables. The definitive list of config variables can be found in the config module on line 36.

5. Get Data

Run init to grab data from the repo. The exact repo to pull from is set by your config, and it defaults to https://github.com/Queens-Hacks/qcumber-data.git.

(venv) $ ./manage.py init

Usage

The manage.py script provides commands to do stuff. Run it with no arguments to see the full list of available commands. The two you might want:

$ ./manage.py runserver       # Run a local development server
$ ./manage.py test            # Run the app's test suite

qcumber-api's People

Contributors

graham42 avatar mystor avatar sidequestboy avatar uniphil avatar

Watchers

 avatar  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.