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

Running Dart tests on the real database in Aqueduct

I'm creating a read only PostgreSQL database. Since it won't be modified after I populate it, I'd like to run some tests to make sure the data is good. The TestHarness with the ORM mixin creates an empty database for each test. Can I access the real…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
1 answer

Folder with custom files (json, txt) in dart project (Aqueduct)

I create dart web server on aqueduct. And i want add into project my custom file (f.e. in json format) and read in dart code. In which folder i can put my own custom non-dart files? Thanks
Yuriy Aizenberg
  • 373
  • 9
  • 28
0
votes
1 answer

Aqueduct and Dart: Future> (T = ManagedObject) can't be serialized to JSON

I was following the tutorial here to familiarize myself with Aqueduct and Dart. The code from part 1 was working fine but once I converted from an in-memory list of heroes to using the database, it stopped working. I confirmed there was data in the…
0
votes
1 answer

sending response to postman from dart aqueduct backend

I have created a rest post endpoint, wherein I am making third party API call and the response that I am getting from third party API is being sent as a response from the rest endpoint here is the code: @override Controller get entryPoint { …
focode
  • 648
  • 1
  • 16
  • 39
0
votes
1 answer

Aqueduct not give response Flutter get request

Hello I'm making an app which use http framework and send my server to get request. I'm using Aqueduct for backend service and it is working when I use POSTMAN to send 'get request' but when I use my app to send get request Aqueduct gives a message…
Onur
  • 318
  • 4
  • 12
0
votes
0 answers

Relate to Auth User Table

I want to use Auth User Table for other Tables. Specificly I want to use the ID for other Tables as Foreign key. It worked fine until I started Implementing OAuth2 into the chanel.dart. Now its thowing an error: Data Model Error: Relationship…
CKWDani
  • 33
  • 7
0
votes
2 answers

How to test file upload with Aqueduct harness?

I followed the Aqueduct tutorial for creating tests, but it was missing one example that I am in a dire need; I am unable to test a file uploading endpoint with my controller. I have implemented a controller as such: class FileController extends…
JereK
  • 83
  • 9
0
votes
1 answer

Aqueduct ORM missing FROM clause

I have an Aqueduct project using the ORM, with data objects like so: Relationships: User has many Things (Many to one) A Thing has one Thinglet (of one kind, one to one) A Thing has one Thinglet (of another kind, one to one) class _User { String…
Vedavyas Bhat
  • 2,068
  • 1
  • 21
  • 31
0
votes
1 answer

Clarification needed regarding streaming responses with Aqueduct

I'm reading docs of Aqueduct HTTP web server for Dart. In the section about streaming response body I see following 2 statements which do not completely fit together for me: A body object may also be a Stream. Stream body objects are most …
Alexander Arendar
  • 3,365
  • 2
  • 26
  • 38
0
votes
1 answer

Aqueduct ORM ManagedObject's transient property being persisted

I have an Aqueduct project using the ORM, with a data model as follows: class _Thing { @primaryKey int id; String first; String second; } class Thing extends ManagedObject<_Thing> implements _Thing { @Serialize() OtherThing get…
Vedavyas Bhat
  • 2,068
  • 1
  • 21
  • 31
0
votes
0 answers

Is there any way to use Varchar instead of text in aqueduct ORM?

In the aqueduct ORM i created a table definition which has three columns: Id, username and password. The username and password column is of String type. I'm using a ProstgreSQL database and a table which i manually created (without the migration…
0
votes
1 answer

Use @Relate and unique

How can I use Relate and unique using aqueduct ORM? In my code I want that the userapp be unique? If I try to put @Column(unique: true) I receive a error like this: *** Relationship 'userapp' on '_Professional' cannot both have 'Column' and…
Siloé Bezerra Bispo
  • 2,056
  • 1
  • 17
  • 31
0
votes
1 answer

Dart Aqueduct server database upgrade: error connecting to the database

I'm setting up a PostgreSQL database for my Aqueduct server. I created a user and database with psql: CREATE DATABASE words; CREATE USER words_user WITH createdb; ALTER USER words_user WITH password 'password'; GRANT all ON database words TO…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
1 answer

Http response body has quote marks from Dart Aqueduct server

When a response is returned from an Aqueduct controller like this return Response.ok('hello'); the body of the response has quote marks around it: "hello" The same thing when I return a JSON string like this: return…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
1 answer

Dart Aqueduct server basic authorization

I'm learning about how authentication works using the Aqueduct framework. In my channel.dart file I have a route: router .route('/protected') .link(() => Authorizer.basic(validator)) .link(() => ProtectedController()); But I don't know how…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393