Simple Web App with PWA Feature for Send Push Notifications to the Gotify Server.
Send Push - https://push.santhoshveer.com
- LocalStorage for Store the API on Browser
- Axios for Accessing the API
- Progressive Web App
- Proper Form and API validation
Note: you need to Enable a Cors headers (Cross-Origin Resource Sharing) to Access your API on Third-party websites.
- Open Gotify Setup file -
config.yml
File - Find the Line
cors: # Sets cors headers only when needed and provides support for multiple allowed origins. Overrides Access-Control-* Headers in response headers.
- uncomment
#
the Cors and whitelist the domain to accesss your API
cors: # Sets cors headers only when needed and provides support for multiple allowed origins. Overrides Access-Control-* Headers in response headers.
alloworigins:
- "push.santhoshveer.com"
allowmethods:
- "GET"
- "POST"
allowheaders:
- "Authorization"
- "content-type"
- Clone this Respo or Download
git clone https://github.com/mskian/gotify-pwa.git
cd gotify-pwa
- Install Modules via
yarn
yarn
- Workflow ⚙
## Development (Run build & watch for changes)
yarn dev
## Build
yarn buld
## Test the site locally
yarn live
- Upload
public
Folder on your server
Check out our Google Chrome Extension for Gotify - https://github.com/mskian/gotify-push
MIT