This is a template for a fullstack application using PocketBase and React. It also includes a devcontainer for easy development. For the best experience use the devcontainer.
-
(non-devcontainer) Install prerequisites: PocketBase, Node.js
- Install PocketBase: https://pocketbase.io/docs/
- Install Node.js: https://nodejs.org/en/download/
- Enable corepack:
corepack enable
-
pnpm install
in the root directory -
pnpm run dev
to start the development server- The frontend sample application will be running at http://localhost:5173
- PocketBase admin console be running at http://localhost:8090/_/
-
Login to PocketBase admin console and create an admin user
-
Create new user within the PocketBase admin console
-
Login to the frontend application with the created user
-
To login via the Google provider, you need to first create a Google OAuth2 client ID and secret.
- Create a new project in the Google Cloud Console: https://console.cloud.google.com/projectcreate
- Create OAuth2 credentials: https://console.cloud.google.com/apis/credentials
- Add the client ID and secret to the PocketBase admin console.
- Enable the Google provider in the PocketBase admin console.