Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Matias Meno
    @enyo
    I'm writing a server that needs to handle multipart/form-data. I can't seem to find anything in the official docs to handle this properly... There was a http_server package but it's discontinued, and I could only find a small relatively unused library that has not many features. Any tips?
    Simon Binder
    @simolus3
    @enyo The mime package supports deserializing multipart requests from a stream, it's pretty neat. I wrote an integration with shelf some time ago.
    Thomas Hii
    @dukefirehawk
    Can fork http_server package or include the source directly in your project. I choose the former option and publish it as belatuk_http_serverfor use in a framework until something better is available.
    bk006
    @bk006:matrix.org
    [m]
    at when a solid and stable back end framework for dart ?
    Jacob Bang
    @julemand101
    @bk006:matrix.org What do you mean by "at when"?
    bk006
    @bk006:matrix.org
    [m]
    as far as I know there no framework back end in dart actually (aqueduct, is no longer maintained) isn't it ? and I'm actually on nodejs but I'm fed of it (dart has lot of good feature that can improve a lot your productivity) so I'm eager to use it.
    is someone, company or the dart team are actually working on a back end framework, that will be stable in the time ????
    Jacob Bang
    @julemand101
    @bk006:matrix.org NodeJS is not a backend framework? If so, the normal Dart SDK with dart:io can be seen as a backend framework. :)
    What requirements do you have for a backend framework?
    bk006
    @bk006:matrix.org
    [m]
    is dart:io is sufficient, or it's a bit complex to use it for a real app in production ? and is there enough tools for handle DB (ORM OEM), jwt, graphql ?
    Jacob Bang
    @julemand101
    @bk006:matrix.org Well, you have not listed any requirements but just stated NodeJS. But sure, you can use just normal packages from pub.dev together with a normal Dart installation to build something yourself if you don't need a framework to structure your stuff
    @bk006:matrix.org You can also look at the fork of Aquaduct: https://www.theconduit.dev/
    Which seems to get some great progress lately and properly works fine for most use cases
    bk006
    @bk006:matrix.org
    [m]
    ok thank you,
    did you use dart in production or someone in this chat and can briefly tell me is there some difficulties, I really want to use it as back-end, but I've read some comments that say that dart is not already ready to production.
    Jacob Bang
    @julemand101
    @bk006:matrix.org I have several really basic HTTP servers running behind a nginx instance without any issues
    Dart programs is a lot easier to deploy to servers compared to e.g. python
    Also, the dart.dev website is hosted using Dart servers using the shelf lib.... So I would say it can work in production?
    bk006
    @bk006:matrix.org
    [m]
    ๐Ÿ˜… okay good to know thank you, ๐Ÿ‘๏ธ
    Jacob Bang
    @julemand101
    @bk006:matrix.org But often, you choose the language based on the functionality you want to implement and what languages you already have some experience with. But I would not say that Dart can automatically be rejected because of "is not ready for production" reasons
    bk006
    @bk006:matrix.org
    [m]
    yes of course.
    Jonathan Rezende
    @jodinathan
    @bk006:matrix.org there is also angel framework that was ported to NNBD by the community
    angel has quite some nice features that boosts productivity
    bk006
    @bk006:matrix.org
    [m]
    @jodinathan: ok, thanks do you have a link ?
    Jacob Bang
    @julemand101
    @bk006:matrix.org I guess it is this: https://github.com/dukefirehawk/angel . Also called angel3: https://pub.dev/packages/angel3_framework
    bk006
    @bk006:matrix.org
    [m]
    ok cool ๐Ÿ‘๏ธ
    David Martos
    @davidmartos96
    @bk006:matrix.org Several alternatives with different scopes have been mentioned here.
    shelf, Angel 3, conduit. I can add shelf_plus and alfred in that list. I'm using shelf_plus + postgres on a backend project at the moment without issues.
    bk006
    @bk006:matrix.org
    [m]
    @davidmartos96: I saw all of them, I'll go deeper about conduit and alfred, thanks
    Luis
    @luis901101_gitlab

    Hi, what about this old question? Is there anything to hot-reload from IntelliJ when debugging?

    Is it possible to hot-reload files directly from within IntelliJ if a debugger is attached? Given that the Dart VM supports the functionality, it would be quite helpful to have this option for server-side Dart as well (not just Flutter), but I can't find anything that looks like it might do the trick...

    Graciliano Monteiro Passos
    @gmpassos
    Maksim Lin
    @maks
    2 replies
    luis901101
    @luis901101
    @maks ohh thanks
    Kurt
    @iamKurt
    Is there a good example of hosting a private pub server?
    Randal L. Schwartz
    @RandalSchwartz
    @iamKurt has ^^
    Kurt
    @iamKurt
    Thanks for sharing that @RandalSchwartz
    How do I populate the server with packages?
    Randal L. Schwartz
    @RandalSchwartz
    depends on the package
    pub_server was the simplest
    driven from a filesystem
    pretty much ideal for a company-local pub server
    the filesystem could be managed by a git repo
    Oh! pub_server respects pub publish!
    Kurt
    @iamKurt
    Not seeing docs on putting the packages into pub_server. Have examples of that?
    @RandalSchwartz
    Kurt
    @iamKurt
    It looks like I just have to clone the package repo that I want then set the PUB_HOSTED_URL env var and run the pub publish command. Is that correct?
    David Martos
    @davidmartos96
    Has anyone tried Cloud Run + Cloud SQL with Dart? I have a basic demo api that connects to a self hosted Postgres database without issues, but when trying to use the Cloud SQL Postgres, it's like Cloud Run is not able to have the socket connection for the database and the http server active at the same time.
    Locally I'm able to run the project, even connecting to the Cloud SQL database. It's just on the Cloud Run environment where I'm having issues. Any clue?
    3 replies
    Kurt
    @iamKurt
    When I attempt to publish to pub_server I am asked to authenticate. After authentication Iโ€™m being redirected to something that should be listening on port 38207. My pub server is running on port 4000. Whatโ€™s that other thing on 38207?