dApp Starter Kit is flexible production grade Web3 boilerplate with Next.js, React, Material Design and Typescript

Overview

dApp Starter Kit

dApp Starter Kit is flexible production grade Web3 boilerplate with Next.js 12, React.js, Material-UI, Typescript and web3-react (beta).

Includes wallet connection for most popular javascript EIP-1193 providers:

dApp Starter Kit is meant:

  • to be used as boilerplate to quickly deploy new project
  • to be used as educational resource
  • to be flexible accomodating easy customization

Quick start

Running locally in development mode

  1. git clone https://github.com/eth-salt-lake/dao-app.git clones the dApp repository
  2. cd dao-app && git checkout main checks out the desired branch
  3. cp env.local.example .env.local prepares environment variables for development
  4. npm install installs dependencies
  5. npm run dev runs development server

That's it. The project should run on your local computer http://localhost:3000

Features

Guides

Simple instructions on how to customize your dApp project.

API Configuration

In development create in the root folder file .env.local, for production .env.production:

.env.local
.env.production

Contents:

APP_NAME=My dApp
ETHERSCAN_API_KEY=mykey
ETHERSCAN_API_ENDPOINT=https://api-testnet.polygonscan.com/api
INFURA_KEY=infura

APP_NAME

Custom app name

ETHERSCAN_API_KEY

To request information directly from etherscan (or etherscan like service) you need an API key. For example for etherscan.io go to: https://etherscan.io/myapikey and create one.

ETHERSCAN_API_ENDPOINT

Check the documentation for an endpoint here. Or if you'd like to connect to L2 chain like Polygon then check the endpoints here.

INFURA_KEY

Infura is a popular gateway to the ethereum (or ethereum like) nodes json-rpc. To get a key you need to create an account, login and create new project for which tyou can generate new keys. This enables your project to send and receive transactions from selected chain.

dApp Configuration

root
|_config.ts

Contents:

export const ETHERSCAN_URL = 'https://etherscan.io/';
export const NETWORK_COIN_SYMBOL = 'ETH';
export const DEFAULT_NETWORK_ID = 1; // check folder web/chain.ts for more network IDs
export const APP_NAME = "dApp Started Kit"
export const DEFAULT_APP_THEME = 'light'; // light, dark

ETHERSCAN_URL

Base URl from the transactions table to etherscan for more details.

NETWORK_COIN_SYMBOL

Display value for selected chains currency

APP_NAME

Custom app name.

DEFAULT_APP_THEME

light or dark.

DEFAULT_NETWORK_ID

The selected network dApp will communicate with.

Helper chain table:

Chain ID Network
1 Mainnet
3 Ropsten
4 Rinkeby
5 Goerli
10 Optimism
42 Kovan
56 BSC
137 Polygon
42161 Arbitrum One
43114 Avalanche
80001 Polygoin Mumbai

i18n

International

API Endpoints

Endpoint for getting users latest transactions.

|-- pages/api/transactions/[walletaddress].ts

Styling with Material Design

TDB (Where to modify it)


Building and deploying in production

If you wanted to run this site in production, you should install modules then build the site with npm run build and run it with npm run start:

npm install
npm run build
npm run start

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.

You might also like...
React Package Starter - a simple and slightly opinionated starter kit for developing and publishing React packages

React Package Starter This is a simple and slightly opinionated starter kit for developing and publishing React packages. It comes with a several pre-

Build a simple React / Web3 Dapp that replicates a small portion of the Uniswap v2 interface
Build a simple React / Web3 Dapp that replicates a small portion of the Uniswap v2 interface

Today we're going to build a simple React / Web3 Dapp that replicates a small portion of the Uniswap v2 interface - specifically, we are building the

Simple react web3 login for dapp
Simple react web3 login for dapp

Simple react web3 login for dapp

A simple Ethereum prediction market boilerplate build on top of Moralis Web3 SDK + Ethereum Boilerplate + Chainlink + OpenZeppelin. Happy BUIIDL!

ethereum-prediction-market-boilerplate This Project is a fork of Ethereum Boilerplate and demostrates how you can build your own Ethereum Prediction M

Basic Dapp showing how a React Dapp can connect to Cronos using MetaMask and Crypto.com Defi Wallet

cronos-dapp-basic Basic Dapp showing how a React Dapp can connect to Cronos using MetaMask and Crypto.com Defi Wallet You need to have node version 14

Dinos-nft-minting-dapp - A nice and easy way for linking an existing NFT smart contract to this minting dapp
Dinos-nft-minting-dapp - A nice and easy way for linking an existing NFT smart contract to this minting dapp

Welcome to HashLips 👄 All the code in these repos was created and explained by

Dapp-core-components - A library that holds the core logic of a dapp on the Elrond Network with an example to get started easily

A library that holds the core logic of a dapp on the Elrond Network with an example to get started easily

React + Redux starter kit / boilerplate with Babel, hot reloading, testing, linting and a working example app built in
React + Redux starter kit / boilerplate with Babel, hot reloading, testing, linting and a working example app built in

A comprehensive starter kit for rapid application development using React. Why Slingshot? One command to get started - Type npm start to start develop

Boilerplate in typescript with : Next / Next-Auth / Siwe / Web3modal / useDapp / next-i18n / reactMUI

Boilerplate in typescript with : Next / Next-Auth / Siwe / Web3modal / useDapp / next-i18n / reactMUI

Owner
ETH Salt Lake
ETH Salt Lake
Ts-next-chakra-motion-kit - Starter kit with Next.js, Chakra-UI, Framer-Motion in Typescript

Typescript Next.js Chakra-UI Framer-Motion Starter Kit Start with a powerful tem

Alexandre Gossard 39 Oct 14, 2022
Web3-nft-dapp-tutorial - A simple web3 app for minting NFTs

Web3 - Full Tutorial The demo contains a basic web3 app and smart contract for m

Fireship 198 Dec 10, 2022
Rollup + React + Babel + Prettier + Strict ESlint and Stylelint + Sass + VSCode + Playground app - Enterprise grade boilerplate

React package boilerplate by HackingBay Rollup + React 17 + Babel + Prettier + Strict ESlint and Stylelint + Sass + VSCode + Playground app - Enterpri

HackingBay 2 Jan 19, 2022
:point_up::running: Modern Relay Starter Kit - Integrated with Relay, GraphQL, Express, ES6/ES7, JSX, Webpack, Babel, Material Design Lite, and PostCSS

Relay Fullstack is a Relay scaffolding application that aims to help you get up and running a project without worrying about integrating tools. It com

Varayut Lerdkanlayanawat 991 Dec 30, 2022
Cross chain Dapp starter kit (ETH / Moralis)

ethereum-boilerplate Fully Typescript ready NextJS components for fast building dApps without running own backend ?? DEMO: https://eth-boilerplate.ver

Ujjwal Mairh 3 Dec 6, 2022
Create-dapp-solana-nextjs - Scaffolding for a Solana dapp using TS, Next.JS, Tailwinds CSS, and Daisy UI

Create Solana Dapp with Next.JS Want to start develop with Solana fetching NFTs

Thug DAO 295 Jan 6, 2023
Nextjs-ts-mui5-scss-storybook-starter - Next.js + TypeScript + Material UI v5 + Sass + Storybook starter

nextjs-ts-mui5-scss-storybook-starter ?? Next.js + TypeScript + Material UI v5 +

Muhammad Ridho Anshory 13 Oct 19, 2022
null 19 Nov 13, 2022
Web3-citizens-app - React application based on smart contract using web3 and MetaMask extention.

Citizens App (web3-react-redux) React application based on smart contract using web3 and MetaMask extention. Start the applicarion Recomend to install

Denys Voloshyn 3 Aug 25, 2022
A well-structured production-ready frontend boilerplate for React and Next.js

superplate-core-plugins This is the source repository for superplate's core plugins. Plugins UI Frameworks Tailwind CSS React Bootstrap Chakra UI Ant

Pankod 40 Dec 14, 2022