shuttle-hq / shuttle

Build & ship backends without writing any infrastructure files.
https://shuttle.rs
Apache License 2.0
5.96k stars 247 forks source link

Provide example of shuttle used with a full stack framework (ex. Leptos) #952

Open firesidewing opened 1 year ago

firesidewing commented 1 year ago

Describe the feature

Just started trying out shuttle the other day, so far it's been fairly easy to use and I like the idea of having config all in code. Was wondering if there have been any thoughts about providing an example of shuttle being used with a full stack rust framework as a way of giving people an entry way to writing complete web apps using shuttle?

Leptos is popular and provides developers a full rust experience both front end and back end, much like how shuttle provides a full rust experience for deploying an application.

Definitely not shuttle's responsibility to do something of this nature, but may make adoption easier, especially for people coming from react to the rust world. They're used to a full JS dev experience, would be nice to show off a full rust dev experience.

Suggestion or Example of how the feature would be used

No response

Duplicate declaration

oddgrd commented 1 year ago

Hey! As you may have seen we do have a fullstack example, but it uses typescript for the frontend. We have to be a bit restrictive on adding too many of these since the maintenance burden will grow quite large. With that said I still think it would be cool to have an example of using shuttle with a rust frontend, so this is definitely something to consider. Thoughts on this @ivancernja @joshua-mo-143?

joshua-mo-143 commented 1 year ago

It looks like Leptos/Yew are relatively stable enough that we could potentially add something. It looks like relatively speaking, Rust frameworks won't be growing as quickly as JavaScript frameworks do so we have less to worry about here. We could just make a hello world example and then leave it at that, since we don't want to grow our repository into a huge maintenance burden with time that could be better spent otherwise.

sentinel1909 commented 1 year ago

This might be a good one for me to take and be responsible for maintaining. The dev profile site I have hosted on Shuttle is done with Rocket and Yew. It's probably not done "correctly" though, so there's plenty of room to improve.

TylerBloom commented 1 year ago

Depending on how you want to deploy your app, you can check out this example that I created, which is a minimal reproduction of the project architecture that I'm using for my fullstack (axum + yew) apps.