Run aqueduct serve
from this directory to run the application. For running within an IDE, run bin/main.dart
. By default, a configuration file named config.yaml
will be used.
You must have a config.yaml
file that has correct database connection info, which should point to a local database. To configure a database to match your application's schema, run the following commands:
# if this is a new project, run db generate first
aqueduct db generate
aqueduct db upgrade --connect postgres://user:password@localhost:5432/app_name
To generate a SwaggerUI client, run aqueduct document client
.
Tests are run with a local PostgreSQL database named dart_test
. If this database does not exist, create it from your SQL prompt:
CREATE DATABASE dart_test; CREATE USER dart WITH createdb; ALTER USER dart WITH password 'dart'; GRANT all ON DATABASE dart_test TO dart;
To run all tests for this application, run the following in this directory:
pub run test
The default configuration file used when testing is config.src.yaml
. This file should be checked into version control. It also the template for configuration files used in deployment.
See the documentation for Deployment.