Appearance
Primeiros Passos
Pré-requisitos
- Docker + Docker Compose
- Node.js 20+ (para build do frontend)
- Git
Instalação
bash
# Clone o repositório
git clone <repo-url> igreja
cd igreja
# Suba os containers
docker compose up -d
# Instale dependências do frontend
npm install
# Configure o ambiente
cp html/.env.example html/.env
# Edite html/.env com suas configurações
# Setup completo (migrate + seed + tenants)
docker compose exec app php artisan app:setup
# Gere os tipos Wayfinder (obrigatório antes do build)
docker compose exec app php artisan wayfinder:generate --with-form
# Build do frontend
npm run buildAcesso
Após o app:setup, os seguintes acessos ficam disponíveis:
| URL | Descrição |
|---|---|
http://igreja.test | Landing page (central) |
http://alfa.igreja.test | Tenant "alfa" (plano Crescimento) |
http://beta.igreja.test | Tenant "beta" (plano Semente) |
http://charlie.igreja.test | Tenant "charlie" (plano Expansão) |
http://igreja.test/admin/login | Painel admin central |
http://localhost:5173 | Documentação (VitePress) |
Credenciais de Desenvolvimento
Todos os tenants compartilham as mesmas credenciais:
| Senha | Role | |
|---|---|---|
admin@decaelo.com.br | password | Admin central |
admin@igreja.test | password | super-admin (tenant) |
admin-igreja@igreja.test | password | admin-igreja (tenant) |
secretario@igreja.test | password | secretario (tenant) |
membro@igreja.test | password | membro (tenant) |
Hosts
Adicione ao seu /etc/hosts:
127.0.0.1 igreja.test alfa.igreja.test beta.igreja.test charlie.igreja.test