Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server side framework for Dart [closed]

Tags:

dart

Is there any server-side framework for Dart with support for things like templating, session management, etc., like Express or Sails for Node?

like image 487
pistacchio Avatar asked Dec 19 '13 08:12

pistacchio


People also ask

Can dart be used on the server side?

You can use the dart:io library in command-line scripts, servers, and non-web Flutter apps.

Can I use dart for backend?

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.

What is aqueduct dart?

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.

What is Angel backend?

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.


2 Answers

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.

like image 145
Greg Lowe Avatar answered Sep 20 '22 19:09

Greg Lowe


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.

like image 22
Scotty Waggoner Avatar answered Sep 23 '22 19:09

Scotty Waggoner