mirror of
https://git.meshkee.com/novintrades/website.git
synced 2026-08-11 20:50:58 +04:30
Initial commit: NovinTrades website monorepo.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user