Index server of Ronia market place.
-
Clone the project using
git clone https://gitlab.com/1gnftm/nft-market-server.git
command (or via SSH). -
Go to the project root directory and run
npm i
command. -
Create a file named
config/env/development.env
and add the following properties:
RONIA_NFT=
and RONIA_MARKET=
-
Clone the Ronia Core project and run a local node using
npx hardhat node
. -
compile the contracts in Ronia Core project using
npx hardhat compile
. -
Copy and paste generated abi jsons from Ronia Core
artifacts
directory to Ronia Serversrc/contracts/<contract-name>.json
. -
Depoly contracts from Core to local node using:
npx hardhat run --network localhost scripts/0-deploy.ts
-
Copy and Paste contract addresses to
.env
in Ronia Core andconfig/env/development.env
in Ronia Server. -
Install MongoDB server on your machine. It depends on your environment (Windows or Linux). MongoDB Default address has been added to
src/app.module.ts
. -
In case you need to run the Ronia Server Project, run
npm run start:dev
otherwise, you can just start Listening to contract events usingpm2 start listener.sh --watch
.
Download and install pm2
with npm install pm2 -g
.