Open vlidholt opened 8 months ago
Awesome stuff @vlidholt. Is Relic added in the alpha version currently on pub.dev? I'd love to see how this turns out.
@codekeyz, Relic is already part of Serverpod 1.0 and later.
Supporting modules is probably one of the most important features if the goals is to have a "module economy" where there are modules for most common use cases (and not just libraries which you then still need to plugin yourself). Especially receiving and sending to webhooks is something that will probably be very valuable (e.g. make, zapier and all the payment providers as well as newsletter, marketing & crm tools or when working with any third party ecommerce framework).
From my point of view most people will use the webserver for webhooks and static files serving. So I'd like to see the high level routes api as well as a convenient file serving functionality. Hope this issue is the right place to share my expectations :)
I can't find any documentation for the relic. Please help me to implement Rest API with relic. @vlidholt
Here are some things I'd like to see in Relic:
Endpoint
s as a REST compliant ones. Maybe codegen/macros can be used here as well?Some other notes:
Thanks for the mention @dinko7
Serverpod comes with a built-in web server called Relic. It's still experimental, and it would be nice to clean it up and make it top-notch, like the rest of Serverpod. 🚀
There are many use cases for the web server:
The main benefit of having a good web server bundled with Serverpod is that developers can use the Serverpod sessions and ORM. This means that a lot of code can be shared between the generated API and a website or custom API.
Improvements
The overall architecture for Relic looks sound, but it would be nice to improve in certain areas.
2489
2495
2497
2499
2498
2500
2996 .
Ideas for the future
These are ideas that we can add in the future without breaking any of the new core features.
Widget
, which is analogous to a Flutter widget. It would be cool to support Relic widgets that resemble some of the static Flutter widgets (Container
,Row
,Padding
,Text
, etc). We could also generate widgets (possibly without a template file) that correspond to all the default tags in HTML.