Git Product home page Git Product logo

nft-ethereum-game's Introduction

Suicide Kings

Suicide Kings Logo

HackMoney 2020 Hackathon Project

Group Members: Alex Fisher, Wade Kimbrough, Kevin Vitale

Quickstart Instructions

Prerequisites/Versions I've used:

  • Ubuntu 18.04, Windows 10
  • VSCode 1.44.2 (w/ extensions: solidity 0.0.72, Solidity Contract Flattener 0.0.7, Solidity Visual Auditor 0.0.24)
  • Node v10.20.1
  • npm 6.14.5
  • truffle v5.1.24 (npm install -g truffle)
  • ganache-cli v6.9.1 (npm install -g ganache-cli)

To get the project running:

  1. Download git repo locally and optionally Open folder in Visual Studio

  2. Terminal #1 - Install project dependencies

npm install

  1. Terminal #1 - Run ganache-cli in deterministic mode on port 8545

ganache-cli -d

  1. Terminal #2 - Start truffle, compile/migrate the project to the blockchain

truffle console --network develop

truffle(develop)>migrate --reset

  1. Terminal #3 - Install dependencies and run the react front-end at http://localhost:3000

cd app

npm install

npm run start

Running on Local Blockchain Forked from Mainnet

  1. Start Ganache-cli (terminal 1):

ganache-cli -f https://mainnet.infura.io/v3/3b0206f022a6462cacf91dc79e2b9833 -m "myth like bonus scare over problem client lizard pioneer submit female collect" -i 999

  1. Connect on Truffle and deploy (terminal 2):

truffle console --network mainnetfork

migrate

  1. Start web app (terminal 3):

cd app

npm run start

  1. Configure Metamask:

Seed with the same mnemonic as you used in ganache-cli, and change network to use localhost:8545 and Network ID 999.

Running on Testnets/Infura

Create a secrets.json file in the project root (same level as truffle-config.js). It should contain a mnemonic (you can generate via ganache/ganache-cli) and infura API Key (sign-up for free at infura.io)

{
  "mnemonic": "iron skate call erode fly crunch spirit minute cloth advice horse smooth",
  "infuraApiKey": "3b0206f022a6462cacf91dc79e2b9833"
}

Then, be sure to start truffle using:

truffle console --network kovan

Also support for ropsten, but it has been very slow lately. Like, Bitcoin slow.

And, in your browser be sure to switch Metamask to Ropsten and seed it with the correct mnemonic (Logout and Restore).

nft-ethereum-game's People

Contributors

ljubisnikolic0 avatar

Watchers

 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.