Last active
April 28, 2025 08:15
-
-
Save up1/f403efd18830875baa7828e9b432bec4 to your computer and use it in GitHub Desktop.
Demo with Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tech Stack: | |
Frontend: React.js | |
Frontend testing: Playwright | |
Backend: Node.js with Express.js | |
Backend testing: Jest, supertest | |
Database: Postgresql with pg library | |
Version Control: Git | |
Deployment: Docker | |
Precision in User Requirements: | |
Strictly adhere to specified user flow and 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 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 open register a new user to system | |
Show success message => User registered successfully | |
Rules: | |
Input | |
- username => required, unique | |
- email => required, unique, email format | |
- password => minimum 8 charecters | |
- first name => optional | |
- lastname => optional | |
Expected result | |
- Show success message => User registered successfully | |
- Redirect to login page | |
Backend :: REST API | |
- Create in folder api | |
- API spec | |
POST /user/register | |
{ | |
"username": "somkiat", | |
"email": "[email protected]", | |
"password": "12345678" | |
} | |
Response code = 201 | |
- testing with jest and supertest | |
- create Dockerfile | |
Frontend | |
- Create in folder ui | |
- create register page and submit to POST /user/register | |
- testing with playwright | |
- create Dockerfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment