Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Tool to search for residences of social housing corporations in the Netherlands.

Notifications You must be signed in to change notification settings

DanielleHuisman/woningzoeker-backend

Repository files navigation

Woningzoeker

Tool to search for residences of social housing corporations in the Netherlands.

This project consists of two repositories:

Social housing corporations

  • De Woonplaats
    • Aalten
    • Boekelo
    • Dinxperlo
    • Enschede
    • Neede
    • Wehl
    • Winterswijk
    • Zwolle
  • Domijn
    • Enschede
    • Haaksbergen
    • Losser
    • Overdinkel
  • Ons Huis
    • Enschede

Backend

Development

Prerequisites

Make sure Python 3, pip, PyCharm and Pipenv are installed on your system. You can install Pipenv by running pip install pipenv in a terminal.

Setup

  1. Clone this repository.
  2. Open the folder in PyCharm.
  3. Go to Settings > Project > Python Interpreter.
  4. Go to the settings next to Python Interpreter and click Add....
  5. Select Pipenv environment on the left side.
  6. Make sure the Base interpreter and Pipenv executable are correct.
  7. Make sure Install packages from Pipfile is checked.
  8. Click Ok. PyCharm will now install the dependencies.
  9. Close the settings.
  10. Open PyCharm's terminal (bottom left).
  11. Run the migrations with python manage.py migrate.
  12. Seed the database with python manage.py loaddata */fixtures/*.json.
  13. Run the cache migrations with python manage.py createcachetable.
  14. Create an admin user with python manage.py createsuperuser.
  15. Close PyCharm's terminal.

Running

PyCharm should have automatically detected Django and created a run configuration for the project. You can now run the project by clicking the green arrow (Run) or green bug (Debug) in the top right corner.

Production

Setup

TODO

Run the following commands in the Docker container (docker exec -it <container id> bash).

# Seed database
pipenv run python manage.py loaddata */fixtures/*.json

# Create super user
pipenv run python manage.py createsuperuser

TODO

About

Tool to search for residences of social housing corporations in the Netherlands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages