尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
Pakistan-focused P2P crypto exchange + Global Gas Fee Supply System.
1. Create a new Railway project at railway.app
2. Add services: PostgreSQL and Redis (Railway provides both)
3. Connect your GitHub repo → select the backend/ root directory
4. Railway auto-detects railway.toml and uses it
5. Add all env vars from backend/.env.example in Railway dashboard
6. DATABASE_URL and REDIS_URL are auto-injected by Railway — do not set them manually
7. First deploy runs prisma migrate deploy automatically (see railway.toml)檢視完整 README ↗Pakistan-focused P2P crypto exchange + Global Gas Fee Supply System.
pakswap/
├── frontend/ → Next.js 14 (Vercel)
├── backend/ → Fastify + Prisma (Railway)
├── docs/ → Full specification documents
│ ├── FULL_SPEC.md
│ ├── GAS_FEE_SPEC.md
│ ├── DB_TRANSACTION_RULES.md
│ └── FRONTEND_STANDARDS.md
├── .gitignore
├── package.json → npm workspaces root
└── README.md
git clone https://github.com/YOUR_USERNAME/pakswap.git
cd pakswap
npm install
cp backend/.env.example backend/.env
# Edit backend/.env with your local DB, Redis, and secret values
cp frontend/.env.local.example frontend/.env.local
# Edit frontend/.env.local — set NEXT_PUBLIC_API_URL
cd backend
npx prisma migrate dev --name init
npx prisma generate
cd ..
# Both services in one terminal:
npm run dev
# Or separately:
npm run dev:backend # http://localhost:3001
npm run dev:frontend # http://localhost:3000
# Backend health check:
curl http://localhost:3001/health
# Frontend: open http://localhost:3000 — shows API connection status
backend/ root directoryrailway.toml and uses itbackend/.env.example in Railway dashboardDATABASE_URL and REDIS_URL are auto-injected by Railway — do not set them manuallyprisma migrate deploy automatically (see railway.toml)# Check backend is live:
curl https://YOUR_BACKEND.up.railway.app/health
frontendNEXT_PUBLIC_API_URL=https://YOUR_BACKEND.up.railway.app
# Verify frontend is live and connected to backend:
# Open https://YOUR_PROJECT.vercel.app — the status page shows API health
| Variable | Where to get it | Required |
|---|---|---|
DATABASE_URL | Auto-injected by Railway PostgreSQL | Yes |
REDIS_URL | Auto-injected by Railway Redis | Yes |
JWT_SECRET | Generate: openssl rand -hex 32 | Yes |
JWT_REFRESH_SECRET | Generate: openssl rand -hex 32 | Yes |
CSRF_SECRET | Generate: openssl rand -hex 32 | Yes |
CNIC_HASH_SECRET | Generate: openssl rand -hex 32 | Server won't start without this |
AWS_ACCESS_KEY_ID | AWS IAM console | Yes |
AWS_SECRET_ACCESS_KEY | AWS IAM console | Yes |
AWS_S3_BUCKET | Create an S3 bucket | Yes |
AWS_REGION | e.g. ap-south-1 | Yes |
ADMIN_ALERT_EMAIL | Your ops email | Yes |
See backend/.env.example for full list | — | — |
| Variable | Value | Required |
|---|---|---|
NEXT_PUBLIC_API_URL | Your Railway backend URL | Yes |
See frontend/.env.local.example for full list | — | — |
All product and technical specifications are in /docs:
After first deploy:
-- After running prisma migrate, promote your account to super_admin:
UPDATE "User" SET role = 'super_admin' WHERE email = '[email protected]';
Or via Prisma Studio: cd backend && npx prisma studio
This platform must be operated by a registered business entity (SMC-Pvt Ltd or Pvt Ltd) in Pakistan.
Do not accept live funds without completing the legal checklist in docs/FULL_SPEC.md Section 26.