Marketplace has dependencies on multiple technologies.
-
run
npm install
to install dependencies -
Then install the frontend dependencies by changing your directory
cd frontend
and then runnpm install
-
In the root folder of the application rename
.env.example
file to.env
file and update the contents -
In the frontend folder of the application rename
.env.development.local.example
file to.env.development.local
and update the contents- (your api pinata key has to allow
pinFileToIPFS
andpinJSONToIPFS
rules)
- (your api pinata key has to allow
-
Then migrate a contract to Ganache, contract can be found in the
truffle/contracts
folder. It's calledNftMarket.sol
-
To migrate the contract change your directory by using this command
cd truffle
then runtruffle compile
(for the first time) then runtruffle migrate
in the terminal while Ganache network is setup and running. -
Do not forget to link
trufle-config.js
fromtruffle
folder with Ganache, just go toconfig
and clickAdd Project
-
keys.json
must be created if you want to deploy to Ropsten, if not, just remove import ofkeys.json
fromtrufle-config.js
and also comment outropsten
configuration
-
- Now everything is setup and you can test out the app.
- Run
npm run dev
from root directory in the terminal. App will run atlocalhost:3000