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
Make sure your Metamask is running on Rinkeby, and visit https://marketh.xyz
- Clone this repo
git clone https://github.com/willsputra/marketh.git
- Run
npm install
to install the required modules
npm install
- Run ganache-cli to start your blockchain on port 8545
ganache-cli
- Run truffle test to run the test
truffle test
- Run truffle migrate to compile and migrate the contract
truffle migrate --reset
- Go to the client/ directory
cd client
- Run
npm install
to install the required modules
npm install
- Run
npm run dev
to start the client onlocalhost:3000
npm run dev
- Make sure your MetaMask is running on the correct port (http://localhost/8545 for
ganache-cli
or http://localhost9545 fortruffle develop
), then go to localhost:3000 on your browser
- Go to Admin Tools and add an address as a store owner
- Go to Store, and login to MetaMask as the store owner. You should be able to see an 'Add Store' button
- Add a store
- Add an item
- Enjoy!