Skip to content

dev-protocol/niwa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Niwa

Development

For local development please create a .env file using the dotenv file found in the root folder as a template

# this can be arbitrum-one, polygon-mainnet, or polygon-mumbai
VITE_L2_NETWORK=polygon-mumbai
VITE_INFURA_PROJECT_ID=
VITE_INFURA_BASE_ENDPOINT=
VITE_IS_ROOT= # boolean

Setting VITE_IS_ROOT to true will prompt the network select page. Otherwise, it will route to whatever VITE_L2_NETWORK you have setup with correct Infura details.

use OAuth YouTube Account

The following environment variables need to be set:

VITE_YOUTUBE_CLIENT_ID=XXX.apps.googleusercontent.com
VITE_YOUTUBE_AUTH_REDIRECT_URI=https://HOST:PORT/auth/youtube/callback

See also: https://developers.google.com/youtube/v3/getting-started

use OAuth Discord Account

The following environment variables need to be set:

VITE_DISCORD_CLIENT_ID=YOUR_CLIENT_ID
VITE_DISCORD_CLIENT_SECRET=YOUR_CLIENT_SECRET
VITE_DISCORD_AUTH_REDIRECT_URI=http://HOST:PORT/auth/discord/callback

See also: https://discord.com/developers/docs/topics/oauth2

Adding your dApp to the Apps Page

Create a PR with your dapp added in dapps.json file in the root directory.