Go to file
2024-07-14 21:19:32 +02:00
requirements Implement django-view-decorator 2024-01-14 12:27:36 +01:00
src Waiting list function: WaitingListEntry model for people that can be invited in the future 2024-07-14 19:20:32 +02:00
.dockerignore Use hatch for installing. 2024-03-03 11:05:21 +01:00
.drone.yml WIP: cleanup setup 2024-07-14 21:19:32 +02:00
.env.example WIP: cleanup setup 2024-07-14 21:19:32 +02:00
.gitignore Waiting list function: WaitingListEntry model for people that can be invited in the future 2024-07-14 19:20:32 +02:00
.pre-commit-config.yaml Waiting list function: WaitingListEntry model for people that can be invited in the future 2024-07-14 19:20:32 +02:00
devenv.lock Add devenv files. 2024-02-10 10:55:38 +01:00
devenv.nix Add devenv files. 2024-02-10 10:55:38 +01:00
devenv.yaml Add devenv files. 2024-02-10 10:55:38 +01:00
docker-compose.yml WIP: cleanup setup 2024-07-14 21:19:32 +02:00
Dockerfile WIP: cleanup setup 2024-07-14 21:19:32 +02:00
entrypoint.sh WIP: cleanup setup 2024-07-14 21:19:32 +02:00
Makefile WIP: cleanup setup 2024-07-14 21:19:32 +02:00
pyproject.toml Waiting list function: WaitingListEntry model for people that can be invited in the future 2024-07-14 19:20:32 +02:00
README.md WIP: cleanup setup 2024-07-14 21:19:32 +02:00

member.data.coop

Development

Setup environment

Copy over the .env.example file to .env and adjust DATABASE_URL accordingly

$ cp .env.example .env

Docker

Requirements

  • Docker
  • Docker compose
  • pre-commit (preferred for contributions)

Setup

Given that the requirements above are installed, it should be as easy as:

$ make migrate

This will setup the database. Next run:

$ make run

This will build the docker image and start the member system on http://localhost:8000.

You can create a superuser by running:

$ make createsuperuser

Make migrations:

$ make makemigrations

Make messages:

$ make makemessages

Running tests:

$ make test

Non-docker

Create a venv

    $ python3 -m venv venv

Activate the venv

    $ source venv/bin/activate

Install requirements

    $ pip install .

Run migrations

    $ ./src/manage.py migrate

Create a superuser

    $ ./src/manage.py createsuperuser

Run the server

    $ ./src/manage.py runserver