Skip to content

rakshitajain5/python-aasemble.django

 
 

Repository files navigation

Travis-CI Status Circle CI Status codecov.io

aaSemble web services

Introduction

Setup

Install dependencies:

apt-get install libmysqlclient-dev python-dev

Setup a working environment:

git clone https://github.com/aaSemble/python-aasemble.django.git
cd python-assemble.django/
virtualenv .venv
. .venv/bin/activate
pip install -r requirements.txt
python manage.py migrate

To run the web service:

python manage.py runserver [<ip_to_listen>:<port>]

To enable Github authentication (without which you won't be able to really do anything useful), go to [https://github.com/settings/applications/new](GitHub Developers) and register an application. Set the auth callback url to something like http://localhost:8000/accounts/github/login/callback/.

Create a superuser (python manage.py createsuperuser) and login to the django admin interface at localhost:8000/admin. Update the example.com Site to point to localhost:8000. Then go to the Social Applications and create a new one using the keys from github and apply it to the localhost site.

Testing

To execute tests:

python manage.py test --verbosity 2

To execute a specific test suite:

python manage.py test aasemble.django.apps.api.tests.APIv1RepositoryTests

We use codecov to report test coverage. Install their browser plugin to see the coverage results overlayed over the code on Github. It's pretty awesome.

That should do it. Have fun!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.4%
  • HTML 7.6%
  • Other 1.0%