mirror of
https://git.meshkee.com/novintrades/website.git
synced 2026-08-11 20:50:58 +04:30
43 lines
990 B
Markdown
43 lines
990 B
Markdown
# 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)
|