Description
Feature Request
The fullstack examples are great for trivial cases, but fullstack development naturally falls into frontend presentation and backend functionality (i.e. database access).
Implement Suggestion
I've been looking for examples within a "rust workspaces" environment I'm using. I've found pages that include "part" of the solution; I've found Discord queries around the same issue. I'm still trying to piece these together in my current app (Work In Progress).
It would be great to see a simple "workspaces" example based around projects along the lines of:
domain: provides core domain objects.
api: defines dto and services
frontend: provides the App component
backend: function to init a database & provide backend (api) services.
entrypoint: main - possibly for frontend & backend depending on build platform.
I'm not sure if this represents the best structuring, which is why I'm keen to see the example ;)
Of interest are:
a) the Cargo.toml (and relationships)
b) where the main function(s) should sit and
c) what the server side main does in terms of initialisation (comment for d/b & other services, working example for dioxus related functionality & services)