Invoicer is a web application for creating and managing invoices Users can sign in create invoices track payments download invoices and send invoices by email
| Metric last 30 days | Count |
|---|---|
| Page views | 528 |
| Unique visitors | 310 |
- Create invoices with business details client details line items tax discount and notes
- View a list of invoices and invoice details
- Download invoices as PNG
- Send invoices as PDF by email
- Record payments and track balance due
- Add payment links
- Issue corrections and keep invoice history
- Dashboard for invoice overview
- Demo page for creating one invoice without signing in
| Layer | Technology |
|---|---|
| Framework | Next.js 16 App Router |
| UI | React 19 Tailwind CSS 4 |
| Authentication | Clerk |
| Database | PostgreSQL Neon |
| ORM | Prisma 7 |
| pdfkit | |
| nodemailer | |
| Language | TypeScript |
| Route | Description |
|---|---|
/ |
Landing page |
/demo |
Demo invoice page |
/sign-in |
Sign in page |
/sign-up |
Sign up page |
/dashboard |
Dashboard |
/invoices |
Invoice list |
/invoices/new |
Create invoice |
/invoices/[id] |
Invoice details |
npm installCreate a .env file in the project root
# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
CLERK_SECRET_KEY=sk_test_...
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL=/invoices/new
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL=/invoices/new
# Database
DATABASE_URL="postgresql://..."
# Gmail SMTP
GMAIL_USER=[email protected]
GMAIL_APP_PASSWORD=your-16-character-app-passwordnpm run db:migratenpm run dev| Command | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Generate Prisma Client and build |
npm run start |
Start production server |
npm run lint |
Run ESLint |
npm run db:generate |
Generate Prisma Client |
npm run db:migrate |
Run migrations |
npm run db:push |
Push schema to database |
npm run db:studio |
Open Prisma Studio |
Prisma models are defined in prisma/schema.prisma
- User Application user
- Business Business details and invoice settings
- Client Client details
- Invoice Invoice data status totals and payment information
- InvoiceItem Invoice line items
- Payment Payment records
- InvoiceActivity Invoice activity history
- InvoiceRevision Invoice revision history
The project can be deployed on Vercel
- Build command
npm run build - Install command
npm install - Add required environment variables before deploying
- Generated Prisma Client is in
app/generated/prismaand is gitignored - Run
npm run db:generateafter changingprisma/schema.prisma - Invoice emails are sent using the configured Gmail account