Skip to content

BudyAI/cashflow

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Package manager

This repo uses pnpm (see packageManager in package.json).

Getting Started

Create your local env file and install dependencies:

pnpm env:create
pnpm install

pnpm env:create copies .env.example to .env (if missing) and sets NEXTAUTH_SECRET to a random value. If you prefer to edit by hand, you can cp .env.example .env and set NEXTAUTH_SECRET (for example with openssl rand -base64 32).

Database workflow

  • Default local mode uses SQLite (DB_PROVIDER=sqlite and DATABASE_URL=file:./dev.db)
  • pnpm dev auto-runs a local SQLite schema sync (prisma db push) before starting Next.js
  • Seed local data with:
pnpm seed
  • PostgreSQL is canonical for migrations and production:
    • author migrations with DATABASE_URL=... and run pnpm db:migrate:dev
    • deploy migrations in production with DATABASE_URL=... and run pnpm migrate:deploy
    • these scripts use a Postgres schema wrapper internally, while local runtime remains SQLite by default

Run the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors