Code Monkey home page Code Monkey logo

creativemarketplace-chainhack-hackathon's Introduction

CreativeMarketplace - Chainhack(Hackathon)

Git method

git clone https://github.com/fiore/CreativeMarketplace-Chainhack-Hackathon
cd CreativeMarketplace-Chainhack-Hackathon

npm install

Prerequisites

# Install Truffle if not installed
npm install -g truffle

# Install Ganache if not installed
https://truffleframework.com/ganache

# Install MetaMask if not installed
https://metamask.io

Configuration

cd CreativeMarketplace-Chainhack-Hackathon

# Migrate the Smart Contracts
truffle migrate

# If problems
truffle migrate --reset

# Run the server
npm run dev

Set Local TestNet

Copy the account(s) private key

And import it in MetaMask

Troubleshooting

If you restart Ganache after you have done some transactions, you may have occured in this console error, with a rejected Transaction

Error: Invalid JSON RPC response: {"id":8,"jsonrpc":"2.0","error":{"code":-32603}}
at Object.InvalidResponse (inpage.js:14308)

Error: Invalid JSON RPC response: {"id":9,"jsonrpc":"2.0","error":{"code":-32603}}
at Object.InvalidResponse (inpage.js:14308)

Error: Error: Error: [ethjs-rpc] rpc error with payload {"id":2465245573393,"jsonrpc":"2.0","params":["0xf88...253"],"method":"eth_sendRawTransaction"}
Error: the tx doesn't have the correct nonce. account has nonce of: 0 tx has nonce of: 5

The solution is to reset the MetaMask account

And after run a new migration

cd CreativeMarketplace-Chainhack-Hackathon

truffle migrate --reset

# Run the server
npm run dev

creativemarketplace-chainhack-hackathon's People

Contributors

dependabot[bot] avatar fiore avatar

Stargazers

 avatar

Watchers

 avatar  avatar

creativemarketplace-chainhack-hackathon's Issues

ToDo List after Hackathon

At the hackathon time and knowledge were few . So a refactor is necessary.

  • Mock an ICO
  • Unit Test with Truffle
  • Refactor main Smart Contract, adding more functionalities

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.