Git Product home page Git Product logo

cityclash's Introduction

CityClash Game

CityClash is blockchain based browser game, we use ethereum network for deploying codes (smart contracts) and swarm network (a decentralized file system) for uploading images.

Requirements

  • Windows / Ubuntu
  • Build-essential packages
  • Node.js
  • Docker
  • MetaMask Installed Browser

Setting Up:

Step 1: Download the repostory using the command:

 Git Clone "https://github.com/kvmanas/CityClash"
 cd CityClash

Step 2: Install the dependecies using the command:

 npm Install

Step 3: Use the following command to run the Dapp: For Windows

 ./CityClash up

For Ubuntu

chmod +x ./CityClash.sh
./CityClash.sh up

Step 4: Enter Dapp Configuration

from command prompt

choose Network Type

? Select the Ethereum Network Type .. (Use arrow keys)
> Private Network
  Ropsten Network

Enter MetaMask Seed Phase

//domain hip magic total cart frozen umbrella next matrix march measure cousin
? Enter Your MetaMask Seed Phase..

Enter Infura Project ID ( only in Ropsten Network mode)

//default project ID  0e9a3e7c18094e3a87e13cb1991e4b57
? Enter Your Infura Project ID.. (0e9a3e7c18094e3a87e13cb1991e4b57)

Step 5: Go http://localhost/, to Interact with game. check video demonstration here

Step 6: Use the following command to Stop Dapp

For Windows

 ./CityClash down

For Ubuntu

./CityClash.sh down

Step 7: Use the following command to Reset Dapp Configuration

For Windows

 ./CityClash reset

For Ubuntu

./CityClash.sh reset

Optional Settings:

To Enter Truffle Container

docker exec -ti truffle /bin/bash

in Truffle Container

to run test case

truffle test ./test/test.js

to migrate contracts

truffle migrate --reset
//for ropsten network
truffle migrate --reset --network ropsten

cityclash's People

Contributors

kvmanas avatar keralablockchainacademy avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar Anoop Varghese 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.