Questions tagged [aqueduct]

Aqueduct is an open-source, server-side framework written in Google’s Dart language.

Major Features


  1. HTTP Request Routing.
  2. Multiple CPU support, without adding complicated multi-threading logic.
  3. CORS Support.
  4. Automatic OpenAPI specification/documentation generation.
  5. OAuth 2.0 implementation.
  6. Fully-featured ORM, with clear, type- and name-safe syntax, and SQL 6. Join support. (Supports PostgreSQL by default.)
  7. Database migration tooling.
  8. Template projects for quick starts.
  9. Integration with CI tools. (Supports TravisCI by default.)
  10. Integrated testing utilities for clean and productive tests.
  11. Logging

Tutorials


Need a walkthrough? Read the tutorials. They take you through the steps of building an Aqueduct application.

Documentation


You can find the API reference here. You can find in-depth guides and tutorials here.

139 questions
0
votes
1 answer

Dart - Flutter - Aqueduct: strange behavior of DateTime.parse()

aye aye good people, I'm really confused about the behavior of DateTime.parse(); on dartpad this works void main() { const String _iso8601 = '2019-04-01T08:30:00'; final DateTime _date = DateTime.parse(_iso8601); …
Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85
0
votes
1 answer

Does the Dart Aqueduct server have a string validator built in?

I'm using the string_validator package that I forked from an older unmaintained package. I was wondering if Aqueduct has some sort of string validation already built in? If if does, I couldn't find it. I'd like to validate an email address and add…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
1 answer

How can I write uploaded multipart files to disk?

I'm trying to handle file upload through multipart requests with Aqueduct. Aqueduct has now an example on how to handle multipart requests here: https://aqueduct.io/docs/http/request_and_response/#example-multipartform-data The example explains, how…
Christopher Armstrong
  • 3,477
  • 6
  • 34
  • 40
0
votes
2 answers

How can I use WHERE on a ManagedSet?

I have a many-to-many relation, having P, PF and F I want to filter P using F through PF. Like: final query = Query

(context) ..where( (p)=>p.pfSet.firstWhere( (pf)=>pf.f.cod == 1 ).f ).isNotNull(); and the classes: class P extends…

Siloé Bezerra Bispo
  • 2,056
  • 1
  • 17
  • 31
0
votes
0 answers

How to handle inclusive -21, -103 Invalid value: Not in range RangeError in Dart?

I have socket app that was working over a year. One user data seems out of range. User keep getting inclusive -21, -103 Invalid value: Not in range RangeError. Error String: RangeError (length): Invalid value: Not in range 0..576460752303423487,…
Nick
  • 4,163
  • 13
  • 38
  • 63
0
votes
2 answers

How to get client remote ip address in resource controller

How can I access request.connectioninfo.remoteaddress in a function of a resourcecontroller? I need to store and log the client remote IP.
Christopher Armstrong
  • 3,477
  • 6
  • 34
  • 40
0
votes
2 answers

Client side model equivalent of a server side orm parent model

Auto generation of client model based on server side open api 3.0 document does not produce the equivalent of server side orm parent class. I'm developing a new aqueduct server, and want to have the browser client model automatically generated from…
Aiyub
  • 51
  • 7
0
votes
1 answer

Testing in Aqueduct 3.0 Pre-Release

I have a hard time figuring out how to test in Aqueduct 3.0 Pre-Release. I see an example in the Snippets section of the documentation that uses following to connect to an endpoint: app.client.request("/endpoint").get() But when I look at the…
Christopher Armstrong
  • 3,477
  • 6
  • 34
  • 40
0
votes
1 answer

How can I install and configure Dart 2 and Aqueduct on Ubuntu 18.04?

I have local network socket services. So, I need to deploy Aqueduct (on Ubuntu 18.04). With Aqueduct, the my rest api backend it connects to my local network socket services (not a database) and front provides for me the REST API. Whit this my…
user9239214
0
votes
1 answer

How to send encrypted (3DES) data into aqueduct without getting any error?

I m using Aqueduct 3.0. I need to learn How to capture post request in Aqueduct 3.0? My Request: http://127.0.0.1:8888/login/ziD7v0Ul99vmNWnxJRxZIiTY4zakNoq8GjM+oHROYz/YTHnd3NH1XfHRULY0jaHU Get a Response: [INFO] aqueduct: GET…
user9239214
0
votes
1 answer

Can't create account in aqueduct's db_and_auth/wildfire example

I have been trying to learn how to use Aqueduct's authorization but I am struggling with some errors. I found this question (OAuth Error using Aqueduct, mismatched ManagedPropertyType), which solved the first error saying it was expecting a string…
0
votes
1 answer

Running tests in aqueduct with SSL using self signed certificate results in error

I am new to working with openSSL and cert do's and dont's. Within my sink file I am making use of SecurityContext to force HTTPs: @override SecurityContext get securityContext { return new SecurityContext() ..usePrivateKey("SSL/key.pem",…
Arthur Daniel
  • 331
  • 1
  • 3
  • 7
0
votes
2 answers

Securing Routes In Dart Webapp

I am building a Dart/Aqueduct webapp in which I need to be able to restrict access to certain routes. I am making use of Aqueducts Authorizers for when an HTTP request is made, but I am a little concerned about controlling user access within the…
Arthur Daniel
  • 331
  • 1
  • 3
  • 7
0
votes
1 answer

Missing Configuration File For Tests - Aqueduct

When implementing OAuth with aqueduct I mistakenly didn't follow the test driven development ideology, and I am paying for it now... When I run my tests, I get the error: "No configuration file found. See README.md." Which is thrown from the…
Arthur Daniel
  • 331
  • 1
  • 3
  • 7
0
votes
1 answer

OAuth Error using Aqueduct, mismatched ManagedPropertyType

I am using the OAuth hooks provided with a fresh creation of an Aqueduct project. My data is URI encoded in the following way: var form = body.keys .map((key) => "$key=${Uri.encodeQueryComponent(body[key])}") .join("&"); I received the…
Arthur Daniel
  • 331
  • 1
  • 3
  • 7
1 2 3
9
10