Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django API For Modeling Home Data

Basic API for querying real estate data using Django and Django Rest Framework. Built with Python 3.8.1.

Setup

Create virtual env and install dependencies:

$ python -m venv env
$ . env/bin/activate
$ pip install -r requirements.txt

Set up sqlite database:

$ python manage.py migrate

To seed the DB with the sample data:

$ python manage.py ingestcsv

Can also accept a file name parameter (relative to this directory)

Run API Server

$ python manage.py runserver

View API Docs

Docs are auto-generated via drf-yasg with SwaggerUI. With server running, visit http://localhost:8000/docs to view and try out some requests.

Run Tests

Run unit tests with:

$ python manage.py test rest_api.tests

About

Rest API for querying real estate data with Django

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages