Giter Club home page Giter Club logo

app's Introduction

CityDAO

Getting started

1. Install dependencies

yarn

2. Start local Ethereum chain

Note: start this in a separate terminal window. This process needs to run continuously

yarn chain

3. Deploy contract and create plots

Before deploying the contract, make sure that env variables point the script to deploy on localhost.

export REACT_APP_NETWORK="localhost"

Deploy the contract to the local blockchain

yarn deploy

Next, we will create the actual plots. the following command will create up to 1000 plots. For development purposes, it's recommended that you exit out of the process (ctrl+c) after 10 or so plots. You won't need all 1000 plots for local development

yarn create-plots

4. Run the web app

First, create .env in the packages/web directory with the values from the Notion documentation

Then start the web app locally on http://localhost:3000

yarn start

5. Make Metamask point at the hardhat chain

Metamask points to localhost:8545's 1337 chain ID as default. This needs to be changed to the chain ID hard hat uses, 31337. Update the chain ID at: Metamask > Settings > Networks > Localhost > Chain ID

app's People

Contributors

aunyks avatar davidfant avatar gregfromstl avatar lonisss avatar odyslam avatar scottfits avatar ssdsr avatar trkaplan avatar valtterikodisto 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.