RETIRED, this project was merged into a single ara repository
Go to file
David Moreau Simard 23fbf95672
Add a script to create mock data
It's convenient to have a script to easily add mock data to test the
API and model with. Let's do that.

Change-Id: I0f108b19d35280faa472850bdeb9ac83f3faa505
2018-03-29 12:36:29 -04:00
api Add a script to create mock data 2018-03-29 12:36:29 -04:00
ara Update model and serializers to 1.0 schema 2018-03-29 12:36:27 -04:00
doc/source/_static Bootstrap the repository with the basic machinery (#1) 2018-03-29 12:36:22 -04:00
standalone Add a script to create mock data 2018-03-29 12:36:29 -04:00
.editorconfig 💥 first commit 2018-03-29 12:36:14 -04:00
.gitignore Bootstrap the repository with the basic machinery (#1) 2018-03-29 12:36:22 -04:00
.gitreview Added .gitreview 2018-03-27 11:35:47 +00:00
LICENSE 💥 first commit 2018-03-29 12:36:14 -04:00
README.rst Add a script to create mock data 2018-03-29 12:36:29 -04:00
manage.py 💥 first commit 2018-03-29 12:36:14 -04:00
requirements.txt Bump Django to >2 2018-03-29 12:36:23 -04:00
setup.cfg Bootstrap the repository with the basic machinery (#1) 2018-03-29 12:36:22 -04:00
setup.py Bootstrap the repository with the basic machinery (#1) 2018-03-29 12:36:22 -04:00
test-requirements.txt Bootstrap the repository with the basic machinery (#1) 2018-03-29 12:36:22 -04:00
tox.ini Bootstrap the repository with the basic machinery (#1) 2018-03-29 12:36:22 -04:00

README.rst

ara-django

image

An experiment with Django at the core of the ARA 1.0 backend. This is not stable or production-ready.

If you are looking for ARA Records Ansible, the Ansible callback plugin and reporting interface, you will find the repository here.

We are prototyping outside the main repository due to the vast changes involved and will merge back as appropriate.

Documentation

Work in progress

This is python3 only right now.

TL;DR: Using tox is convenient for the time being:

# Use the source Luke
git clone https://github.com/dmsimard/ara-django
cd ara-django

# Install tox
pip install tox # (or the tox python library from your distro packages)

# Run test server -> http://127.0.0.1:8000/api/v1/
tox -e runserver

# Create mock data
source .tox/runserver/bin/activate
python standalone/mockdata.py

# Run actual tests or get coverage
tox -e pep8
tox -e py35
tox -e cover

# Build docs
tox -e docs

Contributors

See contributors on GitHub.

Copyright

Copyright (c) 2018 Red Hat, Inc.

ARA is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ARA is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with ARA.  If not, see <http://www.gnu.org/licenses/>.