Files
2025-12-27 21:41:58 -08:00

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