© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. LilleaasPro Kotlin Web Apps from Scratchhttps://doi.org/10.1007/978-1-4842-9057-6_3

3. Configuration Files

August Lilleaas1  
(1)
Oslo, Norway
 

All web apps need configuration files. Configuration files let you move things like database credentials, API keys, and which port to run the HTTP server on away from your source code and into a separate configuration file.

Your application will also run in at least three different environments: local development, automated testing, and production. Configuration files enable having different defaults in each environment, all checked into version control and easily reproducible.

You could get through the examples in ...

Get Pro Kotlin Web Apps from Scratch: Building Production-Ready Web Apps Without a Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.