Skip to content

Getting Started

Get Derma Consent running locally in 5 commands.

Prerequisites

  • Node.js 20+
  • pnpm 9+
  • Docker (for PostgreSQL)

Quick Start

bash
# 1. Clone the repository
git clone https://github.com/sohaibfaroukh/derma-consent.git
cd derma-consent

# 2. Start everything (installs deps, starts DB, runs migrations, launches dev servers)
make dev

That's it. The make dev command handles the full setup:

  1. Copies .env.example to .env if missing
  2. Runs pnpm install
  3. Starts PostgreSQL via Docker Compose
  4. Pushes the Prisma schema to the database
  5. Generates the Prisma client
  6. Starts the backend (port 3001) and frontend (port 3000) concurrently

Seed Test Data

To populate the database with sample practices, users, patients, and consent forms:

bash
make seed

This creates two practices with users across all three roles. All accounts use password Test1234!. See Test Credentials for the full list.

Open the App

Log in with any seeded account (e.g. admin@praxis-mueller.de / Test1234!), then unlock the vault with master password Test1234! to view decrypted patient data.

Useful Commands

CommandDescription
make devStart everything
make seedSeed test data
make testRun all tests
make buildProduction build
make cleanRemove build artifacts and Docker volumes
pnpm lintLint all packages

See the Makefile reference for the full list.

DSGVO-konforme digitale Einwilligungen