🛠️
go-firebase-storage -Work in progressSimple Golang API that uses Firebase as its backend to demonstrate various firebase services using Go such as uploading a simple post to Firebase Firestore, multipart/form-file upload to Fireabase Storage and retrieving url of uploaded file, Firebase/Social Authentication and Firebase Cloud Messaging.
I created this repository for a few reasons:
- I was trying to do a fle upload to firebase storage and had a really hard time going through the poor documentation provided, so i decided to make this repo as a simple guide for anyone who wants to use Firebase services in their golang app.
- To practice making a RESTful API using golang.
- To have some sort of template for my personal side projects that use firebase services.
Table of Content
Prerequisite
You need to have a firebase account in order to get started. A firebase account can easily be created from the Firebase Console and they provide various payment plan but for the firebase services used in this repo they are all free by using the Spark Plan.
Disclaimer
-
Most of the firebase services used in this project such as Firebase Firestore and Firestore Storage have other alternatives that are mainly used at a production level such as AWS, GCP and Heroku etc.
-
This repo is not meant to showcase any best practices or software architecture when developing a REST API using golang or when interacting with the Firebase Golang SDK.
-
This repo is not meant to be any form of documentation for the Firebase Golang SDK but just a guide to anyone who might be having a difficult time navigating through the official documentation.
Helpful Resources
- The official documentation for the Golang Firebase SDK
- CRUD RESTful API blog post by [Victor Stevens]
- Uploading files in Go blog post by Tutorial Edge