This repository hosts the code for the server for the WrdHom project.
npm installnpm run buildFollow the instructions in the wrdhom_contracts repository to generate the keys directory and config.json file. Then copy them at the top level of your directory for this repository.
- Create a Postgres database that follows the schema in the
/prisma/schema.prismafile. - Set the
DATABASE_URLvariable in your.envfile.
npm run service- Start a Redis server and indicate
HOSTandPORTin your.envfile. - You can start any number of workers in different machines and indicate their number in the
PARALLEL_NUMBER.envfile.
npm run workers- Set the
MAX_ATTEMPTSandINTERVALvariables in your.envfile, to define the behavior when waiting for a transaction to confirm.
npm run prover