This message was deleted.
# permit-saas
s
This message was deleted.
a
Hi @Roberto Macaotela, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
p
Hey, thanks for reaching out ! It seems our team is a little busy right now, a human will be with you within the next hour or so. In the meantime, can I help you ?
a
Copy code
npm i -g @permitio/cli
(1)
Copy code
permit policy create ai
Copy code
docker run -it -p 7766:7000 --env PDP_DEBUG=True --env PDP_API_KEY=<YOUR_API_KEY> permitio/pdp-v2:latest
(2)
Copy code
npx create-next-app@latest my-next-app
Copy code
cd my-next-app
Copy code
npm install @casl/ability @casl/react permit-fe-sdk permitio
Copy code
npm install @mui/material @mui/icons-material @emotion/react @emotion/styled
Copy code
package example
import input
default allow = false
allow {
  input.user.role == "admin"
  input.resource.category == "sensitive"
}
(6)
To learn more, see the sources I considered: [[1] Introducing the New Permit.io CLI: A New Era of Access Control Developer Experience](https://www.permit.io/blog/introducing-the-new-permit-cli) [[2] Step-By-Step Tutorial: Frontend Authorization with Next.js and CASL](https://www.permit.io/blog/frontend-authorization-with-nextjs-and-casl-tutorial)