Setup the archaeologists that the eaas service will use, along with your desired threshold.
From project root:
cd apps/eaas-api && cp .env.example .env
cp archaeologists.example.json archaeologists.json
nano .env
- Set the API environment variables.
nano archaeologists.json
, and:- Set
requiredArchaeologists
to the number of archaeologists you want to be present during resurrection (threshold) - Set
addresses
to an array of the addresses of your preferred archaeologists - Whenever you want to update your preferred archaeologists and threshold, you can do so by updating this file
- Set
cd ../eaas-interface && cp .env.example .env
CHAIN_ID
is the chain that the service will run on.
All env vars are required.
From project root:
docker compose up -d
cd apps/eaas-api
If this is the first time running the API docker container, or if the database has been updated or deleted:
npm run migrate:latest
npm run seed:dev
From interface directory (cd apps/eaas-client
):
npm run start
- Embalmer email from seeded data is:
[email protected]
- Embalmer password from seeded data is:
admin
- The service will be run on the network whose chain ID is specified in the API's
.env
file. To switch networks, updateCHAIN_ID
andPROVIDER_URL
in the API's.env
file, and then restart the API container.