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