{"id":20037258,"url":"https://github.com/sagarmaheshwary/webpush-example","last_synced_at":"2025-07-07T06:05:41.271Z","repository":{"id":102001764,"uuid":"160079098","full_name":"SagarMaheshwary/webpush-example","owner":"SagarMaheshwary","description":"A basic push notifications app built on Laravel and Vanilla Javascript.","archived":false,"fork":false,"pushed_at":"2019-03-25T15:19:08.000Z","size":289,"stargazers_count":38,"open_issues_count":0,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T18:39:29.059Z","etag":null,"topics":["javascript","laravel","mysql","notifications","push-notifications","service-worker","webpush"],"latest_commit_sha":null,"homepage":"https://medium.com/@sagarmaheshwary31/push-notifications-with-laravel-and-webpush-446884265aaa","language":"PHP","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/SagarMaheshwary.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-02T18:54:51.000Z","updated_at":"2024-12-09T14:57:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"07ed25f7-e4b9-4950-aac3-4dc99b4182ec","html_url":"https://github.com/SagarMaheshwary/webpush-example","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/SagarMaheshwary%2Fwebpush-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SagarMaheshwary%2Fwebpush-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SagarMaheshwary%2Fwebpush-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SagarMaheshwary%2Fwebpush-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SagarMaheshwary","download_url":"https://codeload.github.com/SagarMaheshwary/webpush-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252451327,"owners_count":21749919,"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":["javascript","laravel","mysql","notifications","push-notifications","service-worker","webpush"],"created_at":"2024-11-13T10:18:48.538Z","updated_at":"2025-05-05T06:30:40.652Z","avatar_url":"https://github.com/SagarMaheshwary.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Web Push Example\nA basic example of using webpush notifications with laravel and Javascript. Push Notifications are a part of Service Workers and It requires HTTPS unless you are using localhost.\n\n## Running this web application\n- make sure you have xampp or wamp installed if you are on windows machine, mamp for mac , and lamp for linux.\n\n- clone this repository to your local machine or just download the zip.\n\n- install [Composer](https://getcomposer.org/download) first, then run this command in your command-line (you should be inside your project directory). \n```bash\n  composer install\n```\n\n- rename .env.example to .env and configure your database.\n\n- generate application key.\n\n```bash\n    php artisan key:generate\n```\n\n- create tables by migrations.\n\n```bash\n    php artisan migrate\n```\n\n- Generate VAPID Keys (this command will place the VAPID keys in your .env file).\n```bash\n    php artisan webpush:vapid\n```\n\n- Add the VAPID public key to application server key in enable-push.js file located in public/js directory, here's the link to that [line](https://github.com/SagarMaheshwary/webpush-example/blob/0a0be26c038ea6de1289035c19bc715513340356/public/js/enable-push.js#L64)\n\n- Start Laravel dev server.\n```bash\n    php artisan serve\n```\n- Read the entire tutorial [Push Notifications with Laravel and Webpush](https://medium.com/@sagarmaheshwary31/push-notifications-with-laravel-and-webpush-446884265aaa) on Medium.\n\n- [Webpush](https://github.com/laravel-notification-channels/webpush) package is used by this app.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagarmaheshwary%2Fwebpush-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagarmaheshwary%2Fwebpush-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagarmaheshwary%2Fwebpush-example/lists"}