Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cryptechdev/web-template

Open more actions menu

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

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.