Skip to content
Self Defined Short Url
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
.gcloudignore
README.md
api.go
go.mod

README.md

Short Url on Google Cloud Function

Databse

  1. Enable Cloud Firestore on Google Cloud Function
  2. Connect the project to the Firebase
  3. Add the data to the database, and replace the word in [].
  • Collectons: links
  • Document: [SHORT_NAME]
  • Column:
    • link: [REDIRECT_URL]

Deploy command

gcloud functions deploy api --entry-point=Link --runtime=go111 --trigger-http

Domain Name

  1. Go to Project in Firebase
  2. Select the Hosting
  3. Create a new domain
  • Enter your domain
  • And Redirect your domain to current web site
You can’t perform that action at this time.