-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy path.cursorrules
More file actions
22 lines (16 loc) · 841 Bytes
/
Copy path.cursorrules
File metadata and controls
22 lines (16 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
This is a React Next.js project with a FastAPI Python backend.
Frontend (/frontend):
- Use .js for JSX files
- Use 'next/navigation' for all navigation/routing
- Use /frontend/src/lib/api.js for all API calls
- Handlers (onClick, onSubmit, etc.) should be named handle{action} and explicitly defined `const handle{action} = (e) => { ... }`
Backend (/backend):
- Use pydantic for all data models
- Use /backend/db/models.py for all database models
- Use alembic for generating migrations. You may modify the migration after it is created.
- Use backend/schemas/models.py for all routes input/output pydantic models
- Use backend/routers/{table}.py for all routes for that table/model
- Must use type hints
Scripts (/scripts):
- Use argparse for all scripts
- Names should start with verbs like "add", "remove", "update", "list", etc.