Initial commit: NovinTrades website monorepo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-07-24 17:16:53 +03:30
co-authored by Cursor
commit 722a520e68
147 changed files with 15748 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# NovinTrades
Monorepo for NovinTrades — API, admin dashboard, and public website.
## Apps
| App | Path | Description |
|-----|------|-------------|
| **api** | `apps/api` | Fastify REST API + PostgreSQL (Prisma) |
| **admin** | `apps/admin` | Super-admin dashboard |
| **web** | `apps/web` | Public website |
## Quick start
```bash
# Start Postgres (host port 5433 — 5432 may be used by other projects)
docker compose up -d
# Install dependencies
npm install
# Configure API env
cp .env.example apps/api/.env
# Run migrations + seed admin user
npm run db:migrate
npm run db:seed
# Dev servers
npm run dev:api # http://localhost:3000
npm run dev:admin # http://localhost:5173
npm run dev:web # http://novintrades.local:5174
```
Default admin (after seed): `admin@novintrades.com` / `admin123`
## One-VM deploy (overview)
- Postgres via Docker
- API via PM2 (or Docker)
- Admin + web as static builds behind Nginx
- Route by subdomain or path (`api.`, `admin.`, apex)