## 🚀 Live Demo
[Frontend](https://electromart-frontend-rust.vercel.app)
npx prisma migrate dev --name init
npx prisma migrate reset
npx prisma generate
npm install -D ts-node
npx tsx prisma/seed.ts
npx ts-node prisma/banner-seed.ts
npx tsx prisma/banner-seed.ts
<!-- for task kill -->
for /f "tokens=5" %a in ('netstat -aon ^| findstr :5000') do taskkill /F /PID %a
### docker:
docker-compose up --build
docker-compose up -d
npx prisma migrate dev --name init
then start again command:
docker-compose up -d
to stop everything:
docker-compose down
to check any error:
docker logs Electromart_app
to check actually running:
docker ps
docker exec -it Electromart_app sh
npx prisma migrate dev --name init
## 🧒 Daily Routine From Now On
1. Open Docker Desktop → leave it running
2. Open VS Code terminal
3. Type → docker-compose up
4. Code normally, changes reflect live with hot reload!
5. When done → Ctrl+C to stop logs, then docker-compose down
Run Prisma Studio:
npx prisma studio --port 5555 --browser none
### to kill/delete running port:
netstat -ano | findstr :5000
taskkill /PID 12345 /F
docker-compose down
# for send notification target type
{
"targetType": "ROLE",
"role": "VENDOR",
"title": "Vendor Policy Updated",
"message": "Please review the new rules"
}
{
"targetType": "ALL_USERS",
"title": "Big Sale Tomorrow",
"message": "50% off starts tomorrow"
}
{
"targetType": "USER",
"userId": "abc123",
"title": "Account Approved",
"message": "Your account has been approved"
}
{
"targetType": "USERS",
"userIds": ["id1", "id2", "id3"],
"title": "Important Update",
"message": "Please check your dashboard"
}
**Stripe docs → Testing → Test cards**
Direct link: stripe.com/docs/testing#cards
Common ones you'll use:
| Card | Number |
| --- | --- |
| Success | `4242 4242 4242 4242` |
| Declined | `4000 0000 0000 0002` |
| Insufficient funds | `4000 0000 0000 9995` |
| 3D Secure | `4000 0025 0000 3155` |
Expiry/CVC: any future date + any 3 digits.