{"id":22170898,"url":"https://github.com/elhanarinc/housedata-challenge","last_synced_at":"2026-05-06T20:36:26.657Z","repository":{"id":94737118,"uuid":"162821964","full_name":"elhanarinc/housedata-challenge","owner":"elhanarinc","description":"Challenge written with Django Framework","archived":false,"fork":false,"pushed_at":"2019-01-26T11:30:12.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T22:27:41.360Z","etag":null,"topics":["django","pip","postgresql","python3","virtualenv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elhanarinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-22T15:28:03.000Z","updated_at":"2019-11-25T21:26:37.000Z","dependencies_parsed_at":"2023-04-08T02:47:01.422Z","dependency_job_id":null,"html_url":"https://github.com/elhanarinc/housedata-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elhanarinc%2Fhousedata-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elhanarinc%2Fhousedata-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elhanarinc%2Fhousedata-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elhanarinc%2Fhousedata-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elhanarinc","download_url":"https://codeload.github.com/elhanarinc/housedata-challenge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245319866,"owners_count":20596052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","pip","postgresql","python3","virtualenv"],"created_at":"2024-12-02T06:56:31.912Z","updated_at":"2026-05-06T20:36:21.605Z","avatar_url":"https://github.com/elhanarinc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Challenge\nCoding challenge written with Django Framework.\n\nThis project assumes you had already installed these tools:\n1. [python 3](https://realpython.com/installing-python/)\n2. [pip](https://www.makeuseof.com/tag/install-pip-for-python/)\n3. [postgresql](http://postgresguide.com/setup/install.html)\n\nAfter necessary tools, you need to install the `sold house pricing` dataset from [here](https://data.gov.uk/dataset/4c9b7641-cf73-4fd9-869a-4bfeed6d440e/hm-land-registry-price-paid-data).\n\nThen you need to add header row for this raw data by using command below on terminal:\n* `echo 'transaction_unique_identifier,price,date_of_transfer,postcode,property_type,old_or_new,duration,paon,saon,street,locality,town,district,country,ppd_category_type,record_status' | cat - latest.csv \u003e temp \u0026\u0026 mv temp latest.csv`\n\nIn order to use django with postgresql, you need to follow this [link](https://www.digitalocean.com/community/tutorials/how-to-use-postgresql-with-your-django-application-on-ubuntu-14-04).\n\nFirst we need to create a `virtualenv` by using below commands:\n* `virtualenv venv -p [python3 location like /usr/local/bin/python3]`\n* `source venv/bin/activate`\n* Go to the project directory like `cd /home/challenge-directory/`\n* `pip install -r requirements.txt`\n\nBelow are the commands that is need for populating the empty postgresql table, then running the API:\n* `python manage.py makemigrations`\n* `python manage.py migrate`\n* `python manage.py populate_db [file-location]`\n* `python manage.py runserver`\n\n\nThere are two endpoints for timeseries and histogram:\n1. `/timeseries`:\nThis endpoint only accepts *GET* request and params are:\n```\n{\n\t\"postcode\": required,\n\t\"from_date\": optional (format: [Month Year]),\n\t\"to_date\": optional (example: September 2018)\n}\n```\n\n2. `/histogram`:\nThis endpoint only accepts *GET* request and params are:\n```\n{\n\t\"postcode\": required,\n\t\"date\": optional (format: [Month Year], example: September 2018)\n}\n```\n\nTools used for deploying and serving endpoints:\n1. [Microsoft Azure VM](https://azure.microsoft.com/tr-tr/services/virtual-machines/)\n2. [gunicorn](https://gunicorn.org/)\n3. [nginx](https://www.nginx.com/)\n4. [supervisor](http://supervisord.org/introduction.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felhanarinc%2Fhousedata-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felhanarinc%2Fhousedata-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felhanarinc%2Fhousedata-challenge/lists"}