-
Clone the repo:
$ git clone git@github.com:pjhoberman/pj-landed-takehome.git landed2 && cd landed2
-
Set up and activate a virtual environment:
$ python3 -m venv .
$ source bin/activate
-
Install requirements:
$ pip install -r requirements.txt
-
Run migrations:
$ python manage.py migrate
-
Load the data. You can load them from fixtures or load them fresh.
-
Load from fixtures:
$ python manage.py loaddata agents
-
Load fresh via script
It's not set up as a module yet, so just copy the code from agents/data_import.py to the shell
-
-
Visit http://127.0.0.1:8000/ to see the api root.
- http://127.0.0.1:8000/agent to list all agents and see documentation
- http://127.0.0.1:8000/agent/{field}/{value} to filter by a single field
- http://127.0.0.1:8000/agent/{id} to see details on a single agent