Skip to content

Commit 5daf941

Browse files
committed
feat: README update
1 parent 6a107eb commit 5daf941

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
1-
# rest-api-flask
1+
# rest-api-flask (Flask + MongoDB)
2+
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.
5+
6+
## Tech Stack
7+
- Python + Flask + Flask-RESTful
8+
- MongoDB (MongoEngine)
9+
- Docker / Docker Compose
10+
- Pytest (fixtures)
11+
- GitHub Actions (CI)
12+
- Insomnia (local + production collections)
13+
14+
## Features (Current)
15+
- Create user (POST)
16+
- List users (GET)
17+
- Get user by CPF (GET)
18+
- Update user (PATCH) — implemented
19+
- CPF validation (check digits)
20+
- Proper error handling for user not found
21+
- Environment configs (dev/prod/mock)
22+
- Application Factory pattern (decoupled app)
23+
- Dockerized API + MongoDB (Compose)
24+
- CI pipeline with secrets
25+
26+
## API Endpoints (Example)
27+
Base URL: `http://localhost:5000`
28+
29+
- `GET /health` (planned)
30+
- `POST /users`
31+
- `GET /users`
32+
- `GET /users/<cpf>`
33+
- `PATCH /users/<cpf>`
34+
- `DELETE /users/<cpf>` (planned)
35+
36+
## Running locally (venv)
37+
```bash
38+
python -m venv .venv
39+
source .venv/bin/activate
40+
pip install -r requirements.txt
41+
python wsgi.py

0 commit comments

Comments
 (0)