Git Product home page Git Product logo

snft_marketplace_backend's Introduction

Before all that you must have to install nodejs and truffle suite. To install truffle. run npm install -g truffle

#backend

  1. run npm install
  2. contracts are under the contracts folder (.sol files)
  3. To compile all contracts run sudo truffle compile
  4. Once compiled, now your contracts are ready to deploy
  5. 2_deploy_contracts is under migrations

#Deployment 1. To deploy it on polygon testnet, we need test matic to made our transactions here you can get testmatic from their faucet Polygon Faucet. Go to metamask > add a network then add testnet account to get those testnet matic's. Remember to use same RPC URL as you are going to use same RPC URL on client side as well. eg. https://matic-mumbai.chainstacklabs.com If you have used this RPC to deploy your contracts then you must replace this RPC URL in client/src/config.js file 2. Once you have test matic, then replace the private key of that test matic account with the acctPrivateKey in truffle-config.js file.

const acctPrivateKey = '1ffd7c797c277a1fcbb68407ae89e50e46453f19291ee09535e8fb2e7ac999d2'; 3. You need to have account on infura where you have to select for polygon testnet. Replace that infuraUrl in truffle-config.js file. 4. Once that is done, now you can deploy your contract. 5. Run sudo truffle deploy --network mumbai_testnet. It will smoothly deploy your contracts if you have sufficient test matic. 6. Once deployed you will get contract addresses against all deployed contracts, you have to copy those and replace with the nftmarketaddress and nftaddress in config.js file in clients folder.

#Frontend 1. located in client folder 2. cd client && npm install 3. npm run dev 4. now server is running on localhost:3000

snft_marketplace_backend's People

Contributors

geoffmahugu avatar

Watchers

 avatar  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.