Coder Social home page Coder Social logo

nextjs-web3-js's Introduction

Next.js Web3 template

๐Ÿ—๏ธ Next.js + Material UI + dark mode + web3 starter template โšก

This is a starter boilerplate Ethereum dapp using Next.js and material UI with dark mode. There are many web3 template available but most of them depends of web3-react. I tried to use minimum dependencies possible.

Quick start

The first things you need to do is clone repo.

To compile and deploy contract

cd deploy
npm i
npm start

Run the client on base directory

yarn install
yarn run dev

Project Structure

โ”œโ”€โ”€ contracts          // All solidity files
โ”‚    โ”œโ”€โ”€ Example.sol
โ”œโ”€โ”€ deploy
โ”‚    โ”œโ”€โ”€ compile.js    // compiles contracts
โ”‚    โ”œโ”€โ”€ deploy.js     // deploy and get abi and bytecode
โ”‚    โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ pages              // All pages of nextjs
โ”‚    โ”œโ”€โ”€ _app.js
โ”‚    โ”œโ”€โ”€ _documesnt.js
โ”œโ”€โ”€ public             // contains static files
โ”‚    โ”œโ”€โ”€ img
โ”‚    โ”œโ”€โ”€ icons
โ”œโ”€โ”€ src
โ”‚    โ”œโ”€โ”€ contracts     // here we store abi and bytecodes of contracts
โ”‚    โ”œโ”€โ”€ components    // react components
โ”‚    โ”œโ”€โ”€ hooks         // web and imp hooks
โ”‚    โ”œโ”€โ”€ utils         // theme and other lib files
โ”œโ”€โ”€ .env
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md

nextjs-web3-js's People

Contributors

ismailkherbach avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.