{"id":19276045,"url":"https://github.com/fedekau/firebase-hosting-demos","last_synced_at":"2026-06-29T04:32:04.025Z","repository":{"id":92327323,"uuid":"97992221","full_name":"fedekau/firebase-hosting-demos","owner":"fedekau","description":"Basic examples of things you can do with Firebase Hosting: Rollback, HTTP2 Push, etc.","archived":false,"fork":false,"pushed_at":"2017-10-02T21:31:17.000Z","size":122,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T11:53:51.446Z","etag":null,"topics":["examples","firebase","firebase-hosting","hosting","http2-push"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fedekau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-21T22:54:03.000Z","updated_at":"2020-08-20T18:59:40.000Z","dependencies_parsed_at":"2023-05-16T21:15:42.569Z","dependency_job_id":null,"html_url":"https://github.com/fedekau/firebase-hosting-demos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fedekau/firebase-hosting-demos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedekau%2Ffirebase-hosting-demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedekau%2Ffirebase-hosting-demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedekau%2Ffirebase-hosting-demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedekau%2Ffirebase-hosting-demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedekau","download_url":"https://codeload.github.com/fedekau/firebase-hosting-demos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedekau%2Ffirebase-hosting-demos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34913586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["examples","firebase","firebase-hosting","hosting","http2-push"],"created_at":"2024-11-09T20:52:42.522Z","updated_at":"2026-06-29T04:32:04.007Z","avatar_url":"https://github.com/fedekau.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Examples of Firebase Hosting\n\nThis are some basic examples of things you can do with [Firebase Hosting](https://firebase.google.com/docs/hosting/).\n\n## Instructions\n\nTo run any of the examples follow the general instructions: \n\n- Go to Firebase Console and create a new app.\n- Run `firebase login` (if it is the first time).\n- Edit the `\u003cexample-name\u003e/.firebaserc` and put your app name.\n- Run `firebase deploy`.\n\n### Example 1: Simple deploy and Rollback\n\n- Break something, and run `firebase deploy` again.\n- Check that the site is broken.\n- Go to Console \u003e\u003e Hosting, select previous verstion and restore it.\n- Go to the site and check that is running the previous version.\n\n### Example 2: Headers: Redirects, Rewrites \u0026 HTTP2 Push\n\n- Go to the app URL. Check that the image is cached for 7200 seconds. And the `*.js`, `*.css` are send via HTTP2 Push.\n- Go to `/home-rewrite`. This shows the same content as `/` with a different URL.\n- Go to `/home-redirect`. This redirects you to `/` with `301` HTTP code.\n\n### Example 3: Dynamic Content\n\n- Edit the `assets/scripts/index.js` with the URL of your app. And run `firebase deploy`.\n- Go to the app URL.\n- Type something and hit the button. A MD5 hash is generated on the server and shown in an alert popup.\n- Go to `\u003capp-name\u003e/token?email=email1@example.com` and check that the MD5 hash comes from the server. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedekau%2Ffirebase-hosting-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedekau%2Ffirebase-hosting-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedekau%2Ffirebase-hosting-demos/lists"}