Summary
We need a basic backend + front-end integration for the Smartrexs launch website:
- User registration and login (JWT-based)
- Wallet connect (MetaMask)
- Protected dashboard page for logged-in users
Tasks
Acceptance Criteria
- A new user can register via
auth.html and is stored in MongoDB.
- A registered user can log in and receive a JWT.
- Logged-in users can access
dashboard.html; non-authenticated users are redirected to auth.html.
- Wallet connect button works in browsers with MetaMask installed.
- Code is pushed to GitHub with clear structure:
smartrexs-frontend/
smartrexs-backend/
- README explains how to run both frontend and backend locally.
Summary
We need a basic backend + front-end integration for the Smartrexs launch website:
Tasks
smartrexs-backend)Usermodel/api/auth/registerand/api/auth/loginroutesauth.htmlforms to backend viafetchlocalStorageand redirect todashboard.htmlon logindashboard.htmlthat checks for token and displays user emailindex.html(already scaffolded, refine UX)MONGO_URI,JWT_SECRET,PORT)Acceptance Criteria
auth.htmland is stored in MongoDB.dashboard.html; non-authenticated users are redirected toauth.html.smartrexs-frontend/smartrexs-backend/