chore: initial project setup with backend, frontend, and infrastructure
Some checks failed
CI / backend (push) Failing after 31s
CI / frontend (push) Successful in 40s
CI / docker (push) Has been skipped

Add complete NexaPantry application structure including:
- Docker Compose configuration with PostgreSQL, Redis, FastAPI backend, worker, frontend and Caddy
- Environment configuration template with database, auth, and service settings
- GitHub Actions CI workflow for backend/frontend linting, testing, auditing and Docker builds
- AGPL-3.0 license and comprehensive README with setup, development, and security documentation
- Backend
This commit is contained in:
2026-06-04 10:26:38 +02:00
commit 3792ca55e7
74 changed files with 13417 additions and 0 deletions

7
scripts/backup.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env sh
set -eu
cd "$(dirname "$0")/.."
mkdir -p backups
docker compose exec postgres pg_dump -U "${POSTGRES_USER:-nexapantry}" "${POSTGRES_DB:-nexapantry}" > "backups/nexapantry-$(date +%Y%m%d-%H%M%S).sql"

11
scripts/restore.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env sh
set -eu
if [ $# -ne 1 ]; then
echo "Usage: scripts/restore.sh backups/file.sql" >&2
exit 1
fi
cd "$(dirname "$0")/.."
docker compose exec -T postgres psql -U "${POSTGRES_USER:-nexapantry}" "${POSTGRES_DB:-nexapantry}" < "$1"

29
scripts/security-checks.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env sh
set -eu
cd "$(dirname "$0")/.."
echo "Backend lint"
(cd backend && ruff check app)
echo "Backend tests"
(cd backend && pytest)
echo "Backend dependency audit"
(cd backend && pip-audit)
echo "Backend static security scan"
(cd backend && bandit -q -r app -x app/tests)
echo "Frontend lint, typecheck, tests and dependency audit"
(cd frontend && npm run lint && npm run typecheck && npm test -- --run && npm audit --audit-level=moderate)
cat <<'INFO'
Container scan:
docker compose build
trivy image nexapantry-backend
trivy image nexapantry-frontend
Secret scan:
gitleaks detect --source .
INFO