File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed
Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 3131def root ():
3232 return {"message" : "API ListaCompras está rodando 🚀" }
3333
34- # Adicione isto no FINAL do backend/main.py
3534if __name__ == "__main__" :
3635 import uvicorn
3736 import os
3837
3938 port = int (os .environ .get ("PORT" , 8000 ))
4039 uvicorn .run ("main:app" , host = "0.0.0.0" , port = port , reload = False )
41-
Original file line number Diff line number Diff line change 1+ senha: Rays64p50
2+ rds listacomoras-db: NyS3HSkklRtIkuod
3+ nome: postgres
4+
5+ -----------------
6+ 🔹 ETAPA 1: Criar o PostgreSQL no RDS (Free Tier) CHECK (ec2 regra de negocio tcp port ip4 configurada TBM)
7+ 🔹 ETAPA 2: Criar uma instância EC2 (Free Tier) para rodar backend + frontend FEITO
8+ 🔹 ETAPA 3: Conectar na EC2 e instalar tudo
9+ 🔹 ETAPA 4: Ajustar seu código para usar o RDS (não Supabase)
10+ 🔹 ETAPA 5: Iniciar os apps e testar
11+ ------------------
12+
13+ https://github.com/rayssarrsilva/ListaCompras.git
14+ # Atualizar sistema
15+ sudo apt update -y && sudo apt upgrade -y
16+
17+ # Instalar Python, pip, git
18+ sudo apt install python3 python3-pip git -y
19+
20+ # Clonar seu projeto
21+ git clone https://github.com/rayssarrsilva/ListaCompras.git
22+ cd ListaCompras
23+
24+ # Instalar backend
25+ cd backend
26+ pip3 install -r requirements.txt
27+
28+ # Instalar frontend
29+ cd ../frontend
30+ pip3 install -r requirements.txt
31+ ----------------
32+ ✅ Depois disso, sempre que for rodar o app, ative o ambiente virtual primeiro com:
33+ : source venv/bin/activate
You can’t perform that action at this time.
0 commit comments