Ktor server for beginners – Login & Authentication – Part 2 [WIP]

Level: Beginner In the previous lesson we learned how to implement basic auth in our server, in this lesson we’re going to learn how to implement JWT auth and bearer token. JSON Web Tokens (JWT) A JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties. The […]

Ktor server for beginners – Login & Authentication – Part 2 [WIP] Read More »

Navigation in compose using Voyager (Android & KMP)

Voyager is one of the easiest navigation libraries out there, it super easy to setup, customizable and provides type safety when passing arguments through Data Classes. Voyager can be used both in native android projects and in Kotlin Multi-Platform projects that use Compose multiplatform for UI. Setup First we need to add the voyager dependency

Navigation in compose using Voyager (Android & KMP) Read More »

How to preview your UI in Compose multiplatform (Android studio / Intellij)

If you use compose multiplatform you might face the issue of not being able to preview your common code UI as its not officially supported yet. you can use Fleet to get a preview but i prefere Android Studio. here is how you can have previews in your common code in 2 simple steps. 1.Creating

How to preview your UI in Compose multiplatform (Android studio / Intellij) Read More »

Ktor server for beginners – MongoDB (Part 2 – queries)

Level: Beginner Welcome back!, in the previous lesson we learned how to setup our mongoDB and how to add, read, update and delete documents from our collections, in this lesson we are going to learn how to make queries to filter and sort our documents!. Sorting data To sort the list of documents returned by

Ktor server for beginners – MongoDB (Part 2 – queries) Read More »

Ktor server for beginners – sending and receiving data

Level: Beginner Ktor is a lightweight and high-performance framework for building asynchronous servers and clients in Kotlin. It provides an easy-to-use and intuitive API for creating web applications, microservices, and other types of network applications. With its simple and concise syntax, Ktor allows developers to quickly create and deploy robust and scalable applications with minimal

Ktor server for beginners – sending and receiving data Read More »

How to use Hilt for dependency injection in your Android projects

Difficulty: Intermediate What is Dependency Injection? dependency injection is a design pattern in which an object or function receives other objects or functions that it depends on.[1] But what is a dependency injection library? dependency injection libraries like Dagger 2 or Hilt, are used in projects to reduce boilerplate code and have all the benifits

How to use Hilt for dependency injection in your Android projects Read More »