Skip to content

Connecting a UI #2781

Answered by calteran
trya2l asked this question in Questions
Apr 23, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @trya2l , my impression/experience with Rocket is that it's not really a frontend framework. I'm using it to build a large API, and it's fantastic for that, but you'll need a different framework to generate markup, styling and scripting for your UI. Personally, I'm using Next.js for that, but there are plenty of other solutions out there too, and I hear there are some decent ones in Rust coming along.

If you want to run your UI code from Rocket directly, you'll either need to hard-code it into Rocket's route functions or call your UI framework from those functions.

FWIW, the above is just my opinion & based on ~6 months experience with Rocket and I'm happy if someone with more perspect…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@the10thWiz
Comment options

@trya2l
Comment options

Answer selected by trya2l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants