kotlin

Ktor for beginners – Request Validation

In the previous lesson we learned how to customize status pages in our server, in this post we’ll learn about request validation which is the proccess of validating that the data we received from the client is valid using the Request Validation plugin. Dependencies You can also copy it from the docs Implementation (Source code […]

Ktor for beginners – Request Validation Read More »

Ktor server for beginners – Login & Authentication – Part 2

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 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 »

Ktor server for beginners – Login & Authentication – Part 1

Level: Beginner Video tutorial can be found here In the previous lesson we learned how to store files and provide them as static content, at the moment anyone with access to our server’s address can add or delete fruits and while this might sound convenient we want to know who added what so we know

Ktor server for beginners – Login & Authentication – Part 1 Read More »

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

Level: Beginner Video tutorial can be found here 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

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

Ktor server for beginners – sending and receiving data

Level: Beginner Video tutorial can be found here 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

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