mirror of
https://github.com/luxfhe/example-blind-auction.git
synced 2026-10-30 18:13:37 +00:00
1.1 KiB
1.1 KiB
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