Please follow the below steps to run this demo.
Configure the envrionment varaibles:
# PERMIT
PERMIT_IO_KEY=KKKKKKKKK
PERMIT_IO_URL=http://localhost:7766
# PVAULT
PVAULT_SERVICE_LICENSE=LLLLLLLLL
PVAULT_API_KEY=pvaultauth
PVAULT_BASE_PATH=http://localhost:8123
# PSQL
DATABASE_URL=localhost
Navigate to the Permit App and create an account. Run through the onboarding to learn how to work with Permit.
Make sure you create a policy like shown in the example below. Your policy needs an Admin
, a Friend
and a Stranger
role, with a card
resource.
The resource should have the actions: view-personal-info
, view-public-info
, view-public-ssn
& view-private-ssn
.
If you are struggling with this step, follow the Quickstart instructions.
Download the docker image for the PDP:
docker pull permitio/pdp-v2:latest
Now run the PDP with the command below in your terminal. Make sure to replace the API KEY with your own.
docker run -p 7766:7000 --env PDP_API_KEY=<YOUR_PERMIT_API_KEY> permitio/pdp
See the getting started guide.
./script/demo.sh
npm install
followed by npm run dev
Once the app starts, navigate to localhost:3000
⭐ Permit.io ⭐ Piiano.com ⭐