Skip to content

Alann27/wpokt-frontend

 
 

Repository files navigation

wPOKT Bridge

A frontend application for bridging POKT between Pocket Network and Ethereum mainnet.

Configurations

Environment Variables

The env variables are stored in .env.local file. You can copy the relevant variables from .env.example file. The variables are as follows:

  • APP_PROJECT_ID: The Wallet Connect app ID key.
  • MONGODB_URI: The connection URI for Mongo DB.
  • MONGODB_DATABASE: The name of the database to use.
  • POKT_RPC_KEY: API key for Pocket Network RPC gateway.

Constants

These are public constant values that are chain dependent. They can be found in utils/constants.ts file. There are also POKT gateway configs found in datasource/config.js. It is hardcoded for Pocket mainnet and only used for those connecting to the dapp and bridging from their Ledger hardware wallet. None of the values in those files should be altered unless one of the chains is changed or doing testnet/local development.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

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!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

A NextJS application for the POKT-wPOKT bridge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.8%
  • JavaScript 12.2%