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
1
vote
1 answer

Bad state: type '_SpecialTypeMirror' is not a subtype of type 'ClassMirror' in type cast

I'm trying to run the aqueduct's command to generate the DB. aqueduct db generate but I always receive this error: Bad state: type '_SpecialTypeMirror' is not a subtype of type 'ClassMirror' in type cast I'm using the model like this: import…
Siloé Bezerra Bispo
  • 2,056
  • 1
  • 17
  • 31
1
vote
1 answer

type 'List' is not a subtype of type 'List'

I'm using aqueduct and I'm receving the error 'List' is not a subtype of type 'List' of 'list' #0 _TypeError._throwNew (dart:core/runtime/liberrors_patch.dart:89:51) but I don't know what is? I was running my code ok…
Siloé Bezerra Bispo
  • 2,056
  • 1
  • 17
  • 31
1
vote
1 answer

Why is the main.dart configuration getting ignored in my Dart Aqueduct server

My main.dart file for my Aqueduct server is import 'package:dart_server/dart_server.dart'; Future main() async { final app = Application() ..options.configurationFilePath = "config.yaml" ..options.port = 3000; …
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
1
vote
0 answers

Can I call any dart function inside aqueduct Response controller?

I need to call dart function do something and return data back to aqueduct controller. So, Can I call any dart function inside aqueduct response controller? If yes, how? class NtmsApiController extends Controller { @override …
Nick
  • 4,163
  • 13
  • 38
  • 63
1
vote
0 answers

How to merge aqueduct Future with dart console app?

Thanks to Bryan from voidrealms. I was struggling last 2 days (and weeks of resarch) and now I can get big data using dart tcp socket from the old system very fast. The process with dart console app is much faster than the dart Future project. Now…
Nick
  • 4,163
  • 13
  • 38
  • 63
1
vote
0 answers

How to get full data using aqueduct and socket?

My flutter app connects to a socket via https and I am using aqueduct to get secure data. the socket data is full length string such as; 2_7#a_b_c_d_e_f_g#h_i_j_k_l_m_n# I convert the data to json and my json data looks like: …
Nick
  • 4,163
  • 13
  • 38
  • 63
1
vote
1 answer

Share objects between aqueduct and flutter

I'm using aqueduct as a server where I defined an user object and extended it to make use of OAuth: class ManagedUser extends ManagedObject<_User> implements _User, ManagedAuthResourceOwner<_User> After finishing the work on aqueduct I started…
UNeverNo
  • 549
  • 3
  • 8
  • 29
1
vote
1 answer

How can I pass data from channel.dart to a middleware handle method?

I have created a middleware controller, that is responsible for authentication. The controller will be linked in front of the resource controllers. I assume this is the right way to do it? In the handle method, I'm executing a database query, which…
Christopher Armstrong
  • 3,477
  • 6
  • 34
  • 40
1
vote
1 answer

Aqueduct heroku deployment problems

I am trying to follow the official tutorial on how to deploy apps on Heroku I am however getting the following error: remote: Precompiled aqueduct:aqueduct. remote: Precompiled test:test. remote: *** Running pub build remote: Building with "pub…
Dagurdan
  • 126
  • 8
1
vote
1 answer

Handling multipart uploads with Aqueduct 3.0

I'm using AngularDart on client side, and Aqueduct 3.0 on API/Server side. I would like to upload files and store them on the filesystem for the moment. Is there a recommended way how Aqueduct can receive files / multipart form requests and store…
Christopher Armstrong
  • 3,477
  • 6
  • 34
  • 40
1
vote
1 answer

How to capture post request in aqueduct?

In channel.dart my router configuration is shown below. But I couldn’t set the content type to text; router.route('/login/[:value]').link(() { return new LoginController(); //..contentType = ContentType.TEXT; }); Than in my custom controller I…
user9239214
1
vote
2 answers

Aqueduct framework not generating migrations

I'm trying to generate a migration from a model using the command - "aqueduct db generate". This is the model "request.dart" under lib > model (where i have the other models as well which were already migrated without any issues) : import…
deepti
  • 13
  • 2
1
vote
1 answer

How to return Response.ok with socket data?

I can connect my aqueduct to close network socket (listener and get the data) Problem is I can't return new Response.ok. It shows null... I am using Aqueduct 3.0. The most of the documentation looks like Snippets. I had difficulty to apply dart…
user9239214
1
vote
2 answers

Aqueduct & in memory database

just wanted to know, if the Aqueduct ORM supports a simple in memory database, for testing purposes. Looking for something easy and lightweight to write the backend, before actually connecting it to postgres.
Christopher Armstrong
  • 3,477
  • 6
  • 34
  • 40
1
vote
1 answer

How to install Dart, Dartium, Aqueduct on macOS High Sierra 10.13.5?

I have a Flutter Mobile App and I need to create a Restful API for my mobile app. I install WebStorm, I learn that I have to get Aqueduct framework etc. I watch some video and try to google it some info to setup a environment in my macOS High…
user9239214