The most basic implementation of OPENFORMAT using NextJS.
- Clone the repository:
git clone https://github.com/open-format/next-js-example.git
- go to the project root:
cd next-js-example
- Install the dependencies:
yarn install
# or
npm install
# or
pnpm install
# or
bun install
- Copy the environment variables:
cp .env.local.example .env.local
Variable | Description | Example Value |
---|---|---|
PRIVATE_KEY |
Private Key of the account that deployed the OPENFORMAT contract | 0xd52532cbc891b3af65c2c5be980d0f22c419d885 |
APPLICATION_ID |
APPLICATION ID generated in https://app.openformat.tech | 0xd52532cbc891b3af65c2c5be980d0f22c419d885 |
NEXT_PUBLIC_XP_TOKEN_ID |
XP TOKEN ID generated in https://app.openformat.techKey | 0x7bc4da84cd569a72a0b66eb8583c106b4f6b83d9 |
REWARD_TOKEN_ID |
REWARD TOKEN ID generated in https://app.openformat.techKey | 0x904ef31727ad22674f1750fe04e9a8042f09b123 |
- run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev