Skip to content

Commit

Permalink
readme fucker
Browse files Browse the repository at this point in the history
  • Loading branch information
mariansam committed Jun 3, 2023
1 parent 1127462 commit bb54686
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,16 @@ GJP Cup was so great that there is GJP Cup 2 now
2. Download PocketBase from https://pocketbase.io/docs/, extract it, put the binary to this directory (or somewhere else idc)
3. `./pocketbase serve` in one terminal
4. `npm run dev` in second terminal

# Good to know
## Custom `pocketbase-react`
We're using our own distribution of `pocketbase-react` (available at https://github.com/radeksoft/pocketbase-react/tree/radeksoft), installed in the `package.json` as a Github repo. The installation should still be as simple as `npm install`.

**Differences with upstream:**
- login with admin account
- working initialCollections (fetch & subscribe by itself)
- no React Native support (200 megs of node_modules less)

**Caveats:**
- importing by `import { ... } from 'pocketbase-react/src';` because we can't import the package (by it's `package.json`), but we're loading the source code directly
- React StrictMode is disabled, because `pocketbase-react` is not good at unsubscribing on component unmount (caused double entries on realtime updates)

0 comments on commit bb54686

Please sign in to comment.