Skip to content

BarracudaPff/firebase-ktor-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple chat with Ktor and Firebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages