feat: Add full CRUD functionality, project detail panel, and improved UI
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled

- Add UPDATE and DELETE endpoints to backend
- Implement project detail panel with comprehensive editing
- Add drag-and-drop functionality for projects in mind map
- Show all projects in map (not just selected + children)
- Fix infinite render loop in MindMap component
- Improve UI spacing and button layouts
- Add local development database schema with RLS disabled
- Update docker-compose for regular docker-compose (not Swarm)
- Add CORS support and nginx API proxying
- Improve button spacing and modern design principles
This commit is contained in:
gitmuhammedalbayrak
2025-11-27 03:18:48 +03:00
parent 066c16221d
commit b9148cfa4b
15 changed files with 1306 additions and 161 deletions

View File

@@ -1,8 +1,7 @@
version: '3.8'
services:
postgres:
image: postgres:14-alpine
container_name: evrak-postgres
environment:
POSTGRES_USER: evrak_user
POSTGRES_PASSWORD: evrak_password
@@ -11,19 +10,22 @@ services:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
- ../../backend/src/database/schema-local.sql:/docker-entrypoint-initdb.d/01-schema.sql
networks:
- evrak-net
deploy:
replicas: 1
restart_policy:
condition: on-failure
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U evrak_user -d evrak"]
interval: 10s
timeout: 5s
retries: 5
backend:
# Note: 'docker stack deploy' ignores 'build'. You must run 'docker compose build' first.
build:
context: ../../backend
dockerfile: Dockerfile
image: evrak-backend:local
container_name: evrak-backend
environment:
DB_HOST: postgres
DB_PORT: 5432
@@ -34,35 +36,29 @@ services:
ports:
- "3000:3000"
depends_on:
- postgres
postgres:
condition: service_healthy
networks:
- evrak-net
deploy:
replicas: 1
restart_policy:
condition: on-failure
restart: unless-stopped
frontend:
build:
context: ../../frontend
dockerfile: Dockerfile
image: evrak-frontend:local
container_name: evrak-frontend
ports:
- "80:80"
depends_on:
- backend
networks:
- evrak-net
deploy:
replicas: 1
restart_policy:
condition: on-failure
restart: unless-stopped
volumes:
db_data:
networks:
evrak-net:
driver: overlay
attachable: true
driver: bridge