Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prototype custom URL shortener sample #1100

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
some really basic docs
  • Loading branch information
jhuleatt committed Aug 3, 2023
commit c14f56fa130f64b7370e0fa1ebf5fce4a822aabb
10 changes: 10 additions & 0 deletions Node/custom-url-shortener/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Custom shortlinks with Firestore and Firebase Hosting

1. Write a document to the `links` collection in Firestore to create a new shortLink:
```
{
longUrl: "https://firebase.google.com"
}
```
1. View the available shortlinks at the `/links` path on your Hosting site
1. Visit a shortlink's path on your hosting site `https://<your-site>/<shortlink>` to be redirected!