https://github.com/or13/openfaas-firebase
https://github.com/or13/openfaas-firebase
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/or13/openfaas-firebase
- Owner: OR13
- Created: 2019-02-25T16:39:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T19:39:58.000Z (over 7 years ago)
- Last Synced: 2025-02-13T19:49:12.331Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenFaaS Firebase
This project is for exploring interoperation between legacy REST APIs, Firebase Functions and OpenFaaS.
## Getting Started
I recommend following this tutorial first.
https://www.openfaas.com/blog/digitalocean-one-click/
After completing the tutorial, you will likely want to explore customizing templates, or porting some small exisiting codebase.
## Testing Locally
Take a look at the docker image you built as part of the tutorial:
```
docker images
```
Run the image directly:
```
docker run -p 3000:3000 or13/express-api
```
Make some changes to `./template/node10-express-legacy-swagger` and rebuild your function:
```
faas-cli build
```
Run the image again to see the changes:
```
docker run -p 3000:3000 or13/express-api
```
Next steps are to test integration with firebase functions, which I find easier to do in another repo... If you are interested in that part, I'm basically tweaking this:
https://codeburst.io/express-js-on-cloud-functions-for-firebase-86ed26f9144c