A modern, production-ready boilerplate for building full-stack web applications with SvelteKit, featuring AI/LLM integration, authentication, and cloud deployment.
Before you begin, ensure you have the following installed:
Clone the repository
git clone https://github.com/feraldolim/sveltekit-accelerator.git
cd sveltekit-accelerator
Install dependencies
npm install
Set up environment variables
cp .env.example .env.local
Then edit .env.local
with your API keys and configuration.
Start the development server
npm run dev
Open your browser
Navigate to http://localhost:5173
Copy .env.example
to .env.local
and configure the following:
# OpenRouter API Configuration
OPENROUTER_API_KEY=your_openrouter_api_key
# Supabase Configuration
PUBLIC_SUPABASE_URL=your_supabase_project_url
PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
# Application Configuration
PUBLIC_APP_URL=http://localhost:5173
sveltekit-accelerator/
โโโ src/
โ โโโ lib/
โ โ โโโ components/ # Reusable components
โ โ โโโ server/ # Server-side utilities
โ โ โโโ stores/ # Svelte stores
โ โ โโโ utils/ # Utility functions
โ โโโ routes/ # SvelteKit routes
โ โโโ app.html # App template
โโโ static/ # Static assets
โโโ wrangler.toml # Cloudflare configuration
โโโ package.json # Dependencies
This template is configured for easy deployment to Cloudflare Pages. See the Deployment Guide for detailed instructions.
Quick deploy:
npm run build
npx wrangler pages deploy ./build
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This project is licensed under the MIT License - see the LICENSE file for details.
For support, please open an issue in the GitHub repository or reach out to the community.