docs: update BiteTrack project state and immediate goals
- Remove WEEKLY.md to consolidate planning into a single source of truth. - Update CURRENT.md with a structured, step-by-step execution playbook for Milestone 1.
This commit is contained in:
1 parent
d5ab933cfa
commit
d80f5f6e5e
2 files changed
+88
-53
No files matched your search
+88
-1
@@ -6,7 +6,7 @@ Implement Secure User Registration & CRUD (Milestone 1).
|
||||
## Current Blocker
|
||||
None.
|
||||
|
||||
## Next Action
|
||||
## Next Action !!!!
|
||||
Build one endpoint that accepts a validated request body (`POST /auth/register`).
|
||||
|
||||
Tactical actions for next session:
|
||||
@@ -14,3 +14,90 @@ Tactical actions for next session:
|
||||
2. Design the `UserRegister` and `UserResponse` Pydantic models.
|
||||
3. Implement `POST /auth/register` in `bitetrack-api` routes returning a dummy response.
|
||||
4. Verify route validation and responses.
|
||||
---
|
||||
|
||||
### Step 1 — Read only what you need (30–60 min) --
|
||||
|
||||
DONE
|
||||
|
||||
Open the official Pydantic documentation and ignore everything except the pieces required to build request models.
|
||||
|
||||
Specifically answer these questions in your new guide:
|
||||
|
||||
- Why does Pydantic exist?
|
||||
- What is `BaseModel`?
|
||||
- How does automatic validation work?
|
||||
- How does FastAPI use Pydantic?
|
||||
- How do I declare fields?
|
||||
- How do I validate common types (`str`, `int`, `EmailStr`, etc.)?
|
||||
- How do validation errors look?
|
||||
|
||||
---
|
||||
|
||||
### Step 2 — Build while reading
|
||||
|
||||
After every section, jump to BiteTrack.
|
||||
|
||||
For example:
|
||||
|
||||
Documentation:
|
||||
|
||||
```python
|
||||
class User(BaseModel):
|
||||
username: str
|
||||
```
|
||||
|
||||
Immediately write
|
||||
|
||||
```python
|
||||
class UserRegister(BaseModel):
|
||||
...
|
||||
```
|
||||
|
||||
Even if it's incomplete.
|
||||
|
||||
---
|
||||
|
||||
### Step 3 — Decide API contract
|
||||
|
||||
Before writing routes, answer questions like:
|
||||
|
||||
Request
|
||||
|
||||
```json
|
||||
{
|
||||
"email": "...",
|
||||
"password": "...",
|
||||
"full_name": "..."
|
||||
}
|
||||
```
|
||||
|
||||
Response
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "...",
|
||||
"email": "...",
|
||||
"full_name": "..."
|
||||
}
|
||||
```
|
||||
|
||||
Notice something?
|
||||
|
||||
This is no longer a Pydantic problem: It's API design.
|
||||
|
||||
---
|
||||
|
||||
### Step 4 — Implement a dummy endpoint
|
||||
|
||||
No database. No hashing. No SQLAlchemy.
|
||||
|
||||
Just:
|
||||
|
||||
```python
|
||||
@app.post(...)
|
||||
def register(user: UserRegister):
|
||||
...
|
||||
```
|
||||
|
||||
Return fake data. Your goal is to watch FastAPI validate the request automatically.
|
||||
@@ -1,52 +0,0 @@
|
||||
# Weekly Tactical Plan
|
||||
|
||||
This file is updated at the beginning of each week (every Monday) to detail specific focus tasks.
|
||||
|
||||
## Current Week: Week 1 (Phase 0)
|
||||
|
||||
### Goals
|
||||
- Set up a clean Python development workspace.
|
||||
- Learn tmux pane/session management.
|
||||
- Get comfortable with command-line API queries (`curl`, `jq`).
|
||||
- Set up a basic `docker-compose.yml` for PostgreSQL and FastAPI.
|
||||
|
||||
---
|
||||
|
||||
### Daily Schedule
|
||||
|
||||
#### Monday
|
||||
- [ ] Initialize Python environment using `uv`.
|
||||
- [ ] Set up Ruff for linting and formatting.
|
||||
- [ ] Set up mypy for type annotations.
|
||||
|
||||
#### Tuesday
|
||||
- [ ] Master basic `tmux` commands (create session, split panes, navigate, copy mode).
|
||||
- [ ] Practice editing files from terminal and using terminal splits.
|
||||
|
||||
#### Wednesday
|
||||
- [ ] Master `curl` flags: `-X`, `-H`, `-d`, `-i`, `-v`.
|
||||
- [ ] Install and use `jq` to parse JSON API responses.
|
||||
|
||||
#### Thursday
|
||||
- [ ] Write a basic `docker-compose.yml` defining a PostgreSQL service.
|
||||
- [ ] Test connection using local tools.
|
||||
|
||||
#### Friday
|
||||
- [ ] Connect FastAPI to PostgreSQL container.
|
||||
- [ ] Run automated checks and tests.
|
||||
|
||||
---
|
||||
|
||||
## Weekly Review
|
||||
|
||||
### Wins
|
||||
-
|
||||
|
||||
### Blockers / Hurdles
|
||||
-
|
||||
|
||||
### Key Lessons
|
||||
-
|
||||
|
||||
### Focus for Next Week
|
||||
-
|
||||
Reference in new issue
Block a user