This is the backend for the Invoisio application, built with NestJS.
- Wallet-based authentication
- Invoice CRUD operations
- AI-powered invoice generation
- EVM (Base chain) payment initiation and status tracking
- Node.js 18+
- PostgreSQL
- pnpm (preferred) or npm
- An EVM wallet (MetaMask or Coinbase Wallet)
-
Create a
.envfile from.env.example:cp .env.example .env
-
Fill in the environment variables in the
.envfile.EVM_RPC_URL(e.g.,https://sepolia.base.org)EVM_CHAIN_ID(Base Sepolia:84532, Base mainnet:8453)
-
Install dependencies:
npm install
-
Generate Prisma client:
npx prisma generate
-
Run database migrations:
npx prisma migrate dev
# Development
npm run start:dev
# Production
npm run start:prodAPI documentation is available at /docs when the server is running.
# Unit tests
npm run test
# End-to-end tests
npm run test:e2e