Skip to content

Jerga99/eth-market-course

Repository files navigation

This is a Next.js project. Full process and video lectures how to create the application can be found here: Solidity & Ethereum in React (Next JS): The Complete Guide

Overview

Marketplace has dependencies on multiple technologies.

  • Ganache - private Blockchain, to run application localy

To run the app

  1. run npm install to install dependencies

  2. Then migrate a contract to Ganache, contract can be found in the contracts folder. It's called CourseMarketplace.sol

  • To migrate the contract run truffle migrate in the terminal while Ganache network is setup and running.

  • Do not forget to link trufle-config.js with Ganache, just go to config and click Add Project

  • keys.json must be created if you want to deploy to Ropsten, if not, just remove import of keys.json from trufle-config.js and also comment out ropsten configuration

  1. Now everything is setup and you can test out the app.
  • Run npm run dev in the terminal. App will run at localhost:3000