serverpod / serverpod

Serverpod is a next-generation app and web server, explicitly built for the Flutter and Dart ecosystem.
BSD 3-Clause "New" or "Revised" License
2.36k stars 215 forks source link

RFC: Improvements to webserver #2008

Open vlidholt opened 3 months ago

vlidholt commented 3 months ago

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. 🚀

relic

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.

Ideas for the future

These are ideas that we can add in the future without breaking any of the new core features.

codekeyz commented 3 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.

vlidholt commented 3 months ago

@codekeyz, Relic is already part of Serverpod 1.0 and later.

dkbast commented 3 months ago

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).

Maksimka101 commented 1 month ago

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 :)

ali-esmailie-dev commented 1 week ago

I can't find any documentation for the relic. Please help me to implement Rest API with relic. @vlidholt