Skip to content

Commit 620cfb1

Browse files
committed
docs: update readme and add a build-log
1 parent 5daf941 commit 620cfb1

2 files changed

Lines changed: 49 additions & 2 deletions

File tree

README.md renamed to README .md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# rest-api-flask (Flask + MongoDB)
22

3-
REST API built with Flask and Flask-RESTful, using MongoDB via MongoEngine.
4-
The project focuses on clean configuration per environment, containerized setup, and automated testing/pipeline.
3+
REST API built with Flask and Flask-RESTful, using MongoDB via MongoEngine. The project focuses on clean configuration per environment, containerized setup, and automated testing/pipeline.
54

65
## Tech Stack
76
- Python + Flask + Flask-RESTful
@@ -39,3 +38,26 @@ python -m venv .venv
3938
source .venv/bin/activate
4039
pip install -r requirements.txt
4140
python wsgi.py
41+
```
42+
43+
## Running with Docker Compose
44+
```bash
45+
docker compose up --build
46+
```
47+
48+
## Testing
49+
```bash
50+
pytest -q
51+
```
52+
53+
## Project structure (high level)
54+
- `app.py` / `wsgi.py`: entrypoints
55+
- `config.py`: environment-based configuration (dev/prod/mock)
56+
- `application/`: app factory + resources + models (MongoEngine)
57+
58+
## Roadmap (Next)
59+
- Add tests for PATCH endpoint
60+
- Implement DELETE endpoint
61+
- Add `/health` endpoint with DB check
62+
- Improve response serialization (consistent JSON)
63+
- Add MongoDB volume in compose for persistence

docs_build-log.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Build log — rest-api-flask
2+
3+
A short timeline of what was implemented, in order, to make it easier to recall details during reviews and interviews.
4+
5+
## Build timeline
6+
1) Repo created + SSH keys configured
7+
2) venv + pip setup + first Flask run
8+
3) Flask-RESTful added + reqparse for first POST
9+
4) Linting added (flake8)
10+
5) MongoEngine integration + basic CRUD
11+
6) CPF validation (check digits)
12+
7) Users listing + user-not-found handling
13+
8) Application Factory pattern + decoupled structure
14+
9) Dockerfile + Docker Compose adjustments
15+
10) Insomnia collections (local + production)
16+
11) Pytest added + fixtures + POST test
17+
12) MongoDB Atlas setup
18+
13) Deploy to Vercel + production environment config
19+
14) GitHub Actions pipeline + CI secrets configured
20+
15) PATCH route implemented
21+
22+
## Next steps
23+
- Write tests for PATCH route
24+
- Implement DELETE route
25+
- Add /health endpoint + DB check

0 commit comments

Comments
 (0)