Skip to content

Commit f70ea55

Browse files
committed
2 parents 35eaca4 + e54ec66 commit f70ea55

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

backend/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@
3131
def root():
3232
return {"message": "API ListaCompras está rodando 🚀"}
3333

34-
# Adicione isto no FINAL do backend/main.py
3534
if __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-

textos/aws.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)