docs: remove references to BFF service
This commit is contained in:
parent
ed1b3c2e53
commit
00c18ee704
1 changed files with 5 additions and 59 deletions
64
README.md
64
README.md
|
|
@ -37,52 +37,37 @@ SaveInMed é uma solução completa que oferece:
|
|||
|
||||
## 🏗️ Arquitetura do Sistema
|
||||
|
||||
```mermaid
|
||||
graph TB
|
||||
subgraph "Frontend Layer"
|
||||
WEB[Website<br/>Fresh/Deno<br/>:8000]
|
||||
MKT[Marketplace Frontend<br/>React/Vite<br/>:5173]
|
||||
MAIN[SaveInMed Frontend<br/>Next.js 15<br/>:3000]
|
||||
end
|
||||
|
||||
subgraph "Backend Layer"
|
||||
BFF[SaveInMed BFF<br/>Python/FastAPI<br/>:8000]
|
||||
API[Backend API<br/>Go 1.24<br/>:8080]
|
||||
BACK[Backoffice<br/>NestJS/Fastify<br/>:3000]
|
||||
end
|
||||
|
||||
subgraph "Data Layer"
|
||||
PG[(PostgreSQL<br/>Database)]
|
||||
AW[(Appwrite<br/>BaaS)]
|
||||
end
|
||||
|
||||
subgraph "External Services"
|
||||
MP[Mercado Pago<br/>Payments]
|
||||
MB[Mapbox<br/>Geocoding]
|
||||
end
|
||||
|
||||
WEB -->|Landing Pages| BFF
|
||||
MKT -->|Marketplace| API
|
||||
MAIN -->|Main App| AW
|
||||
MAIN -->|Admin| BACK
|
||||
|
||||
BFF --> AW
|
||||
API --> PG
|
||||
BACK --> PG
|
||||
|
||||
API --> MP
|
||||
BFF --> MB
|
||||
BACK --> MP
|
||||
|
||||
style WEB fill:#4ade80
|
||||
style MKT fill:#60a5fa
|
||||
style MAIN fill:#a78bfa
|
||||
style BFF fill:#fbbf24
|
||||
style API fill:#f87171
|
||||
style BACK fill:#fb923c
|
||||
style PG fill:#94a3b8
|
||||
style AW fill:#94a3b8
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -167,32 +152,7 @@ npm run dev
|
|||
|
||||
---
|
||||
|
||||
### 4. **saveinmed-bff** - Backend For Frontend (Python)
|
||||
|
||||
**Propósito**: Agregação de dados e proxy para frontends
|
||||
|
||||
**Tecnologias**: Python 3.12, FastAPI, Appwrite
|
||||
|
||||
**Porta**: 8000
|
||||
|
||||
**Principais Funcionalidades**:
|
||||
- Integração com Appwrite (Databases)
|
||||
- Autenticação JWT com cookies httpOnly
|
||||
- CRUD de categorias, produtos, pedidos
|
||||
- Geocodificação automática (Mapbox)
|
||||
- Cálculo de frete dinâmico
|
||||
- API key protection
|
||||
|
||||
**Documentação**: [saveinmed-bff/README.md](./saveinmed-bff/README.md)
|
||||
|
||||
**Como executar**:
|
||||
```bash
|
||||
cd saveinmed-bff
|
||||
pip install -r requirements.txt
|
||||
uvicorn src.main:app --reload
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 5. **saveinmed-frontend** - Frontend Principal (Next.js)
|
||||
|
||||
|
|
@ -254,7 +214,7 @@ deno task dev
|
|||
|------------|-----------|-----------|----------------|
|
||||
| **backend** | Go 1.24 | - | PostgreSQL |
|
||||
| **backoffice** | TypeScript | NestJS 10 + Fastify | PostgreSQL (Prisma) |
|
||||
| **saveinmed-bff** | Python 3.12 | FastAPI | Appwrite |
|
||||
|
||||
|
||||
### Frontend
|
||||
| Componente | Framework | Versão | Estilização |
|
||||
|
|
@ -355,11 +315,7 @@ pnpm prisma migrate dev
|
|||
cd ../marketplace
|
||||
npm install
|
||||
|
||||
# SaveInMed BFF Python
|
||||
cd ../saveinmed-bff
|
||||
python -m venv venv
|
||||
source venv/bin/activate # ou `venv\Scripts\activate` no Windows
|
||||
pip install -r requirements.txt
|
||||
|
||||
|
||||
# SaveInMed Frontend Next.js
|
||||
cd ../saveinmed-frontend
|
||||
|
|
@ -384,8 +340,7 @@ cd backoffice && pnpm start:dev
|
|||
# Terminal 3 - Marketplace React
|
||||
cd marketplace && npm run dev
|
||||
|
||||
# Terminal 4 - SaveInMed BFF
|
||||
cd saveinmed-bff && uvicorn src.main:app --reload
|
||||
|
||||
|
||||
# Terminal 5 - SaveInMed Frontend
|
||||
cd saveinmed-frontend && npm run dev
|
||||
|
|
@ -409,8 +364,7 @@ docker-compose up
|
|||
| Backoffice | http://localhost:3000 | Admin NestJS |
|
||||
| Backoffice Swagger | http://localhost:3000/api | Docs NestJS |
|
||||
| Marketplace | http://localhost:5173 | Frontend React |
|
||||
| SaveInMed BFF | http://localhost:8000 | BFF Python |
|
||||
| SaveInMed BFF Docs | http://localhost:8000/docs | Docs FastAPI |
|
||||
|
||||
| SaveInMed Frontend | http://localhost:3000 | Frontend Next.js |
|
||||
| Website | http://localhost:8000 | Site Fresh/Deno |
|
||||
|
||||
|
|
@ -458,8 +412,7 @@ cd backend && go test ./...
|
|||
# Backoffice NestJS
|
||||
cd backoffice && pnpm test
|
||||
|
||||
# SaveInMed BFF Python
|
||||
cd saveinmed-bff && pytest
|
||||
|
||||
|
||||
# Frontend Next.js
|
||||
cd saveinmed-frontend && npm test
|
||||
|
|
@ -520,14 +473,7 @@ npm run build
|
|||
vercel --prod
|
||||
```
|
||||
|
||||
### SaveInMed BFF (Python)
|
||||
|
||||
```bash
|
||||
# Docker
|
||||
cd saveinmed-bff
|
||||
docker build -t saveinmed-bff:latest .
|
||||
docker push registry.example.com/saveinmed-bff:latest
|
||||
```
|
||||
|
||||
### SaveInMed Frontend (Next.js)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue