Go to file
2024-07-24 14:07:06 +02:00
requirements Loose requirements pinning in pyproject.toml and re-generate requirements 2024-07-24 11:33:43 +02:00
src The ruffening. 2024-07-15 00:19:37 +02:00
.dockerignore Cleanup. 2024-07-14 23:14:07 +02:00
.drone.yml Cleanup. 2024-07-14 23:14:07 +02:00
.env.example Cleanup. 2024-07-14 23:14:07 +02:00
.gitignore ui-overhaul (#24) 2024-01-13 20:07:36 +00:00
.pre-commit-config.yaml Allow pre-commit to run on my system's Python (3.10) - so I can install with pipx 2024-07-24 11:32:51 +02:00
docker-compose.yml Cleanup. 2024-07-14 23:14:07 +02:00
Dockerfile Shorten and document Docker tweaks for Python and pip (#35) 2024-07-23 22:48:24 +00:00
entrypoint.sh Revert "Remove health-check for Postgres (it's now in docker-compose.yml)" 2024-07-24 14:07:06 +02:00
Makefile Cleanup. 2024-07-14 23:14:07 +02:00
pyproject.toml Loose requirements pinning in pyproject.toml and re-generate requirements 2024-07-24 11:33:43 +02:00
README.md Cleanup. 2024-07-14 23:14:07 +02:00
requirements.txt Loose requirements pinning in pyproject.toml and re-generate requirements 2024-07-24 11:33:43 +02:00

data.coop member system

Development setup

There are two ways to setup the development environment.

  • Using the Docker Compose setup provided in this repository.
  • Using hatch in your host OS.

Using Docker Compose

Working with the Docker Compose setup is made easy with the Makefile provided in the repository.

Requirements

  • Docker
  • docker compose plugin

Setup

  1. Setup .env file

An example .env file is provided in the repository. You can copy it to .env file using the following command:

cp .env.example .env

The default values in the .env file are suitable for the docker-compose setup.

  1. Migrate
make migrate
  1. Run the development server
make run

Using hatch

Requirements

  • Python 3.12 or higher
  • hatch (Recommended way to install is using pipx install hatch)
  • A running PostgreSQL server

Setup

  1. Setup .env file

An example .env file is provided in the repository. You can copy it to .env file using the following command:

cp .env.example .env

Edit the .env file and set the values for the environment variables, especially the database variables.

  1. Run migrate
hatch run dev:migrate
  1. Run the development server
hatch run dev:server