Skip to content

Commit 894f095

Browse files
committed
Update README.md
1 parent abb23e9 commit 894f095

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Diff for: README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<img src="preview/logo.png" />
55
</p>
66

7-
This repository contains [OpenFaaS](https://github.com/openfaas) function templates for writing serverless functions in the [Dart](https://github.com/gleam-lang/gleam) programming language.
7+
8+
This repository contains [OpenFaaS](https://github.com/openfaas) function templates for writing serverless functions in the [Dart](https://dart.dev/) programming language.
89

910

1011
## Usage
@@ -28,8 +29,8 @@ Note: This essentially creates a usual Dart project stucture, but with a pre-def
2829
4. Add new functionality to the function that is going to be deployed and managed by OpenFaaS:
2930

3031
``` bash
31-
code test-function/function/src/function.gleam
32-
# ... Extend or add whatever you want to the file
32+
code template/function/lib/src/function_base.dart
33+
# ... Inside this file extend or add whatever you want to inside the 'Service' class
3334
```
3435

3536
5. Make sure a valid container registry, to where functions can be pushed, has been defined in the `test-function.yml` file:
@@ -68,7 +69,7 @@ curl -k \
6869

6970
# If nothing was changed in the 'test-function/function' directory before
7071
# deployment then we should just see the default response:
71-
>> Hello from Gleam & OpenFaaS!
72+
>> Hello from Dart & Openfaas!
7273

7374
### Example POST request:
7475
curl -k \

Diff for: template/dart/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ curl -k \
1919
http://localhost:8000/ \
2020
echo
2121

22-
# If nothing was changed in the 'test-function/function/lib/src/function_base.dart' file before
22+
# If nothing was changed in the 'test-function/function' directory before
2323
# deployment then we should just see the default response:
2424
>> Hello from Gleam & OpenFaaS!
2525

@@ -30,7 +30,7 @@ curl -k \
3030
-X POST http://localhost:8000/ \
3131
echo
3232

33-
# If nothing was changed in the 'test-function/function/src/function.gleam' file before
33+
# If nothing was changed in the 'test-function/function' directory before
3434
# deployment then we should just see the default response:
3535
>> [{"string_field":"Peter"}, {"int_field":42}, {"double_field":180.5}]
3636
```

0 commit comments

Comments
 (0)