This is a Next.js project integrated with PocketBase.
- Dockerized PocketBase server.
- Basic registration and login pages.
- Example of server actions.
- Techniques for both server-side and client-side rendering.
- Typed PocketBase client using pocketbase-typegen.
First, run the PocketBase using Docker compose:
docker compose up --detach
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
src/lib/pocketbase/middleware.ts
It is important to note that the project uses Next.js middleware to check authentication on the server side. Make sure to adjust the middleware to allow unrestricted access to specific pages as needed.