Give your agent a wallet you control.
Let your agents pay online using one-time-use cards or with machine payment protocols. You approve every request.
Painel DRE com autenticação Supabase
Translation pending
FinanceTypeScript · PLpgSQLGitHub @elpotro1984OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗Aplicacao Next.js 14 (App Router) com Supabase (Auth + Postgres), shadcn/ui e integracao Omie para DRE gerencial, KPIs, sincronizacao financeira e administracao de usuarios.
git clone <URL_DO_REPO>
cd <PASTA_DO_PROJETO>
npm install
.env.local)Copie .env.example para .env.local e preencha:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYRESEND_API_KEYADMIN_EMAILCRON_SECRETENCRYPTION_KEY (chave usada para criptografar App Key/App Secret Omie)NEXT_PUBLIC_APP_URL (recomendado para links de e-mail em producao)Compatibilidade: APP_SECRETS_ENCRYPTION_KEY ainda funciona, mas o padrao atual e ENCRYPTION_KEY.
npm run dev
Opcao CLI:
supabase db push
Opcao SQL Editor:
supabase/migrations em ordem cronologica.supabase/seeds/first_admin.sql (troque o e-mail antes)./login com o e-mail que sera admin.supabase/seeds/first_admin.sql ajustando [email protected].public.users se role = 'admin' e active = true.Add New... -> Project.Cadastre em Settings -> Environment Variables:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYRESEND_API_KEYADMIN_EMAILCRON_SECRETENCRYPTION_KEYNEXT_PUBLIC_APP_URL (URL de producao)vercel.json ja esta configurado:
{
"crons": [
{
"path": "/api/cron/sync-all",
"schedule": "0 6 * * *"
}
]
}
0 6 * * * = 06:00 UTC (03:00 BRT).
Project -> Settings -> Domains.NEXT_PUBLIC_APP_URL com o dominio final.admin./configuracoes -> aba Empresas.Adicionar Empresa.Nome, App Key, App Secret.Testar Conexao.Sincronizar.As credenciais Omie sao armazenadas criptografadas usando ENCRYPTION_KEY.
/mapeamento ou a coluna de mapeamentos em /configuracoes -> Estrutura DRE.omie_category_code) a uma conta DRE.Sem mapeamento, os lancamentos da categoria nao entram corretamente no calculo da DRE.
/configuracoes -> aba Estrutura DRE.type = calculadois_summary = true/configuracoes -> aba KPIs.Novo KPI:
value, percentage, ratio)100 para percentual)/kpis.admin: acesso totalgestor_hero: dashboard/kpis/conexoesgestor_unidade: apenas dados da propria empresaDefina NEXT_PUBLIC_SUPABASE_URL e NEXT_PUBLIC_SUPABASE_ANON_KEY.env.local (local) ou Vercel (producao)./auth/callback./login ao abrir menu/rotaspublic.users (active = true, role correta).401 Unauthorized)Authorization: Bearer <CRON_SECRET>.CRON_SECRET da Vercel e igual ao esperado pela API.ENCRYPTION_KEY mudou apos dados ja criptografados.npm run lint
npm run build