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
2
votes
0 answers

Blob, Decimal, Linestring type in Aqueduct

I'm creating a POC to migrate an existing MySQL database to Postgres and use Aqueduct as backend. In MySQL I have following attributes, which I'm currently unsure, how to use them in Aqueduct in combination with Postgres: Blob: Would I use String…
Christopher Armstrong
  • 3,477
  • 6
  • 34
  • 40
2
votes
2 answers

post request in aqueduct dart yields 415 Media Type Unsupported

I have been trying to handle post request in aqueduct. After reading the documentation this is what I have been able to come up with channel.dart router .route("/chat")//"/chat/[:id]") .link(() => ChatController()); chatController.dart > import…
kenn
  • 1,384
  • 12
  • 19
2
votes
1 answer

How to configure nginx.org as proxy server for aqueduct server?

My aqueduct server is working on ubuntu 18.04 (http://127.0.0.1:8888). I install nginx from nginx.org. Currently I don't use any block for my aqueduct on nginx. I modified default config such as I add my domain name into it. And separately both my…
Nick
  • 4,163
  • 13
  • 38
  • 63
2
votes
1 answer

Can't understand aqueduct auto-generated db and auth

I created an Aqueduct project using aqueduct create -t db_and_auth but I did not understand how registration and authentication with OAuth 2.0 works. Can someone explain how to register from OAuth2.0 and DB template auto-created by aqueduct and what…
Gabriel Pacheco
  • 309
  • 3
  • 10
2
votes
1 answer

Bad state: PostgreSQLSeverity.error : Specified parameter types do not match column parameter types in query SELECT to_regclass(@tableName:text)

I was following the Aqueduct (dart's web service framework) tutorial (https://aqueduct.io/docs/tut/executing-queries/) and then when i tried to run this command aqueduct db upgrade --connect postgres://heroes_user:password@localhost:5432/heroes i…
Gabriel Pacheco
  • 309
  • 3
  • 10
2
votes
1 answer

How to insert a record with a Relationship

Apologies, if this question is obvious, but I can't seem to find sufficient documentation. I might be lacking knowledge with restful methodologies. How do I store a record with a relationship? I have a place. I want to store posts of users made to…
Christopher Armstrong
  • 3,477
  • 6
  • 34
  • 40
2
votes
0 answers

Dart: Websocket Bearer authentication for the client

I am using the Dart server side Aqueduct framework. My program uses their OAuth 2.0 Bearer authorisation to secure certain routes. This works fine. However, I have a problem when I try to establish a websocket connection through a secure route. This…
SSS
  • 761
  • 2
  • 9
  • 19
2
votes
1 answer

Aqueduct/Dart new project command fails on Windows 7

I'm trying to create a project with the aqueduct command but I get the following errors : C:\Users\Aelayeb>aqueduct create -n web_dart Fetching Aqueduct as: aqueduct: "any" Determining Aqueduct template source... ProcessException: Le fichier…
aelayeb
  • 1,208
  • 2
  • 9
  • 11
1
vote
1 answer

Get user from the middleware in Aqueduct

How to expose information from an authorization middleware, such as the logged-in user to the subsequent request controllers with Aqueduct? Eg my route is: .route('/events/[:id]') .link(() => SecretKeyAuthorizer(context)) .link(() =>…
MappaM
  • 809
  • 8
  • 15
1
vote
0 answers

Using third-parties id providers sign-in credentials to create a user in Aqueduct server

I'm trying to wrap my head around the whole Auth process as I'm building my first API/DB in Aqueduct, but I only found out on docs and other posts how to register users with email/password combination. @Operation.post() Future
Vincenzo
  • 5,304
  • 5
  • 38
  • 96
1
vote
1 answer

Aqueduct ignores conroller

I have two controllers, one resource, the other normal. They are in the same thread and both must run. I deliberately inserted a sudden return in a normal controller to make sure it was simply ignored. Regular controller: import…
Spasibo
  • 144
  • 7
1
vote
2 answers

How to install two different version of dart for flutter and aqueduct in a macos

Currently I have dart installed with flutter, versions as below: Flutter 1.23.0-18.1.pre • channel beta • https://github.com/flutter/flutter.git Framework • revision 198df796aa (2 weeks ago) • 2020-10-15 12:04:33 -0700 Engine • revision…
MKapp
  • 373
  • 7
  • 24
1
vote
1 answer

Downgrade migration version in aqueduct

Is there any way to downgrade migration version in aqueduct. Problem is if I delete migration file which is no longer needed then by running aqueduct db generate it will create migration version with number of deleted version so when running…
delmin
  • 2,330
  • 5
  • 28
  • 54
1
vote
1 answer

Register to aqueduct backend from Flutter frontend

I'm having a bit of difficulty with registering to aqueduct backend from my Flutter frontend Here is my code in my frontend: Future signUp(String email, String password) async { final body = "username:$email,password:$password"; //<-…
delmin
  • 2,330
  • 5
  • 28
  • 54
1
vote
1 answer

Aqueduct - How to save client data without the user ID in my backend

How can I save data for a user when I don't know their user ID? I want to save it in my Aqueduct back end so I can protect and query current user data? @Operation.post() Future addData(@Bind.body(ignore: ['id']) Data newData) async { …
delmin
  • 2,330
  • 5
  • 28
  • 54
1 2
3
9 10