$ cd hardhat
Install node modules
$ yarn
Copy env file
$ cp .env.example .env
If you want to run local node on docker. please run this command.
$ docker-compose up
Otherwise, please run this command.
$ yarn localchain
You need to do this step only once, if you are already done this, skip to step4
Go to add network page
Add Localnetwork
Get localnetwork wallet privatekey from console in docker.
Import wallet with privatekey
As same as step2 You need to do this step only once, if you are already done this, skip to step4
...
LOCAL_PRIVATE_KEY=privatekey_you_got_from_console
...
You need to run this every time
$ cd hardhat
$ yarn deploy:local
you will get like this
forwarder address: 0xa513E6E4b8f...
mintNFT address: 0x2279B7A0a...
eventManager address: 0x8A791620dd626...
----------
For frontEnd
----------
NEXT_PUBLIC_FORWARDER_ADDRESS=0xa513E6E4b8f...
NEXT_PUBLIC_CONTRACT_MINT_NFT_MANAGER=0x2279B7A0a...
NEXT_PUBLIC_CONTRACT_EVENT_MANAGER=0x8A791620dd626...
This addresses change everytime you run deploy
NEXT_PUBLIC_CONTRACT_EVENT_MANAGER=0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512
NEXT_PUBLIC_CONTRACT_MINT_NFT_MANAGER=0x5FbDB2315678afecb367f032d93F642f64180aa3
If you don't build frontend development environment, please follow this doc (Frontend)