{"id":21897692,"url":"https://github.com/webmaxru/pwa-for-production","last_synced_at":"2025-04-15T17:58:58.973Z","repository":{"id":38790952,"uuid":"173696521","full_name":"webmaxru/pwa-for-production","owner":"webmaxru","description":"Demo app for Smashing TV \"PWA For Production In 1-2-3\" course","archived":false,"fork":false,"pushed_at":"2022-12-30T06:53:25.000Z","size":2072,"stargazers_count":7,"open_issues_count":9,"forks_count":3,"subscribers_count":2,"default_branch":"part-1-init","last_synced_at":"2025-03-28T23:11:24.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.smashingmagazine.com/smashing-tv/pwa-1/","language":"JavaScript","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/webmaxru.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}},"created_at":"2019-03-04T07:37:20.000Z","updated_at":"2021-04-06T21:51:48.000Z","dependencies_parsed_at":"2022-09-21T09:11:07.281Z","dependency_job_id":null,"html_url":"https://github.com/webmaxru/pwa-for-production","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fpwa-for-production","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fpwa-for-production/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fpwa-for-production/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fpwa-for-production/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmaxru","download_url":"https://codeload.github.com/webmaxru/pwa-for-production/tar.gz/refs/heads/part-1-init","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249125962,"owners_count":21216705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-28T14:18:33.072Z","updated_at":"2025-04-15T17:58:58.952Z","avatar_url":"https://github.com/webmaxru.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo of Workbox-driven (v4) bundled service worker\n\n## Slides\n[Sending the Angular app into deep, deep offline with Workbox](https://slides.com/webmax/angular-workbox/)\n\n## Prerequisites\n1. Latest stable versions of `node`, `npm` installed.\n2. Static web server with SPA support:\n- [serve](https://www.npmjs.com/package/serve). Recommended and pre-configured.\n- [superstatic](https://www.npmjs.com/package/superstatic). Use this as a fallback option.\n\n## Install\n1. Clone the repo\n2. \n```bash\ngit checkout workbox-v4-bundle\nnpm install\n```\n\n## Install/update Angular CLI\n```bash\nnpm uninstall -g angular-cli\nnpm uninstall -g @angular/cli\nnpm cache clean\nnpm install -g @angular/cli@latest\n```\n\nCheck the version:\n```bash\nnpm list @angular/cli version -g\n```\nThe output should be at least `6.x.x`\n\n## Checking the app\n1. In the terminal\n```bash\nng serve\n```\n2. Open [http://localhost:4200/](http://localhost:4200/). You should see the page with `PWA For Production` header.\n3. \"Ctrl-C\" to stop the app.\n\n## Creating a production build and serving it via external web server\n```bash\nnpm run build-pwa-bundle\n```\nThe `dist/pwa-for-production` folder should be created.\n\n- If you use `serve`: Run `serve` and open `http://127.0.0.1:5000` in your browser.\n\nYou should see the page with `PWA For Production` header.\n\n## We are ready to start the workshop! Follow the trainer instructions.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmaxru%2Fpwa-for-production","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebmaxru%2Fpwa-for-production","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmaxru%2Fpwa-for-production/lists"}