Building a Mobile Hotel Booking App with Kotlin Multi-Platform and Amadeus!
Table of Contents
Android app | iOS app |
---|---|
This tutorial teaches you how to create a mobile hotel booking app in Kotlin Multi-Platform. You will use the Amadeus Hotel Search APIs to search for available hotels within major worldwide cities and complete the booking flow using the Amadeus Hotel Booking API. This tutorial will be in two parts:
- Part 1 teaches you how to search and display hotels within a given city.
- The final part shows you how to search and book available hotel rooms.
This tutorial uses the following frameworks/libraries:
To get started with this tutorial, you will need to do the following:
-
Clone the repo
git clone https://github.com/ndungudedan/amadeus-hotel-app
If you are on part 1 of the tutorial, please checkout the
part-1
branch:git checkout part-1
However, if you would like to see the complete code for this 2-part series, please checkout the
main
branch:git checkout main
-
Create an Amadeus developer account.
-
To get your API keys, Create a new app on the Amadeus developer dashboard.
-
Enter your API keys in
shared/src/commonMain/kotlin/com/amadeus/hotel/AmadeusApi.kt
append("client_id", "your-client-id") append("client_secret", "your-client-secret")
-
Open, sync, and build your project on Android Studio.
-
Open the
iosApp
folder on XCode to build and run the iOS version.
Please refer to these documentation guides for further understanding of the Amadeus API:
Distributed under the MIT License. See LICENSE.txt
for more information.