This repository hosts the code for the server for the WrdHom project.
npm install
npm run build
Follow the instructions in the wrdhom_contracts repository to generate the proper files and copy them into this one.
- Create a Postgres database that follows the schema in the
/prisma/schema.prisma
file. - Set the
DATABASE_URL
variable in your.env
file. - Create a web3.storage account.
- Set the
W3S_EMAIL
andW3S_SPACE variables
in your .env file.
npm run service
- Start a Redis server and indicate
HOST
andPORT
in your.env
file. - You can start any number of workers in different machines and indicate their number in the
PARALLEL_NUMBER
.env
file.
npm run workers
npm run prover