mirror of
https://github.com/luxfhe/example-blind-auction-v2.git
synced 2026-10-30 18:13:35 +00:00
- Update to unified FHE decryption API - Update dependencies to @luxfi/contracts
FHE Auction Demo UI
This code is based on the LuxFHE Nuxt 3 template.
It integrates the contracts that were compiled from LuxFHE hardhat template.
Setup
Make sure to install the dependencies:
pnpm install
Compile & Prepare Contracts
To deploy:
# from the base directory (not frontend)
pnpm compile
# start localluxfhe (if you don't have it running already)
pnpm localluxfhe:start
pnpm task:deploy
# this copies the contracts & deployment information to the frontend
pnpm updateContracts
Run Backend Server
We use a database to store the auction information. You can start the backend server on http://localhost:3001:
# from the base directory (not frontend)
cd backend
pnpm install
pnpm start
Development Server
Start the development server on http://localhost:3000:
pnpm run dev
Production
Build the application for production:
pnpm run build
Locally preview production build:
# pnpm
pnpm run preview