Skip to content

Commit 69ce4c6

Browse files
authored
chore(dart_frog): add example (#16)
1 parent 529091b commit 69ce4c6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Response onRequest(RequestContext context) {
206206

207207
### Testing 🧪
208208

209-
In Dart Frog, we can unit test our route handlers and middleware effectively because they are just pure functions.
209+
In Dart Frog, we can unit test our route handlers and middleware effectively because they are plain functions.
210210

211211
For example, we can test our route handler above using `package:test`:
212212

packages/dart_frog/example/main.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'package:dart_frog/dart_frog.dart';
2+
3+
Response onRequest(RequestContext context) {
4+
return Response(body: 'Welcome to Dart Frog!');
5+
}

packages/dart_frog/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dart_frog
2-
description: A fast, minimalistic backend framework for Dart
2+
description: A fast, minimalistic backend framework for Dart built by Very Good Ventures.
33
version: 0.0.1-dev.2
44
homepage: https://github.com/VeryGoodOpenSource/dart_frog
55

0 commit comments

Comments
 (0)