by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 23 16:14
    ioKun edited #263
  • May 23 16:14
    ioKun edited #263
  • May 23 16:14
    ioKun edited #263
  • May 23 16:14
    ioKun edited #263
  • May 23 16:11
    ioKun opened #263
  • May 23 16:11
    ioKun opened #263
  • May 23 11:24
    devisions commented #256
  • May 23 11:24
    devisions commented #256
  • May 13 16:41
    LtManBearPig commented #262
  • May 13 16:41
    LtManBearPig commented #262
  • May 13 16:34
    LtManBearPig commented #262
  • May 13 16:34
    LtManBearPig commented #262
  • May 13 16:28
    LtManBearPig closed #262
  • May 13 16:28
    LtManBearPig closed #262
  • May 13 16:28
    LtManBearPig commented #262
  • May 13 16:28
    LtManBearPig commented #262
  • May 13 15:59
    LtManBearPig commented #262
  • May 13 15:59
    LtManBearPig commented #262
  • May 12 17:48
    LtManBearPig opened #262
  • May 12 17:48
    LtManBearPig opened #262
Omar BELKHODJA
@omarbelkhodja
What I did right now : created the new MyRepository class, as described in the test file, with the executor as a parameter of the constructor, also added MyRepository as a parameter in the MyController class, and used await app.mountController<MyController>();
Using breakpoints, I can see that MyRepository and MyController instances are created
But the problem now, is that MyController is not handling HTTP requests anymore.
Any idea why ?
Before that, I was using app.configure(MyController().configureServer);
Omar BELKHODJA
@omarbelkhodja
Sorry, I think it is a mistake of mine : I have other routes, not in the controller, that was leading to a misbehavior in the routing.
Tobe Osakwe
@thosakwe
Ah ok
Kirill
@lobanovkirill
Hello guys! Does Angel have template engine? Or best practice use AngularDart for front-end? I'm newer in Dart)
Tobe Osakwe
@thosakwe
Kirill
@lobanovkirill
Wow!) Thank you for your fast answer!)))
Hmmmm... This link in documentation not working https://dart.academy/using-angel-with-angular2/
Fix this or maybe delete
Tobe Osakwe
@thosakwe
I don't have access to that site, maybe the article was deleted or the site format changed
It looks like dart.academy itself is no longer up
Tobe Osakwe
@thosakwe
Forgot this existed, but the predecessor to Angel: https://github.com/korat-dart/korat_framework
Kirill
@lobanovkirill
Interesting) I can build real-time app in Angel?🤔🙂
Tobe Osakwe
@thosakwe
Sorry for the inactivity - exam season
Kirill
@lobanovkirill
Good luck in exams!)))
zulin
@llinzzi
Hello guys,I have a question about ORM.
Tobe Osakwe
@thosakwe
Ask away
zulin
@llinzzi
How to define the model file, whith the case in User & User . Like the frinds of some user.
@thosakwe thank you for the great job, I love angel-dart framework.
Devin Moure
@DevinM4
@serializable
abstract class _User extends Model  {
  @ManyToMany(_Friends)
  List<_User> get users;
}

@orm
@serializable
abstract class _Friends {
    @belongsTo
    _User get user;
}
@llinzzi try
zulin
@llinzzi
@DevinM4 Thank you
Noah Osterhout
@NoahFlowa
Hello! Im interested in working with Angel-Dart. Im a little confused though, do you install it on an actual server and then have the app (client) communicate with it? Or does Angel-Dart just run a virtual server in the background for local storage? I guess what Im saying is, should I use Angel-Dart for a chat app where people can communicate with others?
Tobe Osakwe
@thosakwe
Angel is ultimately just a set of libraries (though you can get away with just using package:angel_framework). You'll install dart on a Web server, and after doing that, use pub get to install dependencies onto the server. Lastly, you'll need some sort of "executable" Dart file (typically named bin/main.dart or similar) that can be run in the background as a persistent task.
You don't necessarily have to run it in the background, though. While developing locally, you'll typically just run the executable file directly in a terminal.
Yes, you can use Angel for a chat app. You can use it for any kind of HTTP server at this point.
Noah Osterhout
@NoahFlowa
That’s awesome! Thanks for quick reply! @thosakwe
James
@u007

angel.bat init hello
Creating new Angel project in C:\james\www\hello...
Choose a project type before continuing:
Choose a project type before continuing:

1) Basic (Minimal starting point for Angel 2.x - A simple server with only a few additional packages.)
2) ORM (A starting point for applications that use Angel's ORM.)
3) GraphQL (A starting point for GraphQL API servers.)
4) Shared (Holds common models and files shared across multiple Dart projects.)
5) Shared (ORM) (Holds common models and files shared across multiple Dart projects.)

Oops, something went wrong: NoSuchMethodError: The method 'delete' was called on null.

Tobe Osakwe
@thosakwe
Hi all, sorry for the recent inactivity.
Jermaine Oppong
@graphicbeacon
Not a problem @thosakwe . Given the times we're in its understandable.
mradhoussem
@mradhoussem

Hi , everyone ,
I am trying to connect my angel dart project with postgreSql database , using vsCode.

the first issue shows when i run dev.dart :
( vm-service: isolate(4334880311199635) 'main' has no debugger attached and is paused at start. Connect to Observatory to debug.)

after removing removed this ("vmAdditionalArgs": ["--observe"]) to avoid the first error

i got the second issue that is : (SocketException: OS Error: The remote computer refused the network connection. errno = 1225, address = localhost, port = 55616)

Thanks

Tobe Osakwe
@thosakwe
Do you have postgresql running?
mradhoussem
@mradhoussem
yes , postgresql is running perfectly
Tobe Osakwe
@thosakwe
Is it listening on localhost? If so, then on which port? The error message indicates a connection error.
mradhoussem
@mradhoussem
Tobe , thanks for your help . it is just the port number was wrong , my postgres is not on the default port
Tobe Osakwe
@thosakwe
Shipped package:angel_configuration@2.2.0 - main change is that you can now _include the contents of one config file into another: https://pub.dev/packages/angel_configuration/versions/2.2.0
Tobe Osakwe
@thosakwe
Plan for the rest of the week is to resolve all outstanding package:angel_validate errors, write unit tests, and then ship 3.0.0
And then onto the next package... And so forth until all the issues are closed
Jermaine Oppong
@graphicbeacon
Thanks for the update @thosakwe
What's your preferred way of accepting contributions?
James
@u007
does angel graphql server uses mirror?
ok found the doc, not needed
Omar BELKHODJA
@omarbelkhodja
I'm trying to use angel_auth. I have setup the url for the local authentication, which returns successfully the JWT token. Now I want to specify that some of my "post" URLs require an authenticated user. I can't find any example, how to perform this setup. @thosakwe is it possible to provide an example of that ? Simply injecting the user app.get('/greetings', ioc((User user) { is returning a 403 error.
Omar BELKHODJA
@omarbelkhodja
Found it app.chain([requireAuthentication<User>()]).get('/greetings', ioc((User user, RequestContext<dynamic> req) {
Mirkan Çalışkan
@mirkancal
image.png
Closing parentheses is missing from the snippet on Getting Started