This is a fork of the archived elf-frontend repo for offboarding any funds currently held in the Element Protocol.
Visit Site: https://delvtech.github.io/element-frontend/
Clone the repo then install the dependencies:
npm ci
note: Running
npm ci
instead of justnpm i
ornpm install
will ensure that the package-lock.json isn't modified if you're using a different version of npm. See the npm-ci docs for more info.
Add the NEXT_PUBLIC_MAINNET_RPC_URL
to your .env to customize your RPC url.
To start the app in development mode, build it and then run the dev server:
npm run build:mainnet-app
npm run start:dev-mainnet-app
Open http://localhost:3000 to view it in the browser.
Building production NextJs can be done via:
npm run build:mainnet-app
Due to using NextJS 12, we must do a little post-processing to make the static build work on GitHub pages. This work is handled by a custom build and deploy script:
npm run deploy-ghpages
note: This will overwrite the build for local development. Make sure to re-run >
npm run build:mannet-app
after building and deploying to GH Pages.