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

Get original bytes from request

How I get original bytes from request? Calling request.body.asBytes() I get this message: asBytes() expected list of bytes, instead got List<_InternalLinkedHashMap> I saw that HTTPRequestBody has the property retainOriginalBytes…
Ricardo Bocchi
  • 1,551
  • 2
  • 12
  • 12
1
vote
1 answer

Invalid client in aqueduct's db_and_auth/wildfire example

I am new to Aqueduct and I am facing a invalid client error whenever I try to make a request to the /auth/token or /auth/code route. I have already added the OAuth2.0 client and verified the secret is correct. My request to /auth/token looks like…
1
vote
1 answer

What is the best way to integrate Aqueduct server with an existing client based Dart webapp?

I am trying to link an aqueduct server with my existing dart project. I am aware of aqueducts HTTPFileController and how you can serve static files, but I was looking for insight on the best way to integrate a full client side web app written in…
Arthur Daniel
  • 331
  • 1
  • 3
  • 7
0
votes
0 answers

pub : The term 'pub' is not recognized as the name of a cmdlet, function, script file,

I want to install aqueduct on my pc. I run this command pub global activate aqueduct but I get this error pub : The term 'pub' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or…
0
votes
0 answers

an error occurs when starting the server : Bad state: Package file

aqueduct serve -- Aqueduct CLI Version: 3.3.0+1 -- Aqueduct project version: 3.3.0+1 -- Preparing... *** Uncaught error Bad state: Package file 'file:///home/superuserfucker/Documents/Code/Flutter/srvrs/server/.packages' not found. Run 'pub get' and…
0
votes
1 answer

What would be a good Flutter client for an Aqueduct server?

Writing my frontend app in Flutter/Dart, and my backend server using Aqueduct being written in Dart too, is there a tailored client that could e.g. reuse the models of Aqueduct?
MappaM
  • 809
  • 8
  • 15
0
votes
1 answer

How to list/delete Clients in Aqueduct auth?

I'm following the Aqueduct docs for auth and I see that a Client is added like so: aqueduct auth add-client \ --id com.food_app.mobile \ --connect postgres://user:password@dbhost:5432/food_app How do I check what ClientId I registered? I can't…
Vincenzo
  • 5,304
  • 5
  • 38
  • 96
0
votes
1 answer

POST request fails with missing required Body Aqueduct + PostgreSQL

I'm building my first API with Aqueduct and a PostgreSQL db. To test my endpoint I'm using Postman on the locally running server. GET requests works as expected, but the POST request fails with missing Body error: { "error": "missing required…
Vincenzo
  • 5,304
  • 5
  • 38
  • 96
0
votes
1 answer

Aqueduct routing behaviour unexpected results

I am trying to create a backend server with Aqueduct in dart. I am trying to create a resource controller that will deal with account issues. routing code is like this; router .route("/$apiEntryPointUrl/account/:operation").link(() =>…
ZayX
  • 160
  • 1
  • 8
0
votes
1 answer

Two questions about real time observers and Stripe on server side Dart with Aqueduct

I'm going to switch from using Firebase only for back end to using my own server using Aqueduct with a PostgreSQL db for most functionalities and keep using only Google Cloud Storage and Firebase Cloud Messaging. As for Stripe payments I will have…
Vincenzo
  • 5,304
  • 5
  • 38
  • 96
0
votes
0 answers

Dart Aqueduct which version to use?

Im having Dart SDK 2.10.4 Aqueduct in version 3.3.1 but for me it seems that those two don't work together well, e.g. do not connect to Postgres... When i downgrade Dart to 2.7.2 the DB connection works fine, but im getting an error "Can't load…
Helmut
  • 43
  • 4
0
votes
1 answer

Aqueduct template db_and_auth not rendering login form

I am working on setting up OAuth 2.0 for aqueduct and want to start with a working example. The template db_and_auth is suppose to serve this purpose. I have followed the readme instructions and connected my database and updated the migration. also…
0
votes
1 answer

Aqueduct failed to execute db migration file

I'm trying to learn Dart and Aqueduct. I'm following the Aqueduct tutorial. Up to now everything worked ok. But when connecting to the database I get an error. I'm using: Windows 10 PostreSQL 13 Dart 2.10.0 Aqueduct 4.0.0-b1 I get the following…
Frederik
  • 1
  • 1
0
votes
1 answer

aqueduct db upgrade can't connect to database

windows 10 postgres version - 13.0 aqueduct version - 3.3.0+1 created the database and user correctly created the migration I can connect to database using psql. postgresql.conf contains listen_addresses = '*', port = 5432 When I enter the command…
Spasibo
  • 144
  • 7
0
votes
1 answer

aqueduct db upgrade cannot connect to database

I have problem with connecting my aqueduct server to postgres database. Informations and things i have done: postgres version is 13.0 system is Windows 10 I am using AndroidStudio and internal terminal aqueduct version is 3.3.0+1 created migration…
MyisCARRY
  • 38
  • 4