https://github.com/curiosum-dev/websocket-notifications-curiosum-blog-post-api
https://github.com/curiosum-dev/websocket-notifications-curiosum-blog-post-api
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/curiosum-dev/websocket-notifications-curiosum-blog-post-api
- Owner: curiosum-dev
- Created: 2023-02-09T11:45:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T11:46:58.000Z (over 3 years ago)
- Last Synced: 2025-07-06T12:40:35.318Z (12 months ago)
- Language: Elixir
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Curiosum Websockets / Push Notifications Example
To start your Phoenix server:
* Place your Google service account key (`service-account.json` file) in the project root directory.
* Set OpenWeather API key as `OWM_API_KEY` env variable.
* Install dependencies with `mix deps.get`
* Create and migrate your database with `mix ecto.setup`
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`
Server will broadcast messages with a current weather in Poznań data to the `weather:lobby` channel every 2 minutes and send push notification to the FCM's `weather` topic every 5 minutes.
Enjoy!