This is a starter template combining Astro, React, Shadcn UI (with Tailwind CSS), and PocketBase for rapid web application development.
- Bun (recommended)
- Node.js (alternative)
- ⚡ Astro framework
- 🎨 Shadcn UI components
- 💾 PocketBase v0.23.5 as backend (Please replace depending on your OS type)
- 🦾 TypeScript support for both frontend and backend
- 🚀 TailwindCSS for styling
- Scaffolding
npm create astro@latest my-astro-project -- --template syahmirafsan/astro-shadcn-pocketbase-starter
cd my-astro-project
- Install dependencies
bun install
Run development server with PocketBase:
bun run dev
This will start both the Astro development server and PocketBase.
Build for production:
bun run build
Preview production build:
bun run preview
Generate types from PocketBase database:
bun run typegen
dev
: Start Astro and PocketBase concurrentlybuild
: Build Astro projectpreview
: Preview production buildpb
: Start PocketBase servertypegen
: Generate TypeScript types from PocketBase DBserver
: To run server (optional)
Customize your project by modifying:
astro.config.mjs
tailwind.config.mjs
src/styles/globals.css
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request