Skip to content

manuelisimo/challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django CRUD API challenge

by Manuel Aguilera López

Setup

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

Then run the Django migrations

 ./manage.py migrate

Optionally create an admin user

./manage.py createsuperuser --username manuel --email manuel@manuel.codes

Retrieve external data

Loading data from the graphql api is implemented as an admin command called import:

 ./manage.py import

Run the CRUD API

First start the development server

./manage.py import

And then the API is available under http://127.0.0.1:8000/planets/.

http http://127.0.0.1:8000/planets/ | jq

Run the tests

To run the tests use the django admin

./manage test

About

A django CRUD API challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages