
Develop a complete mvvm chat app for android with ktor and jetpack compose, building a server backend with websockets and an android client using retrofit and mongodb in clean architecture.
Install IntelliJ IDEA community edition, Android Studio, and MongoDB compose to prepare your MVVM chat app for Android with Ktor and Jetpack Compose; MongoDB compose offers data-visualization support.
Set up the Ktor server for the mvvm chat app by generating an initial project, configuring plugins (content negotiation, default headers, call logging, serialization, websockets), and reviewing dependencies and Gradle.
Define the data layer for the MVVM Android chat app by modeling a Message class with text, username, and timestamp, and implement a MongoDB-backed data source with getAllMessages and insertMessage.
Web sockets enable a persistent, real-time connection between browser and backend, allowing instant data delivery for chats and other live apps.
Create a chat controller to manage a single room's members with a concurrent hash map, handle joins, broadcast serialized messages to all sockets, persist and fetch messages, and support disconnects.
Set up chat sessions by creating a chat session data class with username and session id, and intercept requests to assign or generate a session with a guest fallback.
Implement web socket routing with Ktor for a chat app, handling sessions, text frames, and chat controller interactions at /chat-socket and /messages, with error handling and connection lifecycle.
Test the chat server by running the server, connecting to the websocket endpoint, sending and receiving messages across clients, and validating the messages via the /messages endpoint.
Set up project for an MVVM chat app with Ktor and Jetpack Compose, configuring retrofit, dagger hilt, and kotlin serialization, and adjusting manifest settings for http traffic and keyboard behavior.
Build the data layer for the Android MVVM chat app by defining message DTO and domain model, mapping server JSON to display data, and wiring Retrofit and web sockets.
Set up dependency injection with Dagger Hilt by creating a module, providing a Retrofit message API and an HTTP client, and wiring message and chat socket services in the app.
Implement a username screen in mvvm with Jetpack Compose, featuring a username text state, placeholder, and a join button that navigates to the chat screen using the entered username.
Create the chat screen for an MVVM Android app with Jetpack Compose, define chat state and view model, connect to the chat socket, and present messages with a send input.
Test the Android MVVM chat app with Ktor and Jetpack Compose by running it on an emulator and exchanging messages in a group chat.
Challenge yourself to extend the group chat with multiple chatrooms, new accounts, profiles, and message editing; connect with web sockets and show typing indicators.
Celebrate completing the course and your achievement in building Android apps with Jetpack Compose. Continue pursuing success in your Android development career and never stop learning.
Have you ever wanted to create your own chat app? Well, this is for you!
This course will teach you everything you need to know to build your dream chat app. You will learn how to create the server backend and also you will create an Android client app following MVVM Clean Architecture.
The course will use Jetpack Compose, a modern toolkit for building native Android UI, making development on Android easier and faster.
Ktor Server is a Kotlin framework that allows developers to write server applications. With its help in this course, we will develop a complete group chat server using WebSockets.
Along Ktor Server Side, the Android app will use Ktor Client in order to connect the application to the server with WebSockets. Retrofit will also be used to make HTTP requests to the Chat API.
The demand for Android developers who know Jetpack Compose and have backend knowledge is skyrocketing and if you know them, you will have a higher chance of getting your dream job.
What you will learn:
• Ktor Server - HTTP requests, WebSockets
• MongoDB
• Jetpack Compose
• Dependency Injection with Dagger Hilt
• Retrofit
• Ktor Client
• MVVM Clean Architecture
• How to make high-quality apps connected to your own backend!
At the end of the course, you will receive a certificate!
Course requirements:
• You want to make Android apps
• You know the basics of Jetpack Compose
• You need a computer, either a PC (Windows, Linux) or a Mac, with an internet connection
About the instructor:
I am an Android developer with 5 years of experience. I have successful apps in Google play (120k+ downloads). I am willing to help and guide anybody who wants to learn how to become a great Android developer!
Enroll today and accelerate your career!
Click the BUY NOW button and start learning. The world needs your apps!