A powerful template for building modern web applications with Phoenix LiveView and Svelte components. This template demonstrates the seamless integration of server-side rendering (SSR) and client-side interactivity using LiveSvelte.
Clone the repository:
git clone https://github.com/KevinConti/live-svelte-template.git
cd live-svelte-template
Install dependencies:
mix setup
Start the development server:
mix phx.server
Visit localhost:4000
to see your app in action!
.
├── assets/ # Frontend assets
│ ├── build.js # esbuild configuration
│ ├── js/ # JavaScript files
│ └── svelte/ # Svelte components
├── lib/ # Phoenix application code
│ ├── ux_express/ # Business logic
│ └── ux_express_web/ # Web-related code
└── docs/ # Documentation
├── key_considerations.md
└── live_svelte.md
The template includes a Counter component demonstrating:
Check out lib/ux_express_web/live/counter_live.ex
and assets/svelte/components/Counter.svelte
.
The template includes a robust build configuration (assets/build.js
) that handles:
For more detailed information, check out:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.