Skip to content

Commit 648dfda

Browse files
authored
Merge pull request #7 from chimon2000/chore/update-example
Update example with a full dart project
2 parents 2d306ba + 1dd885c commit 648dfda

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

example/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://dart.dev/guides/libraries/private-files
2+
# Created by `dart pub`
3+
.dart_tool/

example/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
A server app built using [Nitric](nitric.io) with an entrypoint in `bin/`, library code
2+
in `lib/`, and example unit test in `test/`.
3+
4+
# Running the sample
5+
6+
## Running with the Dart SDK
7+
8+
You can run the example with the [Dart SDK](https://dart.dev/get-dart)
9+
like this:
10+
11+
```
12+
$ dart run bin/example.dart
13+
```

example/analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:lints/recommended.yaml

example/pubspec.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: example
2+
description: A sample command-line application.
3+
version: 1.0.0
4+
publish_to: none
5+
6+
environment:
7+
sdk: ^3.2.5
8+
9+
dependencies:
10+
nitric_sdk:
11+
path: ../
12+
uuid: ^4.3.3
13+
14+
dev_dependencies:
15+
lints: ^2.1.0
16+
test: ^1.24.0

lib/resource.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export 'src/resources/resources.dart';

0 commit comments

Comments
 (0)