Skip to content

A demo app showing how Permit and Piiano can be used together to offer high data security.

Notifications You must be signed in to change notification settings

filipermit/piiano-x-permit

Repository files navigation

Launch the Application 🚀

Screenshot 2022-11-18 at 17 28 48

Please follow the below steps to run this demo.


1. Complete the onboarding with Permit.io

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

2. Complete the onboarding with Permit.io

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.

Screenshot 2022-12-06 at 11 19 32

Screenshot 2022-12-06 at 11 19 42

Screenshot 2022-12-06 at 11 19 50

If you are struggling with this step, follow the Quickstart instructions.

3. Run the Policy Decision Point (PDP)

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

4. Register for a free 30-days Piiano Vault license

See the getting started guide.

5. Initialize and populate the database and Vault

./script/demo.sh

6. Start the app

npm install followed by npm run dev

Once the app starts, navigate to localhost:3000

6. Enjoy the demo!

Alt Text


Still here? Star Permit on Github or visit Piiano!

Permit.ioPiiano.com

About

A demo app showing how Permit and Piiano can be used together to offer high data security.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published