Lattice
A workspace for your research.
Controle do tempo livre e progresso de estudos
Translation pending
ProductivityTypeScript · CSSGitHub @Guilherme-ViannaOnlineOwner 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 ↗Controle do que você faz no seu tempo livre (baseado na planilha "Horas Investidas na Vida") com barra de progresso para estudos de temas novos.
Next.js 16 (App Router, route handlers em src/app/api), React 19, Tailwind CSS v4, Drizzle ORM, Neon (Postgres), Zod.
pnpm install
cp .env.example .env.local # preencha DATABASE_URL
pnpm db:migrate
pnpm dev
Sem Neon? docker compose up -d sobe um Postgres em localhost:5433 (DATABASE_URL=postgres://postgres:postgres@localhost:5433/life_hours).
O app usa o driver HTTP do Neon quando o host termina em .neon.tech e node-postgres nos demais casos.
pnpm db:import "C:/caminho/Horas Investidas na Vida.xlsx"
Importa categorias, registros e rotinas. Pode rodar de novo sem duplicar. Registros com data futura (ex.: CLT gerado para o mês seguinte) são ignorados; use --include-future para trazê-los.
pnpm db:migrate apontando DATABASE_URL para o Neon.DATABASE_URL. O app não tem senha: qualquer pessoa com o link consegue ver e editar os dados.| Método | Rota | Descrição |
|---|---|---|
| GET / POST | /api/entries | Lista (from, to, categoryId, studyTopicId, q, limit) / cria registro |
| PUT / DELETE | /api/entries/:id | Atualiza / apaga registro |
| GET / POST | /api/categories | Lista com totais / cria |
| PUT / DELETE | /api/categories/:id | Atualiza / apaga (409 se tiver registros) |
| GET / POST | /api/topics | Temas de estudo com progresso / cria |
| GET / PUT / DELETE | /api/topics/:id | Detalhe / atualiza / apaga |
| GET / POST | /api/routines | Rotinas / cria |
| PUT / DELETE | /api/routines/:id | Atualiza / apaga |
| GET | /api/stats | Estatísticas do painel (period, includeFixed) |
| GET | /api/activities | Sugestões de atividades já usadas |
Erros de validação retornam 422 com fieldErrors.