Skip to content

doobie-droid/Tryflok-nodeserver

Repository files navigation

Flok node server for signing nfts

Build Setup

Install dependencies

$ yarn install

Compile the bytecode for the smart contracts

$ yarn hardhat compile

run a local version of the ethereum blockchain with the command below

$ yarn localhosting

Copy environment variables

Copy and paste the environment variables in the example in your .env and replace the PRIVATE KEY
THERE WITH the private key from your test account on metamask

if you want to interact with a testnet

Open a new terminal and deploy your contract to your local ethereum chain with the command below

$ yarn deploy

Replace the token address and market address in your .env with the addresses printed on your terminal after running yarn deploy

Replace the main wallet private key in your .env with the private key of the first account listed after running yarn localhosting

Download and setup docker

Docker would be used to handle your kafka containers, ensure that your docker files are on saved on linux for linux containers and windows for windows container Setting up docker

Run to set docker up

docker-compose up

Run the command to set up the kafka consumer on Node Js, other commands you need are in the package.json

$ yarn start:consumer

the format for sample json responses are in the ./dataformat.js

About

this is a server for minting and buying nfts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published