Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 21 17:55
    thosakwe edited #8
  • Sep 21 17:55
    thosakwe edited #8
  • Sep 21 17:54
    thosakwe opened #8
  • Sep 21 17:54
    thosakwe opened #8
  • Sep 18 19:49
    micimize commented #32
  • Sep 17 13:01
    klavs opened #34
  • Sep 15 20:02
    thosakwe closed #23
  • Sep 15 20:02
    thosakwe commented #23
  • Sep 15 20:01
    thosakwe closed #26
  • Sep 15 20:01
    thosakwe commented #26
  • Sep 14 21:06
    thosakwe commented #8
  • Sep 14 21:06
    thosakwe commented #8
  • Sep 14 20:54
    AlanTBarlow opened #8
  • Sep 14 20:54
    AlanTBarlow opened #8
  • Sep 11 19:24
    GnafGnaf commented #5
  • Sep 11 19:10
    thosakwe commented #5
  • Sep 11 19:07

    thosakwe on 2.x

    Added reflector to example code… Merge pull request #5 from Gnaf… (compare)

  • Sep 11 19:07
    thosakwe closed #5
  • Sep 11 19:07
    thosakwe commented #5
  • Sep 11 19:00
    GnafGnaf opened #5
Tobe Osakwe
@thosakwe
I'm working on a small app project that will involve file uploads, so I'm going to experiment with it on my end. I might open an issue to see if people want support for it.
Tobe Osakwe
@thosakwe
Tobe Osakwe
@thosakwe
Screen Shot 2019-08-14 at 12.15.27 PM.png
Screen Shot 2019-08-14 at 12.15.43 PM.png
Quick look
Tobe Osakwe
@thosakwe
Spitballing here, but server side rendering of flutter_web would be awesome. Not sure if it’s necessarily even possible
Randal L. Schwartz
@RandalSchwartz
I think it has come up a few times. Might even be a github issue on it
Tobe Osakwe
@thosakwe
I’d bet. I remember seeing people ask about it for AngularDart, so not surprised
Tobe Osakwe
@thosakwe
Adib Mohsin
@pacifio
even though it's not about angel itself
can you guys help me with this
related to "dart:io"
I want to call stdout.flush but it throws an error
I can't find solid solution ...
it says : Bad state: StreamSink is bound to a stream
Pedro
@pedrospj
Hi, Tobe and everyone! So, I've just started to develop with Angel and I'm reading through the docs, but I can't figure it out how do I specify the Response status code, any thoughts?
Pedro
@pedrospj
Thx, Tobe, Angel's awesome, keep doing the great job
Tobe Osakwe
@thosakwe
Thanks!!!
Yarco
@yarcowang
Hi, Tobe, for generating migration, I should write the driver as in:
https://docs.angel-dart.dev/v/2.x/orm/migrations#running-migrations
Not like as in Laravel, just type the command?
under <project>/bin?
Yarco
@yarcowang
Hi, is there any tutorial for GraphQL+User Auth+ DB Migration? ( I'm wondering whether they are in experimental or production?)
I feel it is not very clear even I know laravel/express when first-time taste dart/webserver~
Tobe Osakwe
@thosakwe
Correct, you should write the driver file for migrations
There’s no tutorial specifically for that combination, but there are docs for each of those things separately
Yarco
@yarcowang
hello_—_psql_titan_—_119×39_—_⌥⌘3.png
Not quite sure I'm on the right way~ it responses nothing.
Tobe Osakwe
@thosakwe
You’re not actually running the migrations, you’ve just created a MigrationRunner instance
You need to add a call to “runMigrations(migrationRunner, args)”
You can then run commands like “migrate.dart up” or “migrate.dart —help”
Yarco
@yarcowang
Does any tutorial or doc anywhere relate to this topic? For I can see only https://docs.angel-dart.dev/v/2.x/orm/migrations this page.
Tobe Osakwe
@thosakwe
Each Angel package has a Github repo with additional documentation +examples
Though that page could definitely be improved!
Yarco
@yarcowang
I understand ;) When we do more codes, we are lazy on the doc, and you already did the perfect thing.
Yarco
@yarcowang
@thosakwe Is there any way to list services somehow? Or also objects in the app's container? (Like in Symfony?)
Or also routes ( I mean get informations ) , like artisan route:list
Yarco
@yarcowang
I feel I'm facing black box when deal with Dart, ex.: I can run pub run, but there's no list command to list sub-commands.
Tobe Osakwe
@thosakwe
It may be worth it for you to read the Dartdoc entries for Angel, as all of these functions are also documented there
There’s no way to list things in the app container at this point, as it wasn’t necessary at the time. But if that’s something you’re interested in, send a pull request to angel-dart/container on GitHub
Yarco
@yarcowang
Does there exist staging in Angel initializing process? ex.: Angel app(staging:'RouteLoaded'), I think then it will be quite easy for outputing the route tree.
Tobe Osakwe
@thosakwe
Why not just call app.dumpTree if app.environment.isStaging?
Yarco
@yarcowang
You are right. But I think maybe the initializing process is complicated, and people want to stop at some points.
Tobe Osakwe
@thosakwe
Where might you want to stop?
Yarco
@yarcowang
For example, with or without Database connection
But maybe it is hard to make the decision for asynchronous application. Not quite sure.
Yarco
@yarcowang

Hi, Tobe, I'm trying to add a middleware to the service,

class RegisterService extends Service<String, Map<String, dynamic>> {
  @Middleware(const [requireAuthentication<User>()])
  FutureOr<Map<String, dynamic>> getVerificationCode(Map<String, dynamic> data, [Map<String, dynamic> params]) {

but IntelliJ Idea tells me

error: The values in a const list literal must be constants. (non_constant_list_element at [hello] lib/src/services/register.dart:9)
error: Arguments of a constant creation must be constant expressions. (const_with_non_constant_argument at [hello] lib/src/services/register.dart:9)

And even I remove const keyword, the errror still exist... Running the script returns:

lib/src/services/register.dart:9:22: Error: Method invocation is not a constant expression.
  @Middleware(const [requireAuthentication<User>()])
                     ^^^^^^^^^^^^^^^^^^^^^

Don't know how to solve that.

Yarco
@yarcowang
Em... Does it mean those handlers are at compile time??
Yarco
@yarcowang

Envoloping it seems working:

FutureOr<bool> _auth(RequestContext req, ResponseContext res) async {
  return Future.value(requireAuthentication<User>()(req, res) as bool);
}

But seems not a good solution.