https://github.com/rorpage/qrcode-csharp
QR Code generator function for the FaaS Platform using .NET Core
https://github.com/rorpage/qrcode-csharp
docker faas functions-as-a-service serverless serverless-functions
Last synced: 10 months ago
JSON representation
QR Code generator function for the FaaS Platform using .NET Core
- Host: GitHub
- URL: https://github.com/rorpage/qrcode-csharp
- Owner: rorpage
- License: mit
- Created: 2017-08-18T22:35:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-19T18:43:24.000Z (over 8 years ago)
- Last Synced: 2025-02-25T23:16:03.001Z (about 1 year ago)
- Topics: docker, faas, functions-as-a-service, serverless, serverless-functions
- Language: C#
- Homepage: http://get-faas.com/
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FaaS QR Code using C#
Inspired by John McCabe's [qrcode](https://github.com/faas-and-furious/qrcode) function in Go, I made one in C#!
## Deploying the function
Be sure to follow the instructions on the [FaaS repo](https://github.com/alexellis/faas) to deploy the Faas stack.
**Get the CLI**
You can install the [faas-cli](https://github.com/alexellis/faas-cli/) via `brew install faas-cli` or `curl -sSL https://get.openfaas.com | sudo sh`.
**Build and deploy**
Build and deploy your stack using the following commands:
```
$ faas-cli -action build -f ./stack.yml
$ faas-cli -action deploy -f ./stack.yml
```
**Test**
Using `curl`, you can send a URL (or any data) to the function to generate a QR code:
```
$ curl localhost:8080/function/qrcode -d 'http://get-faas.com' > qrcode.png
```

Voila! You have a QR code! You can check it via Android using [this app](https://play.google.com/store/apps/details?id=com.google.zxing.client.android).