First Next.js Project,
- Next.js 13
- Pocketbase.
- TypeScript
- Turbo Pack (Build Tool By vercel(company that maintains next.js))
This is a project bootstrapped with .
First, Project Setup
npx create-next-app@latest --ts my-first-app
cd my-first-app
Second,
-
Download Pocketbase from pocketbase.io
-
Navigate to the unzipped directory
cd pocketbase_0.7.9_darwin_arm64
-
Move its executable file to root directory of your project
-
Start Pocketbase:
./pocketbase serve
-
Open the Admin UI, create collection, and update security rules to allow read/write access.
Third, Run the development server:
-
If using Pocket Base SDK uncomment in notes/page.tsx and comment out the fetch api lines
npm install pocketbase
-
Edit package.json to use build tool Turbo Pack
"dev": "next dev --turbo",
-
Start Development Server
npm run dev
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.