{"id":13610346,"url":"https://github.com/whilelucky/pwa","last_synced_at":"2025-04-07T16:18:54.803Z","repository":{"id":84836873,"uuid":"79587052","full_name":"whilelucky/pwa","owner":"whilelucky","description":"An opinionated progressive web app boilerplate","archived":false,"fork":false,"pushed_at":"2018-03-27T04:50:46.000Z","size":196,"stargazers_count":357,"open_issues_count":7,"forks_count":47,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-12-15T20:02:08.756Z","etag":null,"topics":["babel","boilerplate","editorconfig","eslint","html-streaming","jest","pm2","postcss","preload","process-manager","prpl","pwa","react","react-router","redux","route-chunking","testing","universal","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whilelucky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-20T18:44:52.000Z","updated_at":"2024-08-11T07:59:54.000Z","dependencies_parsed_at":"2023-04-29T20:06:47.674Z","dependency_job_id":null,"html_url":"https://github.com/whilelucky/pwa","commit_stats":null,"previous_names":["lakshyaranganath/pwa"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilelucky%2Fpwa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilelucky%2Fpwa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilelucky%2Fpwa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilelucky%2Fpwa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whilelucky","download_url":"https://codeload.github.com/whilelucky/pwa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685628,"owners_count":20979085,"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":["babel","boilerplate","editorconfig","eslint","html-streaming","jest","pm2","postcss","preload","process-manager","prpl","pwa","react","react-router","redux","route-chunking","testing","universal","webpack"],"created_at":"2024-08-01T19:01:43.856Z","updated_at":"2025-04-07T16:18:54.780Z","avatar_url":"https://github.com/whilelucky.png","language":"JavaScript","readme":"# Progressive Web App\n\u003e A production grade progressive web app, to hit the ground running.\n\n## Setup\n```\n$ npm install\n```\n\n## ENV Variables\n- NODE_ENV (build-dependent)\n  - development: modules are bundled as is\n  - production: modules are minified and uglified\n\n- PWA_ENV (build-dependent)\n  - development: configs are obtained from /config/development.js\n  - production: configs are obtained from /config/production.js\n  - customPwaEnv: configs are obtained from /config/customPwaEnv.js\n\n- PWA_PUBLIC_PATH (build-dependent)\n  - /build/client/: assets are fetched from the local filesystem\n  - /production.cdn.com/build/client/: assets are fetched from this cdn path\n  - /custom/path/: assets are fetched from /custom/path/\n\n- PWA_SSR (build-independent)\n  - true: enable server side data fetching and rendering\n  - false: disable server side data fetching and rendering\n\n- PORT (build-independent)\n  - 8000: serve the app at port 8000\n  - 1337: serve the app at port 1337\n\n*build-dependent: if any of these variables values have to be changed, assuming you change `PWA_PUBLIC_PATH=//other.cdn.com` in the `staging:build` script, then it requires a rebuild and a restart, `npm run staging`*\n\n*build-independent: if any of these variable values have to be changed, assuming you change `PWA_SSR=false` in the `staging:start` script, then it only requires a restart, `npm run staging:start`*\n\n## Usage\nThere are some useful npm scripts setup for you to start using these ENV variables effectively, please look at [package.json](./package.json) to better understand how they're setup for each script.\n\n\u003eRemember to run `npm stop` to stop all the pwa pm2 instances before using a different script from below.\n\nStart as local development server with file watching:\n```bash\n$ npm start\n# runs at http://localhost:8000\n# npm run stop is automatically called for you after\n# hitting ctrl+c to quit the webpack-dev-server\n```\n\nStart as local production server:\n```bash\n$ npm run development\n# runs at http://localhost:1337\n```\n\nStart as staging server:\n```bash\n$ npm run staging\n# runs at http://localhost:1337\n```\n\nStart as production server:\n```bash\n$ npm run production\n# runs at http://localhost:1337\n```\n\nUsing pm2:\n```bash\n$ npm run pm2 -- logs # follow all server logs\n$ npm run pm2 -- list # list all processes\n$ npm run pm2 -- kill # kill pm2 parent process\n$ npm run pm2 -- help # show other available commands\n```\n\n## License\n[MIT](./LICENSE)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhilelucky%2Fpwa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhilelucky%2Fpwa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhilelucky%2Fpwa/lists"}