28 lines
736 B
Markdown
28 lines
736 B
Markdown
# Mana Collection — Dashboards
|
|
|
|
Shared Next.js app for **store admin** and **customer** account UI.
|
|
|
|
## Local domains
|
|
|
|
```bash
|
|
# once (needs admin password)
|
|
../scripts/setup-hosts.sh
|
|
```
|
|
|
|
| URL | App |
|
|
|-----|-----|
|
|
| http://mana-collection.com:3000 | Website (coming soon) |
|
|
| http://store.mana-collection.com:3001 | Store dashboard |
|
|
| http://customer.mana-collection.com:3001 | Customer (same app) |
|
|
| http://api.mana-collection.com:3002/api/v1 | Backend API |
|
|
|
|
```bash
|
|
cp .env.example .env.local
|
|
npm install
|
|
npm run dev
|
|
```
|
|
|
|
API: `NEXT_PUBLIC_API_URL` → `http://api.mana-collection.com:3002/api/v1`
|
|
|
|
Store staff login: phone + password or OTP. Customer registration uses OTP; store panel requires `STORE_ADMIN` / `SUPER_ADMIN`.
|