尚未检测到更新。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.