π§Ύ NHPC Invoice Starter Kit
A full-stack invoice management starter kit built with TypeScript, featuring both backend and frontend implementations. Perfect for customizing your own billing system.
π¦ Project Structure
nhpc-invoice-starterkit-main βββ backend/ # API + server logic (Prisma, Hono) βββ client/ # Frontend application (React, Next.js, etc.) βββ README.md # Documentation βββ .env.example # Example environment variables βββ package.json # Root project config (optional)
π Features
Full-stack invoice management solution
Backend API with TypeScript support
Database integration using Prisma ORM
Frontend UI for managing clients, products, and invoices
Starter workflows to customize your billing system
π§ Tech Stack
Layer Technology Backend TypeScript, Node.js, Prisma, Hono Frontend React / TypeScript (Next.js or similar) Database Prisma-supported DB (SQLite, PostgreSQL, etc.) Tooling tsx for running TypeScript directly π§ Requirements Ensure you have installed: Node.js (recommended: v20 LTS) npm (Node Package Manager) A database (SQLite by default, or configure PostgreSQL/MySQL/etc.) π οΈ Setup Instructions 1οΈβ£ Clone the Repository git clone https://github.com/your-repo/nhpc-invoice-starterkit.git cd nhpc-invoice-starterkit-main 2οΈβ£ Backend Setup cd backend npm install Create a .env file: cp .env.example .env Set your DATABASE_URL in .env. Generate Prisma Client: npx prisma generate Push schema to the database: npx prisma db push Start the backend: npm run dev 3οΈβ£ Frontend Setup cd ../client npm install npm run dev Visit: http://localhost:3000
π Scripts Backend Command Description npm run dev Run backend in development mode npx prisma generate Generate Prisma client npx prisma db push Push schema to DB Frontend Command Description npm run dev Run frontend in development π§Ύ Environment Variables Your .env should include at least:
DATABASE_URL="your_database_connection_string" PORT=8787
(Customize based on your project setup)
π‘ Contributing
Contributions are welcome! π
Fork the project
Create a feature branch
Commit your changes
Open a Pull Request
β¨ With this starter kit, you can quickly spin up a scalable invoice management system and adapt it to your business needs.