Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Latest commit

 

History

History
49 lines (30 loc) · 2.33 KB

README.md

File metadata and controls

49 lines (30 loc) · 2.33 KB

henkaku-ticket-frontend

This is the frontend for HENKAKU Ticket. It is a Next.js project.

How to run the project locally

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.

Next.js resources

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!

Environment variables

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 Hardhat
  • NEXT_PUBLIC_CONTRACT_HENKAKUV2_ADDRESS and NEXT_PUBLIC_CONTRACT_TICKET_ADDRESS: these are only used when the chain is set to Hardhat (deploy)
  • IPFS_API_KEY and IPFS_API_SECRET: get your own keys at Pinata to be able to create Tickets from a locally served frontend
  • NEXT_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 one
  • NEXT_PUBLIC_JSONRPC_HTTP and NEXT_PUBLIC_JSONRPC_WS: get your own at alchemy

On collaborating

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.