Setup de Desenvolvimento
Setup de Desenvolvimento
Seção intitulada “Setup de Desenvolvimento”Development setup must be reproducible and explicit
Seção intitulada “Development setup must be reproducible and explicit”Leci contribution flow depends on reproducible environment setup because database and migration behavior are central to product correctness.
Toolchain requirements
Seção intitulada “Toolchain requirements”Required baseline:
- Node.js
>=20 - npm
>=10 - PostgreSQL connection URL via
DATABASE_URL
Recommended command checks:
node -vnpm -vFirst-time setup workflow
Seção intitulada “First-time setup workflow”npm installcp .env.example .env# set DATABASE_URLnpx tsx scripts/migrate.tsnpm run lintnpm testnpm run devDaily developer loop
Seção intitulada “Daily developer loop”A standard daily loop should include:
- pull latest changes;
- reinstall only if lockfile changed;
- apply migrations;
- run lint/test;
- run app in dev mode.
Database-sensitive workflow guidance
Seção intitulada “Database-sensitive workflow guidance”When changing schema-related code:
- update Drizzle schema and/or SQL migrations intentionally;
- verify migration rerun behavior;
- document any non-idempotent assumptions.
Documentation update rule
Seção intitulada “Documentation update rule”Any change affecting commands, config, or feature behavior must update corresponding docs pages in the same branch.