Svelte 5 Template Repository
Welcome to the Svelte 5 Template Repository! This template provides a comprehensive setup for Svelte 5 with tools like TypeScript, Tailwind CSS, Vite, Docker, and more, making it easy to kick-start your next web application with Svelte's latest features.
Features
- Svelte 5: Leverage Svelte’s latest improvements with Runes and optimized compiler performance.
- TypeScript: Enhance type safety and developer experience.
- Tailwind CSS: Quickly style your application with utility-first CSS.
- Vite: Fast bundling with hot module replacement (HMR) for efficient development.
- Docker Integration: Local development environment setup, including a containerized database.
- Tooling: Pre-configured with ESLint, Prettier, and Playwright for linting, formatting, and testing.
Getting Started
Prerequisites
Ensure you have the following installed:
- Node.js (v20 or higher)
- Bun (optional, recommended for managing dependencies)
- Docker (for containerized development)
Installation
- Clone the Repository:
git clone https://github.com/aiherrera/svelte5-template.git
cd svelte5-template
bun i
bun dev
- Start the Development Server:
bun dev
- Open the Application:
Visit
http://localhost:5173
in your browser.
- Docker Setup: To run the application with Docker, use the following commands:
docker-compose up -d
This will start the application and the database container.
- Testing: Run tests with Playwright:
bun test
- Linting and Formatting: Ensure code quality with ESLint and Prettier:
bun lint
- Build for Production: Create a production build with Vite:
bun build
- Deployment: Deploy the application to a server or platform of your choice.
- Contributing: Contributions are welcome! Feel free to open issues or submit pull requests.