Skip to content

willsputra/marketh

Repository files navigation

Marketh

Marketh is an online marketplace operating on the Ethereum blockchain. Live on Rinkeby at https://marketh.xyz

With Marketh:

  • Contract owner is able to assign store owners
  • Store owners are able to create stores
  • Store owners are able to list items on their stores
  • Users are able to buy items with ETH, and the store owners will then be able to withdraw their ETH balance

Built with Next.js, Truffle-Next Box, and styled-components


Running the live Rinkeby instance

Make sure your Metamask is running on Rinkeby, and visit https://marketh.xyz


Running a local dev server

Running the test and migration

  1. Clone this repo
git clone https://github.com/willsputra/marketh.git
  1. Run npm install to install the required modules
npm install
  1. Run ganache-cli to start your blockchain on port 8545
ganache-cli
  1. Run truffle test to run the test
truffle test
  1. Run truffle migrate to compile and migrate the contract
truffle migrate --reset

Running the client

  1. Go to the client/ directory
cd client
  1. Run npm install to install the required modules
npm install
  1. Run npm run dev to start the client on localhost:3000
npm run dev
  1. Make sure your MetaMask is running on the correct port (http://localhost/8545 for ganache-cli or http://localhost9545 for truffle develop), then go to localhost:3000 on your browser

Quickstart

  1. Go to Admin Tools and add an address as a store owner
  2. Go to Store, and login to MetaMask as the store owner. You should be able to see an 'Add Store' button
  3. Add a store
  4. Add an item
  5. Enjoy!

About

An online marketplace on the Ethereum blockchain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published