Backend for the dashboard, critical data as well as user logs are maintained here.
-
BC atm just stores the DID and serves VC upon successful DID Issues -
Forward PII sent from dashboard to the BCUse a very basic DB to store PII hashes that were used to generate the DID
-
Forward VC requests to the BC
Supabase edge functions are used to ensure that the dashboard can only request/send data based on the required function being called.
Nuking edge functions, not worth the time investment
- Reason:
- Use of 3rd party cdn libs does not sit right w me
- Setting up a fastapi server to handle backend tasks, this should not have been this hard
- Keeping Supabase as a docker container still, just no more edge functions
Do not use versions above 3.12.8
git clone http://github.com/blackgateproject/backend
# Using a venv is recommended, but not required
# python -m venv .venv
pip install -r requirements.txt
# pip install fastapi[standard] supabase didkit web3 sqlmodel pydantic_settings eth_keys eth_utils requests
fastapi run dev
winget install Docker.DockerDesktop
- For windows, most likely WSL2, enable the following in Docker Desktop>General
- "Expose daemon on tcp://localhost:2375 without TLS"
- "Add the *.docker.internal names to the host's /etc/hosts file"
cd supabase/supabase
npm i
npx supabase start
Grab the Anon token and check if it matches in the dashboard config, to see the startup page again run
npx supabase status
docker pull ipfs/kubo