The Smart Invoice dApp is a Next.js application that serves as the interface for the Smart Invoice protocol. It enables web3 freelancers to create and manage cryptocurrency invoices, securely hold funds in escrow, and resolve disputes through arbitration.
To set up the Smart Invoice dApp locally, follow these steps:
-
Clone the repository:
git clone https://github.com/SmartInvoiceXYZ/smart-invoice.git cd smart-invoice/packages/dapp -
Install the dependencies:
pnpm install
To start the development server, run:
pnpm devThis command starts the dApp on http://localhost:3000 and watches for file changes.
To build the application for production, run:
pnpm buildThis command generates an optimized build in the .next directory.
To start the dApp in production mode, first build it using the build command, and then run:
pnpm startThis will start the production server on http://localhost:3000.
The dApp includes a suite of tests to ensure its reliability. You can run the tests with the following commands:
-
Run all tests:
pnpm test -
Watch mode:
pnpm test:watch
To maintain code quality and consistency, the dApp includes linting and formatting tools:
-
Lint the codebase:
pnpm lint
-
Format the codebase:
pnpm format
Contributions are welcome! Please open an issue or submit a pull request with your improvements.