by Manuel Aguilera López
First clone the repo and set up the virtual environment
git clone git@github.com:manuelisimo/challenge.git
cd challenge
python3 -m venv env
source env/bin/activate
pip install -r requirements.txtThen run the Django migrations
./manage.py migrateOptionally create an admin user
./manage.py createsuperuser --username manuel --email manuel@manuel.codesLoading data from the graphql api is implemented as an admin command called import:
./manage.py importFirst start the development server
./manage.py importAnd then the API is available under http://127.0.0.1:8000/planets/.
http http://127.0.0.1:8000/planets/ | jqTo run the tests use the django admin
./manage test