URL: https://lovable.dev/projects/acd4e9cf-8db5-4a40-a87c-ae282d010ac4
There are several ways of editing your application.
Simply visit the Lovable Project and start prompting.
Changes made via Lovable will be committed automatically to this repo.
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
Follow these steps:
# 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- 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.
- 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
Create a .env file based on .env.example and provide values for the following keys:
SUPABASE_URLSUPABASE_ANON_KEYPOSTHOG_TOKENPOSTHOG_HOST(defaults tohttps://us.i.posthog.comif unset)
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
The repository includes a small Flask application under flask_app/ with an example
endpoint available at /home. To view it locally, generate the Tailwind CSS
stylesheet and start the Flask development server in separate terminals:
npx tailwindcss -i ./flask_app/static/input.css -o ./flask_app/static/styles.css --watch
FLASK_APP=flask_app/app.py flask runThe resulting flask_app/static/styles.css file is generated at runtime and is
ignored by Git, so it should not be committed.
src/features/— Organização por domínios/funcionalidades (ex: planning, data-visualization, analytics, etc.)- Cada feature pode conter:
components/,hooks/,services/,repositories/,utils/,types/
- Cada feature pode conter:
src/components/— Componentes globais e UI compartilhadasrc/hooks/— Hooks globais (os específicos de feature ficam em cada feature)src/lib/— Utilitários, cálculos e helpers globaissrc/domain/esrc/infrastructure/— (LEGADO) agora migrados para features
vite.config.tseeslint.config.jspermanecem na raiz para máxima compatibilidade- Outros arquivos de configuração podem ser centralizados em
.config/
- Usar
@/para importar a partir desrc/(ex:@/features/planning/components/calculator/Calculator)
- Testes devem ser colocados ao lado dos arquivos implementados (colocated tests)
- Novos domínios devem ser criados como features
- Refatorações futuras devem seguir este padrão
- O stylelint é configurado para rodar apenas nos arquivos fonte (ex: src/styles, src/components, etc).
- Arquivos de build/minificados (ex: dist/, build/) são ignorados pelo lint, conforme melhores práticas para projetos Tailwind.
- Erros de lint em dist/ não são relevantes, pois esses arquivos são gerados automaticamente e podem conter duplicatas, ordem "errada" de seletores, etc.
- O objetivo do lint é garantir qualidade e padrão no CSS escrito manualmente.
- Se rodar
npm run lint:style, o resultado reflete apenas o CSS fonte.