Plataforma SaaS para otimizaรงรฃo de vendas e marketing usando automaรงรฃo inteligente, anรกlise preditiva e IA integrada. Transforme leads em clientes, campanhas em resultados e dados em crescimento real.
- ๐ Visรฃo Geral
- ๐ ๏ธ Tecnologias Utilizadas
- ๐ Funcionalidades
- ๐ฅ๏ธ Demonstraรงรตes Visuais
- โ๏ธ Instalaรงรฃo e Execuรงรฃo
- ๐ Arquitetura do Projeto
- ๐๏ธ Estrutura de Pastas
- ๐ API Reference (Endpoints Principais)
- ๐งช Testes & Qualidade
- ๐ Deployment & CI/CD
- ๐ Seguranรงa & Acessibilidade
- ๐ต Planos de Assinatura
- ๐ Roadmap Futuro
- ๐ค Contribuindo
- ๐ Licenรงa
SalesEngineAI-Pro รฉ a plataforma definitiva para empresas que querem automatizar suas vendas, gerenciar campanhas de marketing multicanal e analisar seus dados de maneira inteligente e prรกtica.
๐ก Principais destaques:
- CRM de Leads e Pipeline de Vendas
- Gerenciador de Campanhas de Marketing Digital
- Automaรงรฃo de E-mails
- Gestรฃo de Redes Sociais (Instagram, Facebook, Twitter, LinkedIn)
- Painel de Mensagens com Clientes
- Relatรณrios Avanรงados e Insights Preditivos
- Painel Administrativo Completo (Perfil, Notificaรงรตes, Seguranรงa, Billing, API)
- Integraรงรตes via API RESTful
- Interface Clean, Responsiva e Acessรญvel
- ๐ Dashboard Completo โ KPIs de marketing e vendas em tempo real: Pipeline Value, Win Rate, Deal Forecast.
- ๐ฏ Gestรฃo de Leads โ Controle, segmentaรงรฃo e qualificaรงรฃo automรกtica.
- ๐ ๏ธ Gerenciamento de Campanhas โ Fluxo multicanal, testes A/B, agendamento e monitoramento.
- ๐ง Automaรงรฃo de E-mails โ Templates dinรขmicos, taxas de abertura e cliques.
- ๐ฌ Mensagens โ Chat interno com histรณrico e busca.
- ๐ Anรกlises Preditivas โ Algoritmos de Machine Learning para forecast e churn risk.
- ๐ฃ Redes Sociais โ Overview, growth charts, content calendar, agendamento de posts.
- โ๏ธ Settings & Admin โ Perfil, Notificaรงรตes, Seguranรงa (2FA), Billing, API Keys.
- ๐ Integraรงรตes โ Conectores nativos e Webhooks para CRMs, ERPs, Zapier.
- ๐ Seguranรงa โ JWT, OAuth2, roles & permissions, rate limiting.
git clone https://github.com/techleadevelopers/sales-engine-ai-pro.git
cd sales-engine-ai-pro
Frontend
bash
Copiar
cd frontend
npm install
npm run dev
Backend
bash
Copiar
cd backend
npm install
npm run dev
Variรกveis de Ambiente (.env)
dotenv
Copiar
# MongoDB
MONGO_URI=<sua-mongo-uri>
# Auth
JWT_SECRET=<chave-secreta-jwt>
JWT_EXPIRES_IN=7d
# URLs
FRONTEND_URL=http://localhost:3000
API_URL=http://localhost:4000
# E-mail (SendGrid, Mailgun, etc)
EMAIL_PROVIDER_API_KEY=<sua-chave>
EMAIL_FROM=no-reply@salesengineai.com
๐ Arquitetura do Projeto
Monorepo com frontend/ (React + Tailwind + Vite + TS)
e backend/ (Node.js + Express + MongoDB + Mongoose + TS).
Padrรฃo MVC no servidor, Atomic Design na UI.
Component Library customizada em src/components/ui.
Storybook para documentaรงรฃo de componentes (em breve).
GitHub Actions para lint, build, test e deploy automรกtico.
๐๏ธ Estrutura de Pastas
bash
Copiar
frontend/
โโโ .vercel/
โโโ dist/
โโโ node_modules/
โโโ public/
โ โโโ ... (outros arquivos pรบblicos)
โโโ src/
โ โโโ components/
โ โ โโโ layout/
โ โ โ โโโ Logo.tsx
โ โ โ โโโ MainLayout.tsx
โ โ โ โโโ Navbar.tsx
โ โ โ โโโ Sidebar.tsx
โ โ โ โโโ SidebarProvider.tsx
โ โ โโโ ui/
โ โ โโโ accordion.tsx
โ โ โโโ alert-dialog.tsx
โ โ โโโ alert.tsx
โ โ โโโ aspect-ratio.tsx
โ โ โโโ avatar.tsx
โ โ โโโ badge.tsx
โ โ โโโ breadcrumb.tsx
โ โ โโโ button.tsx
โ โ โโโ calendar.tsx
โ โ โโโ card.tsx
โ โ โโโ carousel.tsx
โ โ โโโ chart.tsx
โ โ โโโ checkbox.tsx
โ โ โโโ collapsible.tsx
โ โ โโโ command.tsx
โ โ โโโ context-menu.tsx
โ โ โโโ dialog.tsx
โ โ โโโ drawer.tsx
โ โ โโโ dropdown-menu.tsx
โ โ โโโ form.tsx
โ โ โโโ hover-card.tsx
โ โ โโโ input-otp.tsx
โ โ โโโ input.tsx
โ โ โโโ label.tsx
โ โ โโโ menubar.tsx
โ โ โโโ navigation-menu.tsx
โ โ โโโ pagination.tsx
โ โ โโโ radio-group.tsx
โ โ โโโ resizable.tsx
โ โ โโโ scroll-area.tsx
โ โ โโโ select.tsx
โ โ โโโ separator.tsx
โ โ โโโ sheet.tsx
โ โ โโโ sidebar.tsx
โ โ โโโ skeleton.tsx
โ โ โโโ slider.tsx
โ โ โโโ sonner.tsx
โ โ โโโ switch.tsx
โ โ โโโ table.tsx
โ โ โโโ tabs.tsx
โ โ โโโ textarea.tsx
โ โ โโโ toast.tsx
โ โ โโโ toaster.tsx
โ โ โโโ toggle-group.tsx
โ โ โโโ toggle.tsx
โ โ โโโ tooltip.tsx
โ โ โโโ use-toast.ts
โ โโโ hooks/
โ โ โโโ use-mobile.ts
โ โ โโโ use-toast.ts
โ โโโ lib/
โ โ โโโ utils.ts
โ โโโ pages/
โ โ โโโ Analytics.tsx
โ โ โโโ Campaigns.tsx
โ โ โโโ CRM.tsx
โ โ โโโ Dashboard.tsx
โ โ โโโ EmailMarketing.tsx
โ โ โโโ Index.tsx
โ โ โโโ LandingPage.tsx
โ โ โโโ Leads.tsx
โ โ โโโ Login.tsx
โ โ โโโ Messages.tsx
โ โ โโโ NotFound.tsx
โ โ โโโ Reports.tsx
โ โ โโโ SalesPipeline.tsx
โ โ โโโ Settings.tsx
โ โ โโโ SocialMedia.tsx
โ โโโ App.css
โ โโโ App.tsx
โ โโโ index.css
โ โโโ main.tsx
โ โโโ router/
โ โ โโโ index.tsx
โ โโโ vite-env.d.ts
โ โโโ ... (outros arquivos)
โโโ .gitignore
โโโ bun.lockb
โโโ components.json
โโโ eslint.config.js
โโโ index.html
โโโ package-lock.json
โโโ package.json
โโโ postcss.config.js
โโโ README.md
โโโ tailwind.config.ts
โโโ tsconfig.app.json
โโโ tsconfig.json
โโโ tsconfig.node.json
โโโ vite.config.ts
## BACKEND
backend/
โโโ api-gateway/
โ โโโ __init__.py
โ โโโ main.py
โ โโโ routers/
โ โ โโโ __init__.py
โ โ โโโ auth.py
โ โ โโโ users.py
โ โ โโโ data_connections.py
โ โ โโโ insights.py
โ โ โโโ reports.py
โ โ โโโ alerts.py
โ โโโ middleware/
โ โ โโโ __init__.py
โ โ โโโ auth_middleware.py
โ โ โโโ logging_middleware.py
โ โโโ config.py
โ โโโ requirements.txt
โ โโโ Dockerfile
โโโ auth-service/
โ โโโ __init__.py
โ โโโ main.py
โ โโโ models/
โ โ โโโ __init__.py
โ โ โโโ user.py
โ โ โโโ subscription.py
โ โโโ schemas/
โ โ โโโ __init__.py
โ โ โโโ user_schema.py
โ โ โโโ auth_schema.py
โ โโโ controllers/
โ โ โโโ __init__.py
โ โ โโโ auth_controller.py
โ โ โโโ user_controller.py
โ โโโ database.py
โ โโโ config.py
โ โโโ requirements.txt
โ โโโ Dockerfile
โโโ data-connection-service/
โ โโโ __init__.py
โ โโโ main.py
โ โโโ connectors/
โ โ โโโ __init__.py
โ โ โโโ google_analytics_connector.py
โ โ โโโ facebook_ads_connector.py
โ โ โโโ google_ads_connector.py
โ โ โโโ search_console_connector.py
โ โโโ models/
โ โ โโโ __init__.py
โ โ โโโ connection.py
โ โ โโโ data_source.py
โ โโโ schemas/
โ โ โโโ __init__.py
โ โ โโโ connection_schema.py
โ โโโ controllers/
โ โ โโโ __init__.py
โ โ โโโ connection_controller.py
โ โ โโโ data_collection_controller.py
โ โโโ database.py
โ โโโ config.py
โ โโโ requirements.txt
โ โโโ Dockerfile
โโโ data-processing-service/
โ โโโ __init__.py
โ โโโ main.py
โ โโโ pipelines/
โ โ โโโ __init__.py
โ โ โโโ process_raw_data.py
โ โ โโโ calculate_kpis.py
โ โโโ config.py
โ โโโ requirements.txt
โ โโโ Dockerfile
โโโ data-storage-service/
โ โโโ __init__.py
โ โโโ main.py
โ โโโ data_lake/
โ โ โโโ __init__.py
โ โ โโโ s3_config.py
โ โโโ nosql_db/
โ โ โโโ __init__.py
โ โ โโโ cassandra_config.py
โ โ โโโ mongo_config.py
โ โโโ data_warehouse/
โ โ โโโ __init__.py
โ โ โโโ redshift_config.py
โ โโโ requirements.txt
โ โโโ Dockerfile
โโโ insights-api-service/
โ โโโ __init__.py
โ โโโ main.py
โ โโโ routers/
โ โ โโโ __init__.py
โ โ โโโ performance_insights.py
โ โ โโโ optimization_insights.py
โ โ โโโ prediction_insights.py
โ โโโ schemas/
โ โ โโโ __init__.py
โ โ โโโ insight_schema.py
โ โโโ controllers/
โ โ โโโ __init__.py
โ โ โโโ insight_controller.py
โ โโโ config.py
โ โโโ requirements.txt
โ โโโ Dockerfile
โโโ ai-ml-service/
โ โโโ __init__.py
โ โโโ main.py
โ โโโ models/
โ โ โโโ __init__.py
โ โ โโโ prediction_model.pkl
โ โ โโโ segmentation_model.pkl
โ โโโ algorithms/
โ โ โโโ __init__.py
โ โ โโโ prediction_algorithms.py
โ โ โโโ segmentation_algorithms.py
โ โ โโโ nlp_algorithms.py
โ โโโ data_access/
โ โ โโโ __init__.py
โ โ โโโ data_lake_access.py
โ โ โโโ data_warehouse_access.py
โ โโโ model_management/
โ โ โโโ __init__.py
โ โ โโโ model_trainer.py
โ โ โโโ model_registry.py
โ โโโ config.py
โ โโโ requirements.txt
โ โโโ Dockerfile
โโโ alerts-service/
โ โโโ __init__.py
โ โโโ main.py
โ โโโ rules/
โ โ โโโ __init__.py
โ โ โโโ performance_rules.py
โ โโโ dispatchers/
โ โ โโโ __init__.py
โ โ โโโ email_dispatcher.py
โ โ โโโ slack_dispatcher.py
โ โโโ config.py
โ โโโ requirements.txt
โ โโโ Dockerfile
โโโ reporting-service/
โ โโโ __init__.py
โ โโโ main.py
โ โโโ generators/
โ โ โโโ __init__.py
โ โ โโโ performance_report_generator.py
โ โ โโโ custom_report_generator.py
โ โโโ templates/
โ โ โโโ __init__.py
โ โ โโโ performance_report_template.html
โ โโโ config.py
โ โโโ requirements.txt
โ โโโ Dockerfile
โโโ caching-service/
โ โโโ __init__.py
โ โโโ redis_config.py
โ โโโ memcached_config.py
โโโ common/
โ โโโ __init__.py
โ โโโ models.py
โ โโโ utils.py
โโโ docker-compose.yml
โโโ message-queue-service/
โ โโโ __init__.py
โ โโโ kafka_config.py
โ โโโ rabbitmq_config.py
โโโ monitoring-logging-service/
โโโ __init__.py
โโโ logging_config.py
โโโ metrics_config.py
โโโ prometheus_config.py
๐ API Reference (Endpoints Principais)
Mรฉtodo Rota Descriรงรฃo
GET /api/auth/me Retorna dados do usuรกrio autenticado
POST /api/auth/login Login (e-mail + senha)
POST /api/auth/register Cadastro de novo usuรกrio
GET /api/leads Lista de leads
POST /api/leads Cria um novo lead
PATCH /api/leads/:id Atualiza dados do lead
GET /api/deals Lista de negรณcios (pipeline)
POST /api/deals Cria novo negรณcio
GET /api/campaigns Campanhas de marketing
POST /api/campaigns Cria nova campanha
GET /api/social/posts Posts agendados
POST /api/social/posts Agenda novo post
GET /api/settings/profile Configuraรงรตes de perfil do usuรกrio
PUT /api/settings/profile Atualiza perfil
โฆ โฆ โฆ
Para mais detalhes, veja API Docs.
๐งช Testes & Qualidade
Frontend: Jest + React Testing Library
Backend: Jest + Supertest
Linting: ESLint + Prettier
Commit Hooks: Husky + Commitlint
Executar testes
bash
Copiar
# Frontend
cd frontend && npm run test
# Backend
cd backend && npm run test
๐ Deployment & CI/CD
CI/CD: GitHub Actions
lint, build, test em cada PR
Deploy automรกtico no Vercel (frontend)
Deploy automรกtico no Railway (backend)
Docker: Dockerfiles prontos para conteinerizaรงรฃo.
๐ Seguranรงa & Acessibilidade
Autenticaรงรฃo: JWT, OAuth2
Proteรงรตes: Helmet, Rate Limiting, CORS
Acessibilidade (WCAG 2.1):
Uso de roles ARIA
Contraste de cores otimizado
Navegaรงรฃo via teclado
Internacionalizaรงรฃo (i18n): suporte a multilรญnguas (prรณximo release)
๐ต Planos de Assinatura
Plano Recursos Preรงo
๐ Gratuito Dashboard bรกsico, 50 leads, 1 campanha ativa. $0/mรชs
โญ Essencial 2.000 leads, 5 campanhas, anรกlises bรกsicas. $29/mรชs
๐ Impulso (Popular) 10.000 leads, 20 campanhas, integraรงรตes CRM. $99/mรชs
๐ Mรกxima Performance Leads ilimitados, IA de marketing, APIs customizadas. $299/mรชs
๐ Roadmap Futuro
๐ฅ App Mobile (React Native)
๐ง IA de previsรฃo de leads โquentesโ
๐ฏ Automaรงรตes de campanhas com IA generativa
๐ Traduรงรตes multilรญngues (i18n)
๐ Dashboards customizรกveis por usuรกrio
๐ Storybook e Design System completo
๐ค Contribuindo
Fork este repositรณrio
Crie uma branch (git checkout -b feature/MinhaFeature)
Commit suas mudanรงas (git commit -m "feat: minha nova funcionalidade")
Push (git push origin feature/MinhaFeature)
Abra um Pull Request
Leia nosso Guia de Contribuiรงรฃo para mais detalhes sobre padrรตes de cรณdigo, Git Flow e templates de PR/Issue.
๐ Licenรงa
<p align="center">
Este projeto estรก sob a licenรงa <strong>MIT</strong> โ use ร vontade!
</p>
<h1 align="center">๐ SalesEngineAI-Pro: O motor definitivo de crescimento para sua empresa! ๐</h1>
# Welcome to your Lovable project
## Project info
**URL**: https://lovable.dev/projects/c50c253b-e95c-4330-be1f-c90b90ea0f96
## How can I edit this code?
There are several ways of editing your application.
**Use Lovable**
Simply visit the [Lovable Project](https://lovable.dev/projects/c50c253b-e95c-4330-be1f-c90b90ea0f96) and start prompting.
Changes made via Lovable will be committed automatically to this repo.
**Use your preferred IDE**
If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in Lovable.
The only requirement is having Node.js & npm installed - [install with nvm](https://github.com/nvm-sh/nvm#installing-and-updating)
Follow these steps:
```sh
# Step 1: Clone the repository using the project's Git URL.
git clone <YOUR_GIT_URL>
# Step 2: Navigate to the project directory.
cd <YOUR_PROJECT_NAME>
# Step 3: Install the necessary dependencies.
npm i
# Step 4: Start the development server with auto-reloading and an instant preview.
npm run dev
Edit a file directly in GitHub
- Navigate to the desired file(s).
- Click the "Edit" button (pencil icon) at the top right of the file view.
- Make your changes and commit the changes.
Use GitHub Codespaces
- Navigate to the main page of your repository.
- Click on the "Code" button (green button) near the top right.
- Select the "Codespaces" tab.
- Click on "New codespace" to launch a new Codespace environment.
- Edit files directly within the Codespace and commit and push your changes once you're done.
This project is built with:
- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS
Simply open Lovable and click on Share -> Publish.
Yes, you can!
To connect a domain, navigate to Project > Settings > Domains and click Connect Domain.
Read more here: Setting up a custom domain