The project structure is divided into two modules:
- main: This contains the development code
- test: This contains tests for the application
The main module contains:
- kotlin directory (similar to Java) where all the Kotlin is placed
- resources directory contains static resources, such as HTML, CSS, JS, and images for the web application
It is not required that the Kotlin code goes into the kotlin directory, but it is a good convention to follow. If you place it under some other directory, then make sure to make appropriate changes to build.gradle.
Here is the package structure with the base package as com.news that we follow. Feel free to follow a similar structure in your projects:
- routes: This contains all of the URL ...