/pyxis-api-django

Django version for the Pyxis API

Primary LanguagePython

pyxis-api-django Build Status

RESTful API on top of subunit2sql.

Requirements

Optional:

Getting Started

Set up a database

  • This project expects subunit2sql schema
  • You can use mysql-box:
    • Get a dump from a subunit2sql database

    • Clone the repo

      $ git clone git@github.com:Juraci/mysql-box.git
      
    • Follow its README

Clone this repo

$ git clone git@github.com:dhiana/pyxis-api-django.git

Get this application up and running:

Using a Vagrant box:

Or for local development:

  • Create virtualenv

  • Activate virtualenv

  • Install requirements

    $ pip install -r requirements.txt
    
  • Run server!

    $ cd pyxis_api
    $ python manage.py runserver 5000
    
  • Go to [http://localhost:5000/runs]

Start a client application

Testing

Server tests

$ vagrant up
$ rake spec

Unit tests

$ cd pyxis_api
$ python manage.py test