How devmauriciojunior/projeto-uninter-raizesdonorderste works
A FastAPI API for user registration/authentication and order creation, payment, and channel-filtered listing. The main workflow is a client or attendant submitting an order: the route delegates to order services, which check user, product, and stock data, save the order, and later process mock payment and update order status and loyalty points. Authentication is a separate branch using password hashing and JWT-based profile checks. The README also documents SQLite persistence and role-based access. Relationships reflect shown calls/imports and README statements; unsampled subsystems are not inferred.
Main entry points: rotas_usuarios.py User routes · rotas_pedidos.py Order routes · database.py Database session · main.py FastAPI app
Components 14
API entry
- FastAPI app
main.py - User routes
api/rotas_usuarios.py - Order routes
api/rotas_pedidos.py
Domain and services
- Request schemas
domain/schemas.py - Order and role enums
domain/enums.py - User service
application/services.py - Order service
application/services.py
Persistence and integrations
- Data repositories
infrastructure/repositories.py - SQLAlchemy models
infrastructure/models.py - Database session
infrastructure/database.py - SQLite store
- Mock payment gateway
infrastructure/gateway_pagamento.py
Identity and access
- JWT and passwords
infrastructure/security.py
Other components
- API client
Connections 23
- API client → FastAPI app: sends requests
README.md - FastAPI app → User routes: registers router
main.py - FastAPI app → Order routes: registers router
main.py - FastAPI app → Database session: creates tables
main.py - Order routes → Order service: delegates orders
api/rotas_pedidos.py - User routes → User service: delegates registration
api/rotas_usuarios.py - User routes → Data repositories: looks up login
api/rotas_usuarios.py - User routes → JWT and passwords: verifies and issues
api/rotas_usuarios.py - Order routes → JWT and passwords: checks profile
api/rotas_pedidos.py - Order routes → Database session: injects session
api/rotas_pedidos.py - User routes → Database session: injects session
api/rotas_usuarios.py - Order routes → Request schemas: validates and responds
api/rotas_pedidos.py - User routes → Request schemas: validates and responds
api/rotas_usuarios.py - Request schemas → Order and role enums: uses enums
domain/schemas.py - Order service → Data repositories: queries and saves
application/services.py - Order service → Mock payment gateway: processes payment
application/services.py - Order service → JWT and passwords: hashes password
application/services.py - User service → Data repositories: checks and saves
application/services.py - User service → JWT and passwords: hashes password
application/services.py - Data repositories → SQLAlchemy models: queries models
infrastructure/repositories.py - SQLAlchemy models → Database session: uses base
infrastructure/models.py - SQLAlchemy models → Order and role enums: uses enums
infrastructure/models.py - Database session → SQLite store: persists data
README.md