johndalton / jaxattax

Website for Jax Ewin running for Clark in the 2020 Tasmanian State election campaign.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jax Ewin

Website for Jax Ewin running for Clark in the 2020 Tasmanian State election campaign.

Development

First, make a .env file. This contains local secrets for your development environment. If you don't intend on testing the donation workflow in development, the Stripe API credentials can be left as the example values.

$ cp example.env .env
$ $EDITOR .env

Next, start the development server using Docker:

$ docker-compose build
$ docker-compose up

Create a new superuser using:

$ docker-compose exec backend ./src/manage.py createsuperuser

Visit the admin at http://localhost/cms.

Stripe

Invoke the payments profile in docker-compose:

$ docker-compose --profile payments up

Testing

Run the test container:

$ docker-compose run test

For an interactive session, use:

$ docker-compose run test bash

About

Website for Jax Ewin running for Clark in the 2020 Tasmanian State election campaign.


Languages

Language:Python 70.8%Language:HTML 18.6%Language:SCSS 5.2%Language:JavaScript 2.3%Language:Dockerfile 1.7%Language:Shell 1.4%