Sprint Goal: Implement user authentication (register + login) and basic SaaS plan setup with frontend and backend integration.
- Create
/registerendpoint to allow user sign-up - Create
/loginendpoint that returns a JWT token - Implement password hashing with bcrypt
- Design and create PostgreSQL tables:
usersteamsplansuser_plans
- Seed Free, Basic, and Pro plan data
- Write logic to assign team to a default plan on registration
- Write middleware/service logic to restrict API access based on plan
- Apply basic search limit or feature blocking for Free plan users
- Write test cases for user registration and login
- Validate JWT token on protected endpoints
- Initialize frontend project using Vite
- Set up folder structure:
src/componentssrc/pagessrc/services
- Build Login page UI with email + password fields
- Build Register page UI with team name, email, password, and plan selection
- Add basic input validation for both forms
- Set up React Router with routes:
/login/register/dashboard
- Set up Axios for API calls
- Create
authService.jsto connect to backend/registerand/loginendpoints - Store JWT token in
localStorageafter login - Simulate login success with token check on dashboard
- Update
README.mdwith:- Tech stack
- Project structure
- Sprint 1 focus
- Review Code
Start: Monday, 4 August
End: Friday, 8 August