Sign inSign up

lucian2022/pattern_library

By lucian2022

•Updated 10 months ago

Platform for managing and browsing design patterns with community-driven features.

Buildkit cache
Image
Security
0

648

lucian2022/pattern_library repository overview

⁠Pattern Library

A Django-based platform for managing and browsing design patterns with community-driven features.

⁠Key Features

Pattern Management – Browse design patterns loaded from markdown files with YAML frontmatter

Community Engagement – Comment and vote on patterns and discussions

Global Search – Full-text search across patterns using PostgreSQL

Request System – Submit and vote on requests for new patterns

Smart Filtering – Filter by category, platform, NFRs, and controls

Modern UX – Syntax highlighting, auto-generated TOC, and loading skeletons

⁠Quick Start

⁠1. Create a project directory and docker-compose.yml
mkdir pattern_library && cd pattern_library

Create a docker-compose.yml file:

services:
  db:
    image: postgres:15
    volumes:
      - postgres_data:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=pattern_library
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 5s
      timeout: 5s
      retries: 5

  web:
    image: lucian2022/pattern_library:latest
    command: python manage.py runserver 0.0.0.0:8000
    ports:
      - "8000:8000"
    environment:
      - DEBUG=True
      - SECRET_KEY=django-insecure-dev-key-change-in-production
      - DB_NAME=pattern_library
      - DB_USER=postgres
      - DB_PASSWORD=postgres
      - DB_HOST=db
      - DB_PORT=5432
      - ALLOWED_HOSTS=localhost,127.0.0.1
    depends_on:
      db:
        condition: service_healthy

volumes:
  postgres_data:
⁠2. Start the application
docker-compose up
⁠3. Create a superuser (in a new terminal)
docker-compose exec web python manage.py createsuperuser
⁠4. Access the application

Web application: http://localhost:8000⁠

Admin interface: http://localhost:8000/admin⁠

⁠License

CC BY-NC-SA 4.0 – Free for non-commercial use with attribution.

Tag summary

Content type

Image

Digest

sha256:303a4f6e8…

Size

158 MB

Last updated

10 months ago

docker pull lucian2022/pattern_library