Skip to content

A marketplace application based on blockchain where people can buy stuff that are posted by sellers.

Notifications You must be signed in to change notification settings

RISHIKESHAVAN/marketplace

Repository files navigation

Marketplace

A marketplace application based on blockchain where users can buy/sell products. The marketplace can be accessed here.

Files

Folder structure

Contracts

  • Migrations.sol - A smart contract that helps in migrating other smart contracts.
  • Marketplace.sol - Handles all the logic to buy and sell on the marketplace. This will also read from and write to the blockchain.

Migration Files

At their simplest, migrations are simply a set of managed deployment scripts and they are located inside the migrations directory. The migrations are run using the truffle migrate command.

The files must be numbered so that truffle knows the order in which the files should be run. Migration files should contain the details of the contracts that you want to migrate to the blockchain. Failing to configure them will result in an error when calling the < contract name >.deployed() function in truffle.

Config Files

  • truffle-config.js - Contains the network configuration of the local blockchain (Ganache) and locations of smart contracts

Commands

  • truffle compile - Checks the contracts for any errors and compiles them.
  • truffle migrate - Deploys the contracts to the blockchain. Ensure that the Ganache blockchain is running and the migration files are present inside migrations/.
  • truffle test - Runs all the tests.

Deployment Details

The contract has been deployed in the Sepolia Test Network and the deployment of the contract can be verified on https://sepolia.etherscan.io/.

About

A marketplace application based on blockchain where people can buy stuff that are posted by sellers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published