dart-backend / angel

A polished, production-ready backend framework in Dart for the VM, AOT, and Flutter.
https://github.com/dukefirehawk/angel
BSD 3-Clause "New" or "Revised" License
171 stars 22 forks source link

how to execute the migration_runner? #10

Closed igotfr closed 2 years ago

igotfr commented 2 years ago

https://github.com/dukefirehawk/angel/blob/angel3/packages/orm/angel_migration_runner/example/main.dart

atreeon commented 2 years ago

@cindRoberta, did the schema generate for you? I am able to run the code as in the example link you shared but it doesn't create the tables

igotfr commented 2 years ago

@cindRoberta, did the schema generate for you? I am able to run the code as in the example link you shared but it doesn't create the tables

I don't remember, I don't use Dart backend anymore, sorry

atreeon commented 2 years ago

thanks @cindRoberta, out of interest what do you use now and why did you stop using Dart as a backend?

igotfr commented 2 years ago

thanks @cindRoberta, out of interest what do you use now and why did you stop using Dart as a backend?

I started using Actix and Axum with the ORMs Sea-orm and Diesel, all from Rust

But I think that any mainstream framework today is better than Dart, shelf is excelent, but other Dart backend frameworks are still in the development stage

Phoenix (Elixir) Spring (Java) Django or other (Python)

atreeon commented 2 years ago

I really like the Dart syntax but I the sql ORM just isn't there for Dart. Yup, Shelf is really good and Alfred too, supabase has good support in Dart actually but it doesn't have a strongly typed ORM. It could be easy to build one but I don't have the time. Historically I'm used to c#'s entity framework and I don't think I realised just how grateful I should have been; it seems more intuitive than anything else I've seen. I think I'm going to return to c# & .net for my backend stuff as I already know it and you can builder a docker container with it now too; I will be locked into Azure Sql but I think it is worth it. Flutter & Dart will continue to be my first choice for the front end.

igotfr commented 2 years ago

I really like the Dart syntax but I the sql ORM just isn't there for Dart. Yup, Shelf is really good and Alfred too, supabase has good support in Dart actually but it doesn't have a strongly typed ORM. It could be easy to build one but I don't have the time. Historically I'm used to c#'s entity framework and I don't think I realised just how grateful I should have been; it seems more intuitive than anything else I've seen. I think I'm going to return to c# & .net for my backend stuff as I already know it and you can builder a docker container with it now too; I will be locked into Azure Sql but I think it is worth it. Flutter & Dart will continue to be my first choice for the front end.

try webAssembly too