Getting started
Hey there π PocketStarter is an easy-to-use boilerplate for PocketBase with Next.js. Installation takes just minutes and the template is ready for you to build your own software.
This guide will walk you through getting PocketStarter up and running.
Prerequisites
Before you begin, make sure you have the following installed:
- Node.js (version 18 or higher)
- pnpm (recommended package manager)
Installation
1. Clone the Repository
Clone the repository using the link provided in your purchase email:
git clone [REPOSITORY] # See purchase email for repo instructions
cd pocketstarter2. Install dependencies
Navigate to the frontend directory and install dependencies:
cd frontend
pnpm install3. Set up PocketBase
Download a fresh PocketBase instance from the official website and place it in the pocketbase folder.
Next, start the backend server:
cd ../pocketbase
./pocketbase serveThis will start PocketBase on http://localhost:8090
4. Configure Environment Variables
Copy the .env.local.example file to .env.local in the frontend folder:
# In the frontend directory
cp .env.local.example .env.localYou'll need to configure these environment variables with your specific values. See the Configuration page for more info.
5. π Start the development server
cd ../frontend
pnpm devCongratulations! π Your PocketStarter application is now running at http://localhost:3000

Project structure
pocketstarter/
βββ frontend/ # Next.js application
β βββ src/
β β βββ app/ # App router pages
β β βββ components/ # Reusable components
β β βββ config/ # App configuration
β β βββ lib/ # Utility functions
β β βββ types/ # TypeScript definitions
β βββ public/ # Static assets
βββ pocketbase/ # Backend database and API
β βββ pb_hooks/ # Custom hooks
β βββ pb_migrations/ # Database migrations
βββ content/ # Documentation contentNext steps
Once PocketStarter is running, make sure to complete the Configuration steps to set up environment variables and essential settings. Then, you're ready to start building your application!