This repo keeps the backend simple for students. The backend creates notification payloads and returns them in API responses. It does not store notifications and does not communicate with notification-service.
root/
├── backend/
│ ├── prisma/schema.prisma
│ ├── src/controllers/index.ts
│ ├── src/middleware/auth.ts
│ ├── src/routes/index.ts
│ └── src/index.ts
├── notification-service/
└── README.mdPOST /auth/signupPOST /auth/loginPOST /wallet/onrampPOST /email/marketingGET /health
/wallet/onramp needs a JWT token. /email/marketing needs an ADMIN user token.
The backend returns payloads like this:
{
"id": 1,
"user": 12,
"template": "signup-success",
"service": "EMAIL",
"priority": 1
}These payloads are not stored in the database.
cd backend
bun install
bunx prisma generate
bun run devCreate backend/.env from backend/.env.example.