Skip to content

A NextJS template inspired by CosmosContracts/starter-kit

Notifications You must be signed in to change notification settings

cryptechdev/web-template

Repository files navigation

Getting Started

First, bootstrap your new project with this example using create-next-app:

npx create-next-app -e https://github.com/cryptechdev/web-template my-cosmwasm-dapp
# or
yarn create next-app -e https://github.com/cryptechdev/web-template my-cosmwasm-dapp

Next, setup your .env file by copying the example:

cd my-cosmwasm-dapp
cp .env.example .env.local

If your new project doesn't intend to use a wallet, the only environment variables you need to set are NEXT_PUBLIC_SITE_TITLE and NEXT_PUBLIC_SITE_ICON_URL.

If you want a Wallet integration, set the NEXT_PUBLIC_USE_WALLET to true.

By default, Keplr will be used. This can be modified by setting the NEXT_PUBLIC_WALLET env to the desired wallet.
Currently supported wallets:

  • keplr
  • terra

Then, run the development server:

npm run dev
# or
yarn dev

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

You can start editing the page by modifying index.tsx. The page auto-updates as you edit the file.

Editing the top navigation

To customize the top navigation, edit components/MainMenu.tsx.
This component is loaded in both components/Nav.tsx and components/WalletNav.tsx.

Learn More

To learn more about Next.js, CosmJS, Keplr, and Tailwind CSS - take a look at the following resources:

About

A NextJS template inspired by CosmosContracts/starter-kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published