Upload
stablekernel
View
150
Download
0
Embed Size (px)
Citation preview
AqueductJoe Conway@joeconwaystk
Server-side framework in Dart
But why?
The problem
Expectations
Resources
Time
Starting fast
OpenAPI Generator
Automated Testing
OAuth 2.0
Database Generation
Logging
ORM
HTTP Server Configuration
Starting fast
pub global activate aqueduct
aqueduct setup
aqueduct create -n my_app
./my_app start
Aqueduct in Action
Aqueduct Structure
Routing
HTTPController
HTTPController
HTTPController
Authentication
Authentication
Multi-isolate support
Multi-isolate support
Talking to a database
Executing a Query
Executing a Query
Matchers
Executing a Query
Defining a data model
Defining a data model
Defining relationships
id name
1 Joe
2 Bob
3 Sue
index title author_id
1 … 1
2 … 3
3 … 3
id type
1 Sports
2 Opinion
3 World News
article_index category_id
1 22 33 3
Defining relationships
…
Fetching relationships
Fetching relationships
Database migrations
Executing a migration
aqueduct db generate
aqueduct db validate
aqueduct db upgrade
Testing
Testing
There’s more
Documentation and Naming Conventions
Query*
Schema*
HTTP*
where*
Managed*
API*
Auth*
Manholes
Customization
Documentation Generation
dart bin/document.dart > openapi.json
Next Steps
https://aqueduct.ioDownload this presentation on slideshare:http://www.slideshare.net/stablekernel