Skip to content

Server for WrdHom: the auditable social-media platform

License

Notifications You must be signed in to change notification settings

chrlyz/wrdhom_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server for WrdHom: the auditable social-media platform

This repository hosts the code for the server for the WrdHom project.

Install

npm install

Build

npm run build

Copy keys and config.json file

Follow the instructions in the wrdhom_contracts repository to generate the proper files and copy them into this one.

Start server to receive requests

  • 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 and W3S_SPACE variables in your .env file.
npm run service

Start workers to accept requests to generate proofs from prover

  • Start a Redis server and indicate HOST and PORT 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

Start prover to coordinate generation of proofs in parallel through workers

npm run prover

License

MIT

About

Server for WrdHom: the auditable social-media platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published