Files
todolist-fullstack/GIT_PUSH_INSTRUCTIONS.md
Erik Silva 35272b8f87 initial: Backend Auth Module + Design System + Complete Documentation
- Setup NestJS with TypeScript, ConfigModule, JWT authentication
- Implemented Auth Module with signup, login, logout endpoints
- Created DTOs with validation (SignupDto, LoginDto)
- JWT Strategy with Passport integration for token validation
- JwtAuthGuard for route protection with Bearer tokens
- CurrentUser decorator for dependency injection
- Supabase integration for user management and auth
- Complete API documentation (API.md) with all endpoints
- Design System for Web (Next.js + Tailwind) and Mobile (Flutter)
- Comprehensive project documentation and roadmap
- Environment configuration with Joi schema validation
- Ready for Tasks Module and RLS implementation
2025-12-01 01:17:00 -03:00

140 lines
3.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 📤 INSTRUÇÕES PARA FAZER PUSH DO PROJETO
Quando você tiver a URL do repositório Git, siga estes passos:
## 1⃣ Configurar Git na Raiz do Projeto
```bash
cd c:\Users\Erik Silva\Documents\projetos\to-do-list
# Inicializar repositório (se ainda não foi feito)
git init
# Criar branch main
git checkout -b main
# Configurar informações do Git (use seus dados)
git config user.name "Erik Silva"
git config user.email "seu-email@example.com"
```
## 2⃣ Adicionar Todos os Arquivos
```bash
# Ver status
git status
# Adicionar tudo (respeitando .gitignore)
git add .
# Verificar o que vai ser commitado
git status
```
## 3⃣ Fazer o Primeiro Commit
```bash
git commit -m "initial: Backend Auth Module + Design System + Complete Documentation
- Setup NestJS with TypeScript, ConfigModule, JWT authentication
- Implemented Auth Module with signup, login, logout endpoints
- Created DTOs with validation (SignupDto, LoginDto)
- JWT Strategy with Passport integration
- JwtAuthGuard for route protection
- CurrentUser decorator for dependency injection
- Supabase integration for user management
- Complete API documentation (API.md)
- Design System for Web (Next.js + Tailwind) and Mobile (Flutter)
- Comprehensive project documentation
- Environment configuration with Joi validation
- Ready for Tasks Module implementation"
```
## 4⃣ Adicionar Remote e Fazer Push
```bash
# Substituir pela URL do seu repositório
git remote add origin https://git.stackbyte.cloud/erik/todolist-fullstack.git
# Fazer push da branch main
git push -u origin main
```
## 5⃣ (Opcional) Se Precisar de Credenciais
Se o Git pedir credenciais:
```bash
# Para git via HTTPS, pode usar token pessoal:
# Quando pedir password, use o token em vez da senha
# Ou configure SSH para não pedir senha toda vez:
# git remote set-url origin git@git.stackbyte.cloud:erik/todolist-fullstack.git
```
---
## 📋 Checklist antes do Push
- [x] Backend compilando sem erros (`npm run build`)
- [x] Frontend tem package.json válido
- [x] .env.example criado (sem valores reais)
- [x] Documentação completa
- [x] .gitignore configurado
- [x] node_modules/ não será adicionado
- [x] .env não será adicionado (segurança)
---
## ✅ Após o Push
Verifique se tudo está lá:
```bash
# Ver histórico de commits
git log --oneline
# Ver branches
git branch -a
# Ver remote
git remote -v
```
---
## 🚀 Próximo Commit (Passo 1.3)
Quando implementar o Tasks Module, o commit será:
```bash
git add .
git commit -m "feat: Tasks Module implementation with CRUD endpoints
- Implement TasksService with create, read, update, delete
- Create TasksController with protected endpoints
- Create Task DTOs (CreateTaskDto, UpdateTaskDto)
- Integrate with Supabase PostgREST API
- Add RLS policies documentation
- Update API.md with Tasks endpoints"
git push origin main
```
---
## 💡 Dica: Rebase antes de Push (se necessário)
```bash
# Se houver conflitos ou precisar limpar histórico
git rebase -i HEAD~3 # Últimos 3 commits
# Ou fazer um rebase em uma branch remota
git fetch origin
git rebase origin/main
```
---
**Quando estiver pronto, é só me chamar que a gente faz o push! 🚀**