Marketplace has dependencies on multiple technologies.
-
run
npm installto install dependencies -
Then install the frontend dependencies by changing your directory
cd frontendand then runnpm install -
In the root folder of the application rename
.env.examplefile to.envfile and update the contents -
In the frontend folder of the application rename
.env.development.local.examplefile to.env.development.localand update the contents- (your api pinata key has to allow
pinFileToIPFSandpinJSONToIPFSrules)
- (your api pinata key has to allow
-
Then migrate a contract to Ganache, contract can be found in the
truffle/contractsfolder. It's calledNftMarket.sol-
To migrate the contract change your directory by using this command
cd trufflethen runtruffle compile(for the first time) then runtruffle migratein the terminal while Ganache network is setup and running. -
Do not forget to link
trufle-config.jsfromtrufflefolder with Ganache, just go toconfigand clickAdd Project -
keys.jsonmust be created if you want to deploy to Ropsten, if not, just remove import ofkeys.jsonfromtrufle-config.jsand also comment outropstenconfiguration
-
- Now everything is setup and you can test out the app.
- Run
npm run devfrom root directory in the terminal. App will run atlocalhost:3000