Giter Site home page Giter Site logo

woningzoeker-backend's Introduction

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

woningzoeker-backend's People

Contributors

daniellehuisman avatar dependabot[bot] avatar

Watchers

 avatar

woningzoeker-backend's Issues

Add platform model to corporations app

The platform model should create an abstraction for websites with multiple corporations. This replaces the current structure where each registration is linked to one corporation with one site.

Current structure

  • Corporations
    • Registrations

New structure

  • Platform
    • Corporations
    • Registrations

Example

  • Roomspot
    • Stichting Jongeren Huisvesting Twente
    • De Veste

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.