Initial commit: Mana Collection dashboards (Next.js).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# 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://store.mana-collection.com:3000 | Store dashboard |
|
||||
| http://customer.mana-collection.com:3000 | 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`.
|
||||
Reference in New Issue
Block a user