Backend: - Adicionar métodos de contagem/agregação aos repositórios (UserRepository, OrganizationRepository, TaskRepository) - Implementar nova use case PublicStatsUseCase que retorna estatísticas públicas (usuários, organizações, tarefas completas, horas registradas) - Criar novo controller público GET /public/stats sem autenticação - Configurar CDI factory PublicStatsUseCaseConfig Frontend: - Criar nova landing page pública (LandingPage.tsx) com seções: * Hero com CTAs (Começar grátis / Ver demo) * 4 cards de funcionalidades principais (dashboard, produtividade, rastreamento, Kanban) * Seção "Como funciona" com 3 passos * Showcase visual do dashboard com leaderboard fake * Estatísticas reais da plataforma (consumidas do backend) * CTA final e footer - Criar serviço publicStatsService para consumir o endpoint público - Adicionar rota /landing na router - Design alinhado com o sistema de cores e tipografia existente (Plus Jakarta Sans, Tailwind v4) Stats reais são animadas ao fazer scroll (Framer Motion counter). |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .env.production | ||
| .gitignore | ||
| Caddyfile | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])