Skip to content

Commit

Permalink
Merge pull request #2225 from kemalturk/firebase-functions-example
Browse files Browse the repository at this point in the history
add firebase functions example
  • Loading branch information
ReneWerner87 committed Feb 23, 2024
2 parents e736db0 + edb8cbc commit 6d9162a
Show file tree
Hide file tree
Showing 16 changed files with 1,002 additions and 0 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Here you can find the most **delicious** recipes to cook delicious meals using o
- [Enable Preforking](/prefork)
- [Ent Mysql Example](/ent-mysql)
- [Entgo Sveltekit](/entgo-sveltekit)
- [Firebase Functions](/firebase-functions)
- [GeoIP (with MaxMind databases)](/geoip-maxmind)
- [GeoIP](/geoip)
- [GORM Mysql Example](/gorm-mysql)
Expand Down
46 changes: 46 additions & 0 deletions firebase-functions/.air.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"

[build]
args_bin = []
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ./cmd"
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
exclude_file = []
exclude_regex = ["_test.go"]
exclude_unchanged = false
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html"]
include_file = []
kill_delay = "0s"
log = "build-errors.log"
poll = false
poll_interval = 0
post_cmd = []
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = false
stop_on_error = false

[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"

[log]
main_only = false
time = false

[misc]
clean_on_exit = false

[screen]
clear_on_rebuild = false
keep_scroll = true
2 changes: 2 additions & 0 deletions firebase-functions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

tmp/
3 changes: 3 additions & 0 deletions firebase-functions/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
deploy:
gcloud config set project <ProjectID>
gcloud functions deploy ServerFunction --runtime go120 --trigger-http
Loading

0 comments on commit 6d9162a

Please sign in to comment.