Is there any server-side framework for Dart with support for things like templating, session management, etc., like Express or Sails for Node?
You can use the dart:io library in command-line scripts, servers, and non-web Flutter apps.
With only the dart language, it is possible to develop the front and back ends of an application together. But there is no framework in the backend like flutter that is as easy to understand, is suitable for community development, and takes advantage of the class structure.
Aqueduct is an extensible HTTP framework for building REST APIs on top of the Dart VM. It includes a statically-typed ORM, OAuth 2.0 provider, automated testing libraries and OpenAPI 3.0 integration.
An Angel server is an Backend framework in dart language that we can user for geting or putting data from/to server. A polished, production-ready backend framework in dart.
Yes, there are several server-side web frameworks for Dart. See the list below:
Aqueduct - Dart HTTP server framework for building REST APIs. Includes PostgreSQL ORM and OAuth2 provider.
Start - Sinatra-inspired web framework to serve static files, handle dynamic requests, web sockets and create JSON responses.
Angel - A server-side framework designed for full-stack development, with an emphasis on code sharing, scalability, and a low learning curve.
Redstone - A metadata-driven microframework.
Stream - Lightweight web server with request routing, filtering, template engine, WebSocket, MVC design pattern, and file-based static resources.
Express - A simple, thin expressjs inspired layer around Dart's primitive HttpServer APIs.
Shelf - Shelf makes it easy to create and compose web servers and parts of web servers.
Jaguar - A server-side framework built for speed, simplicity, and extensibility.
Force - A real-time web framework, embracing web sockets, making communication even better.
Vane - A framework with built-in server runtime environment and middleware system.
See also this list.
Furthermore, there are a few Dart packages you can use to create your own server-side web framework.
For templating, there are two mustache libraries on pub
, mustache and mustache4dart.
For URL routing, see the route package.
There are packages for databases, mysql, postgresql, and mongodb and couchbase.
For caching, see memcached.
I haven't seen any session management packages, you'll probably have to roll your own and persist session data using a database.
Redstone.dart seems interesting and uses the Shelf packages. I have found it pretty easy to prototype with. It also is currently being contributed to unlike a lot of these other frameworks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With