Basic API for querying real estate data using Django and Django Rest Framework. Built with Python 3.8.1.
Create virtual env and install dependencies:
$ python -m venv env
$ . env/bin/activate
$ pip install -r requirements.txtSet up sqlite database:
$ python manage.py migrateTo seed the DB with the sample data:
$ python manage.py ingestcsvCan also accept a file name parameter (relative to this directory)
$ python manage.py runserverDocs are auto-generated via drf-yasg with SwaggerUI. With server running, visit http://localhost:8000/docs to view and try out some requests.
Run unit tests with:
$ python manage.py test rest_api.tests