-
Clone this repository
-
Run
pnpm install
-
As usual, you need to get Prisma configured.
-
Get your PPg URL and put it in
.env
. -
Migrate your database against the schema.
Go to rules.ts
and define your rules.
Run pnpm prisma rules deploy ...
to deploy your rules.
To make things simpler, we've created an npm script to deploy the rules.
pnpm rules:deploy
Check out your
package.json
to see how it's done.
On the first run it may take a bit of time, because the CLI is downloaded and cached.
Subsequent runs will be faster, and will only redownload if a new version is available.
The previous step will return a JWT token, that we'll call <publicKey>
.
Go to App.tsx
and replace <publicKey>
with the token you received.
Run pnpm dev
to execute your app and start sending queries.