Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can Dart be used for basic CRUD web application?

Tags:

dart

crud

I just discovered this Language and I'd like to know if it's possible to make basic CRUD web app using a database.

like image 818
Asme Just Avatar asked Dec 05 '25 13:12

Asme Just


2 Answers

There are libraries for mysql and postgresql, and the core library provides a web server with HTTP, HTTPS and WebSocket support.

There is a templating library which isn't part of the official release. And, there is also a community mustache port (I don't think it builds at the moment, so you may need to fix it).

So it's definitely possible. But you'll be an early adopter. If you want to get stuff done quick, I'd choose something else, but if you're wanting to learn new skills, dive in.

like image 88
Greg Lowe Avatar answered Dec 07 '25 21:12

Greg Lowe


Sure. It's a pretty new language though so you aren't going to find the robust library support you will in other languages just yet. It's rapidly growing however so I don't think it will be long. You can either write your server in dart or write your server in another language and expose a basic HTTP interface for your Dart client to consume.

Here is an example of writing a simple web application which creates and stores "blog" posts. Both the client and server are written in Dart. The database is MongoDB.

Also check out this question for more information.

like image 27
Pace Avatar answered Dec 07 '25 23:12

Pace