Skip to content

Share your story of the renter crisis

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

commonknowledge/vent-your-rent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vent Your Rent

Renters vent about their conditions and sign up to the Renters Manifesto

Built with Cookiecutter Django

Black code style

Vent Your Rent has two components, a backend and a frontend. The backend Django application providing an adminstration interface and a GraphQL endpoint. The frontend is a React application which can be found in the frontend/ directory of this repository.

Local Development

Quick start

Install and run the frontend in one terminal:

cd frontend && yarn && yarn graphql:generate-types && yarn start

In another terminal, back at the root (cd ../), set up and run the django server.

yarn containercmd django python manage.py createsuperuser
yarn dev

Requirements

For detailed information see https://cookiecutter-django.readthedocs.io/en/latest/developing-locally-docker.html

Management Commands

Django management commands can be run using docker-compose run:

$ docker-compose -f local.yml run --rm django python manage.py
$ docker-compose -f local.yml run --rm django python manage.py migrate

Setting Up Your Users

  • To create a normal user account, just go to Sign Up and fill out the form. Once you submit it, you'll see a "Verify Your E-mail Address" page. Go to your console to see a simulated email verification message. Copy the link into your browser. Now the user's email should be verified and ready to go.

  • To create an superuser account, use this command:

    $ docker-compose -f local.yml run --rm django python manage.py createsuperuser
    

For convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users.

Type checks

Running type checks with mypy:

$ docker-compose -f local.yml run --rm  django mypy vent_your_rent

Test coverage

To run the tests, check your test caoverage, and generate an HTML coverage report:

$ docker-compose -f local.yml run --rm django coverage run -m pytest
$ docker-compose -f local.yml run --rm django coverage html
$ open htmlcov/index.html

Running tests with py.test

$ docker-compose -f local.yml run --rm django  pytest

Live reloading and Sass CSS compilation

Moved to Live reloading and SASS compilation.

Deployment

This application is hosted on Heroku.

See detailed cookiecutter-django Heroku documentation.

Settings

Moved to settings.

About

Share your story of the renter crisis

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published