All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
Set up local dev workflow: SSH tunnel to dev DB, Next.js API proxy via rewrites, Docker or native backend on port 5000. Update and restructure project documentation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
60 lines
1.8 KiB
Markdown
60 lines
1.8 KiB
Markdown
# GoodBrick Project
|
|
|
|
Сайт производителя фасадной плитки GoodBrick — каталог продукции, корпоративная информация.
|
|
|
|
## Services
|
|
|
|
| Service | URL | Purpose |
|
|
|---------|-----|---------|
|
|
| **Production** | https://new.goodbrick.com.ua | Продакшн приложение |
|
|
| **Development** | https://dev.goodbrick.com.ua | Dev окружение |
|
|
| **Gitea** | https://git.goodbrick.com.ua | Git сервер |
|
|
| **Woodpecker CI** | https://ci.goodbrick.com.ua | CI/CD |
|
|
| **Uptime Kuma** | https://status.goodbrick.com.ua | Мониторинг |
|
|
|
|
## Stack
|
|
|
|
- **Frontend:** Next.js 16 + shadcn/ui + Tailwind CSS 4
|
|
- **Backend:** .NET 9 Web API + Npgsql
|
|
- **Database:** PostgreSQL 16
|
|
- **Proxy:** Caddy 2 (auto-SSL)
|
|
- **CI/CD:** Woodpecker CI
|
|
|
|
## Local Development
|
|
|
|
See [CLAUDE.md](./CLAUDE.md#local-development) for full local dev setup.
|
|
|
|
```powershell
|
|
# Terminal 1: SSH tunnel to dev database
|
|
.\scripts\local-tunnel.ps1
|
|
|
|
# Terminal 2: Backend (choose one)
|
|
.\scripts\local-backend-dotnet.ps1 # native, with hot-reload
|
|
.\scripts\local-backend-docker.ps1 # Docker container
|
|
|
|
# Terminal 3: Frontend
|
|
.\scripts\local-frontend.ps1
|
|
```
|
|
|
|
## Documentation
|
|
|
|
- **[CLAUDE.md](./CLAUDE.md)** — Project conventions, structure, local dev setup
|
|
- **[SERVER.md](./SERVER.md)** — Server infrastructure, services, troubleshooting
|
|
|
|
## Git Workflow
|
|
|
|
- `main` branch → auto-deploy to production
|
|
- `dev` branch → auto-deploy to dev environment
|
|
- Commit style: conventional, English
|
|
|
|
## Server
|
|
|
|
- **Host:** 31.131.18.254
|
|
- **SSH:** `ssh deploy@31.131.18.254` (key-based)
|
|
- **Docker Network:** `app-network`
|
|
|
|
## Next Steps
|
|
|
|
- [ ] Настроить email для Gitea
|
|
- [ ] Настроить автобэкапы баз данных
|