尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
A complete full-stack digital archive platform for Palestinian archival materials.
Frontend
• React 18 + TypeScript
• Vite
• Tailwind CSS
• shadcn/ui components
• TanStack Query
• React Hook Form + Zod
• React Router
• i18next
• Lucide icons
Backend
• NestJS + TypeScript
• PostgreSQL
• Prisma ORM
• Institution-scoped RBAC and archival workflow
• Archival hierarchy and controlled access requests
• Passport.js + JWT
• bcrypt (password hashing)
• Multer (file uploads)
• Swagger/OpenAPI
• Helmet + Rate Limiting
• Node.js 20+
• PostgreSQL 15+ (or use Docker)
• npm 9+檢視完整 README ↗بوابتك الرقمية للذاكرة الفلسطينية
A complete full-stack digital archive platform for Palestinian archival materials.
# Clone and start everything
docker-compose up -d
# Run migrations
docker-compose exec api npx prisma migrate dev
# Seed the database
docker-compose exec api npm run seed
# Access:
# Frontend: http://localhost:5173
# Backend API: http://localhost:3000
# Swagger docs: http://localhost:3000/api/docs
npm install
Create a database named archivna:
CREATE DATABASE archivna;
cp apps/api/.env.example apps/api/.env
# Edit apps/api/.env with your database credentials
npm run prisma:generate -w apps/api
npx prisma migrate deploy --schema apps/api/prisma/schema.prisma
npm run prisma:seed -w apps/api
npm run dev
| Command | Description |
|---|---|
npm run dev | Start both frontend and backend |
npm run dev:api | Start backend only |
npm run dev:web | Start frontend only |
npm run build | Build both for production |
npx prisma migrate deploy --schema apps/api/prisma/schema.prisma | Apply database migrations |
npm run prisma:seed -w apps/api | Seed the database |
npm run prisma:generate -w apps/api | Generate Prisma client |
npm test -w apps/api -- --runInBand | Run backend tests |
See apps/api/.env.example for all configuration options:
| Variable | Description | Default |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | - |
JWT_ACCESS_SECRET | Secret for access tokens | - |
JWT_REFRESH_SECRET | Secret for refresh tokens | - |
ACCESS_TOKEN_EXPIRATION | Access token lifetime | 15m |
REFRESH_TOKEN_EXPIRATION | Refresh token lifetime | 7d |
STORAGE_DRIVER | File storage backend | local |
UPLOAD_DIRECTORY | Upload directory path | ./uploads |
FRONTEND_URL | Frontend URL for CORS | http://localhost:5173 |
PORT | Backend port | 3000 |
| Variable | Default | Description |
|---|---|---|
MAX_IMAGE_SIZE | 20MB | Max image file size |
MAX_DOCUMENT_SIZE | 100MB | Max document size |
MAX_AUDIO_SIZE | 250MB | Max audio file size |
MAX_VIDEO_SIZE | 1GB | Max video file size |
MAX_ZIP_SIZE | 250MB | Max ZIP file size |
Files are stored in the uploads/ directory with randomized filenames. The original filename is preserved in the database. Files are served through authenticated API endpoints, never directly from the filesystem.
The storage service is abstracted. To switch to S3/MinIO/Cloudflare R2:
S3StorageService implementing the storage interfaceSTORAGE_DRIVER environment variableOnce the backend is running, visit:
http://localhost:3000/api/docs
Swagger UI provides complete API documentation for all endpoints.
After seeding, you can register new accounts or use seeded users:
[email protected] / Password: password123The first archival-core release provides:
The search system uses:
archivna/
├── apps/
│ ├── api/ # NestJS backend
│ │ ├── prisma/ # Schema, migrations, seed
│ │ ├── src/ # Source code
│ │ └── test/ # E2E tests
│ └── web/ # React frontend
│ └── src/
│ ├── api/ # API client functions
│ ├── components/ # UI components
│ ├── hooks/ # React hooks
│ ├── i18n/ # Translations
│ ├── lib/ # Utilities
│ ├── pages/ # Page components
│ ├── routes/ # Route definitions
│ └── store/ # State management
├── packages/
│ └── tsconfig/ # Shared TypeScript configs
├── docker-compose.yml
└── package.json # Root workspace config
All rights reserved. Palestinian Digital Archive Initiative.