A modern, full-stack boilerplate combining SvelteKit with PocketBase for rapid application development. Features TypeScript, Tailwind CSS, and DaisyUI for a complete development experience.
- Frontend: SvelteKit with TypeScript
- Backend: PocketBase (SQLite-based BaaS)
- Styling: Tailwind CSS + DaisyUI
- Authentication: Built-in PocketBase auth
project/
├── frontend/ # SvelteKit application
└── backend/ # PocketBase server
- Node.js 18+
- npm or yarn
-
Download PocketBase
- Get the latest release from pocketbase.io
- Extract to
/backendfolder
-
Start PocketBase
cd backend ./pocketbase serve -
Configure Admin
- Visit
http://localhost:8090/_/ - Create your admin account
- Set up collections as needed
- Visit
-
Install Dependencies
cd frontend npm install -
Start Development Server
npm run dev
-
Access Application
- Open
http://localhost:5173 - Register a new account or login
- Open
The boilerplate includes a complete authentication system:
- Registration: Create new user accounts
- Login/Logout: Secure session management
- Protected Routes: Automatic route protection
- User Dashboard: Basic user profile management
- Tailwind CSS: Utility-first CSS framework
- DaisyUI: Component library for rapid UI development
- Responsive Design: Mobile-first approach
- Dark Mode: Built-in theme switching
- ✅ TypeScript support
- ✅ Server-side rendering (SSR)
- ✅ Form validation
- ✅ Error handling
- ✅ Loading states
- ✅ Responsive design
- ✅ SEO optimized
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run check # Run TypeScript checks
npm run lint # Lint codeCreate .env file in frontend directory:
PUBLIC_POCKETBASE_URL=http://localhost:8090Build and deploy the SvelteKit app to your preferred platform:
npm run buildDeploy PocketBase binary with your data directory to any VPS or cloud provider.
- Database Schema: Modify collections in PocketBase admin
- UI Components: Extend DaisyUI components in
/src/lib/components - Routes: Add new pages in
/src/routes - Styling: Customize Tailwind config in
tailwind.config.js
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
This project is open source and available under the MIT License.
For issues and questions:
- Check the PocketBase documentation
- Review SvelteKit documentation
- Open an issue in this repository
Happy coding! 🎉