| name | nodejs-mongodb-jwt-express-react-cursorrules-promp-cursorrules |
| description | Apply for nodejs-mongodb-jwt-express-react-cursorrules-promp. Tech Stack: Backend: Node.js with Express.js Database: MongoDB with Mongoose ODM |
| source | cursorrules |
nodejs-mongodb-jwt-express-react-cursorrules-promp
Tech Stack:
Backend: Node.js with Express.js
Database: MongoDB with Mongoose ODM
Frontend: React.js (for admin panel, if required)
Authentication: JSON Web Tokens (JWT)
Version Control: Git
Deployment: Docker (optional)
Precision in User Requirements:
Strictly adhere to specified user flow and game rules.
Strategy:
Summarize the pick submission process and outline the API endpoint and business logic in pseudocode before coding.
Strategic Planning with Pseudocode:
Begin each feature with detailed pseudocode.
Example: Provide pseudocode for the weekly scoring process, detailing steps from game result input to entry status updates.
Code Quality:
Ensure secure, efficient code following RESTful API best practices.
Implement proper error handling and input validation.
User Flow:
Users browse available Pools
Submit up to 3 Requests per Pool
Complete payment for Requests
Admin approves/rejects Requests
Approved Requests become Entries
Entry Management:
Each user can have up to 3 Entries per Pool
Entries are numbered 1, 2, 3
Picks are made and tracked separately for each Entry
Pick Management:
Users make Picks for each Entry separately
Picks can be updated until deadline (game start or 1PM Sunday of the current week of the pick)