Wondering how can you implement Svelte and Inertia in your favourite Swift backend framework?
This is an example project so you can use the latest and greatest technologies today :)
A sample Vapor 4 app made with Inertia Svelte and Laravel Mix
Vapor 4 + Svelte + Inertia + Laravel Mix
This is a sample project that implements:
The Inertia Adapter was based on https://github.com/lloople/vapor-inertia-adapter and heavily modified so it is properly working. Thats why is in Deps directory.
This is just a sample implementation. May be a better approach is possible. Please experiment and see if this works for your use case.
The webpack.mix.js was modified in order to generate a Sources/App/mix.swift file that will contain the values of mix-manifest.json.
Modify vapor.mix.js to your needs.
make install: Will install npm_modules directory.
make webpack-watch: Will run the Laravel Mix watcher for any change inside the Resources/js directory.
make run: Will execute the Vapor Server.