https://github.com/rorpage/faas-swarm-checkin
Quickly and easily check-in on Swarm/Foursquare using FaaS
https://github.com/rorpage/faas-swarm-checkin
docker faas functions-as-a-service serverless serverless-functions
Last synced: 16 days ago
JSON representation
Quickly and easily check-in on Swarm/Foursquare using FaaS
- Host: GitHub
- URL: https://github.com/rorpage/faas-swarm-checkin
- Owner: rorpage
- License: mit
- Created: 2017-08-19T18:40:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-19T18:48:03.000Z (almost 9 years ago)
- Last Synced: 2025-01-08T11:52:19.094Z (over 1 year ago)
- Topics: docker, faas, functions-as-a-service, serverless, serverless-functions
- Language: Python
- Homepage: http://get-faas.com/
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FaaS Swarm Checkin
Using the great [Open FaaS](https://github.com/alexellis/faas), you can easily check-in on Swarm/Foursquare by making a request to this function. Be sure to supply
your own OAuth token and venue ID in the `stack.yml`.
## Deploying the function
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 push -f ./stack.yml (optional)
$ faas-cli -action deploy -f ./stack.yml
```
**Test**
Using `curl`, you can send an empty payload to the function to check-in:
```
$ curl localhost:8080/function/swarm_checkin -d ''
```
That's it. You're checked in!
You can hook this up with [IFTTT](https://ifttt.com) to automatically check you in to places when you arrive there. Give it a shot!