To start your Phoenix server:
- Place your Google service account key (
service-account.jsonfile) in the project root directory. - Set OpenWeather API key as
OWM_API_KEYenv variable. - Install dependencies with
mix deps.get - Create and migrate your database with
mix ecto.setup - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -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!