Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Kotlin Blueprints

You're reading from   Kotlin Blueprints A practical guide to building industry-grade web, mobile, and desktop applications in Kotlin using frameworks such as Spring Boot and Node.js

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781788390804
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Akshay Chordiya Akshay Chordiya
Author Profile Icon Akshay Chordiya
Akshay Chordiya
Ashish Belagali Ashish Belagali
Author Profile Icon Ashish Belagali
Ashish Belagali
Hardik Trivedi Hardik Trivedi
Author Profile Icon Hardik Trivedi
Hardik Trivedi
Arrow right icon
View More author details
Toc

Let's build our news application


We are going to build a news feed application to understand how to build a web application using Ktor and Kotlin. You will learn how to use Ktor and Kotlin to build a robust and testable web application  quickly with minimal effort or constraints, while also having fun with Kotlin's features.

The idea is to build a RESTful news feed application that will show a list of the latest news from various sources such as Google News. It doesn't generate the news itself. It fetches the news from various news sources.

News provider

We will be using News API from https://newsapi.org/ to fetch the latest news from various sources. It is a simple, free, and easy-to-use API that returns JSON from over 70 different sources. It is recommended to get an API key from News API because we will require it in our application later to fetch the news.

There are two APIs provided by the news provider—one to fetch news sources, and a second to fetch news articles.

Fetching news sources...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image