GithubHelp home page GithubHelp logo

scaffold-eth / scaffold-eth-moonstarter Goto Github PK

View Code? Open in Web Editor NEW
1.0 8.0 2.0 7.92 MB

A scaffold-eth starter build with typescript, nextjs, chakra ui, eth-hooks

License: GNU General Public License v3.0

Shell 0.41% JavaScript 5.73% TypeScript 93.25% CSS 0.03% Solidity 0.47% HTML 0.12%

scaffold-eth-moonstarter's Introduction

scaffold-moonshot-starter

Typescript x NextJS x Chakra-UI scaffold-eth production ready starter kit.

Tech stack overview

We are using TypeScript with Next.js & Chakra UI on the front-end.

๐Ÿ“ Folder structure

.
โ”œโ”€โ”€ packages # Monorepo using yarn workspaces & lerna
โ”‚ โ”œโ”€โ”€ web # Landing page using NextJS, TypeScript, Chakra-UI
โ”‚ โ”œโ”€โ”€ dapp # Web3, decentralized app using NextJS, TypeScript, Chakra-UI and ethers.js
โ”‚ โ”œโ”€โ”€ ui # Theme/design system shared accross web & dapp folders
โ”‚ โ”œโ”€โ”€ hardhat # Your contracts, using Hardhat with Typechain and ethers v5
โ”‚ โ””โ”€โ”€ subgraph # A subgraph that gets generated on contract deploys
โ””โ”€โ”€ ... config ...

๐Ÿ„โ€โ™‚๏ธ Quick Start

Prerequisites

Setup env

In each package individually, create your .env files by copying the .example.env and fill in the empty values.

$ cd packages/[dapp, hardhat and schemas]
$ cp .example.env .env

Create API Key

Go to https://web3.storage and set the value of WEB3STORAGE_TOKEN with your web3.storage API key.

Clone the starter

$ git clone https://github.com/moonshotcollective/scaffold-moonshot-starter.git

install dependencies

$ cd scaffold-moonshot-starter && yarn install

๐Ÿ‘ทโ€ Build your contracts!

run hardhat locally, get some faucet and ๐Ÿ›ฐ deploy your contract Create a mnemonic.secret file or set one of your dev private key as the DEPLOYER_PRIVATE_KEY environment variables in packages/hardhat/.env

$ cd packages/hardhat
$ yarn chain
$ yarn faucet <YOUR_DEV_ADDRESS>

Deploying on hardhat localhost
$ yarn deploy --network localhost

Deploying on mumbai
$ yarn deploy --network mumbai

Deploying on an other testnet (make sure to edit the hardhat.config.js first)
$ yarn deploy --network mytestnet

Testnet Faucets

Dev Preview

Build the ui theme:

$ cd packages/ui
$ yarn build

Build in local

$ cd packages/hardhat-ts
$ yarn chain

Open a new terminal

$ yarn deploy

Start the ๐Ÿ“ฑ dApp:

$ cd packages/dapp
$ yarn dev

Start the ๐Ÿ“ฑ landing page:

(Optional, doesn't need anything else to run)

$ cd packages/web
$ yarn dev

scaffold-eth-moonstarter's People

Contributors

aeither avatar cali93 avatar qedk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scaffold-eth-moonstarter's Issues

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.