Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 914 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 914 Bytes

Simple chat with firebase and ktor as backend

Ktor + WebSockets + Firebase => backend for simple chat with one room and reactions!

How to run

  1. Create Firebase project at
  2. Download services.json file and place it at src/jvmMain/resources/firebase-service.json. You can specify custom config path in application.confapplication.conf with service_file key.
  3. Connect realtime database to your firebase project and fill database url with web key:
ktor {
    ...
    firebase {
        service_file = firebase-service.json
        database_url = ...firebasedatabase.app
        web_key = ...
    }
}
  • You can get Web API key at Project Settings -> General -> Web API key

  • You can get Database base url at Realtime Database -> Data -> root node starting with https://...

  1. Run via main function or with ./gradlew run