Go to file
Halfdan Mouritzen 498f297ce4
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Merge of main
2024-02-29 20:45:03 +01:00
requirements Implement django-view-decorator 2024-01-14 12:27:36 +01:00
src Merge of main 2024-02-29 20:45:03 +01:00
.dockerignore Include entrypoint.sh in the docker image. 2022-11-22 17:12:06 +01:00
.drone.yml Push to a non-dotted repo. 2022-11-24 23:55:01 +01:00
.env.example Fixing some stuff with README 2023-10-02 20:10:24 +02:00
.gitignore ui-overhaul (#24) 2024-01-13 20:07:36 +00:00
.pre-commit-config.yaml Update stuff. 2024-01-07 15:04:08 +01: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 Fixing some stuff with README 2023-10-02 20:10:24 +02:00
Dockerfile Upgrade to python 3.11. Update pre-commit. Small settings adjustments. 2023-01-11 21:55:58 +01:00
entrypoint.sh Fix entrypoint paths. Add uvicorn. Set correct port. 2021-03-01 14:13:19 +01:00
Makefile Use docker compose, not docker-compose. 2023-09-16 15:39:13 +02:00
pyproject.toml Implement django-view-decorator 2024-01-14 12:27:36 +01:00
README.md Fixing some stuff with README 2023-10-02 20:10:24 +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 -r requirements/dev.txt

Run migrations

    $ ./src/manage.py migrate

Create a superuser

    $ ./src/manage.py createsuperuser

Run the server

    $ ./src/manage.py runserver