This is the frontend for HENKAKU Ticket. 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:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
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 or 31337 if you are testing locally with HardhatNEXT_PUBLIC_CONTRACT_HENKAKUV2_ADDRESS
andNEXT_PUBLIC_CONTRACT_TICKET_ADDRESS
: these are only used when the chain is set to Hardhat (deploy)IPFS_API_KEY
andIPFS_API_SECRET
: get your own keys at Pinata to be able to create Tickets 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
andNEXT_PUBLIC_JSONRPC_WS
: get your own at alchemy
Henkaku 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.