This is the frontend for HENKAKU Nengajo. It is a Next.js project.
First, install the dependencies:
yarn
Second, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the site.
For some features, you will need to provide environment variables to Next. Please see below.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Create a copy of .env.sample
, name it .env.local
, and replace the information as needed. Note that not all variables need to be populated.
NEXT_PUBLIC_CHAIN_ID
: use 137 for MATIC (Polygon), 80001 for the Mumbai testnet, or 1337 if you are testing locally with HardhatNEXT_PUBLIC_CONTRACT_HENKAKUV2_ADDRESS
and NEXT_PUBLIC_CONTRACT_NENGAJO_ADDRESS
: these are only used when the chain is set to Hardhat (deploy)NEXT_PUBLIC_IPFS_API_KEY
and NEXT_PUBLIC_IPFS_API_SECRET
: get your own keys at Pinata to be able to create Nengajos from a locally served frontendNEXT_PUBLIC_IPFS_API_ENDPOINT
: please use "https://api.pinata.cloud"NEXT_PUBLIC_IPFS_GATEWAY_BASEURL
: feel free to use a custom one if you have oneNEXT_PUBLIC_JSONRPC_HTTP
and NEXT_PUBLIC_JSONRPC_WS
: get your own at alchemyHenkaku is not a completely open community and, while this is an open source project, many communications about the project as well as the tokens to operate it are only shared among community members.
This site is hosted on Vercel, and preview sites are automatically created for each new pull request. However, if the PR comes from a forked repo, the preview deployment will need to be approved by a maintainer. Please wait for us to notice the PR or talk to us over Discord.
Check out our Next.js deployment documentation for more details.