Skip to content

flowerpowerdao/minting-page

Repository files navigation

FPDAO Minting Page

Setup

  • node 18.14.2 , npm 9.5.1
  • install dfx (sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)")
  • install Vessel
  • install Plug
  • clone the repository and run git submodule init and git submodule update. this pulls the submodules the project depends on
  • run npm install from root
  • create a set-deploy-env.zsh file in the root directory according to the following example and replace the WALLET_ADDRESS with your Plug wallet address
export WALLET_ADDRESS="8b61ff722d7e6321eb99bb607ab0cf323b3c64b43d6a13c245c8a4e197f7b38b"

Development

npm start will start local dev server, start dfx replica and deploy ledger and power-equalizer.

In Plug add a local network with following settings:

Network name = local

Host URL = http://127.0.0.1:4943

Ledger canister Id = ryjl3-tyaaa-aaaaa-aaaba-cai (check .dfx/local/canister_ids.json)

Then switch to the local network

You can change local NFT sale settings in power-equalizer/src/Env/lib.mo.

To update the banner and the logo change src/public/logo.png and src/public/banner.png. To update the collection, change src/collection.ts. If you want to use the frontend with a specific locally deployed collection, modify the path for localCanisterIds. Make sure you use the correct tag to display the preview, if wanted.