- Kotlin Blueprints
- Ashish Belagali Hardik Trivedi Akshay Chordiya
- 198字
- 2021-07-02 21:50:13
Project structure
The project contains two modules:
- main module: This contains the development code
- test module: This contains tests for the application
The main module contains:
- Kotlin directory (similar to Java) where all the Kotlin is placed (note that it is not enforced that the Kotlin code goes into the Kotlin directory, but it is a good convention to follow. In case you place it under another directory, then make sure to make appropriate changes to build.gradle).
- Resources directory contains static resources such as HTML, CSS, JS, and images for the web application.
Here is the package structure with the base package as com.book that we follow. Feel free to follow a similar structure in your projects:
- db: This contains database related code (Exposed library code)
- domain: This contains our data classes or model classes
- repository: This contains our repository classes which abstract the database interaction
- utils: This contains Extensions functions and some utility functions
- web: This contains the URL controllers
The following screenshot shows the project structure:

For this project, we are going to use Kotlin v1.1.50, which is the latest version at the time of writing and IntelliJ IDEA to build the application.
推薦閱讀
- Learn to Create WordPress Themes by Building 5 Projects
- Visual FoxPro程序設(shè)計(jì)教程
- PostgreSQL Cookbook
- 小程序,巧運(yùn)營:微信小程序運(yùn)營招式大全
- FFmpeg入門詳解:音視頻原理及應(yīng)用
- 精通Python設(shè)計(jì)模式(第2版)
- Getting Started with NativeScript
- INSTANT Yii 1.1 Application Development Starter
- Learning Image Processing with OpenCV
- Software-Defined Networking with OpenFlow(Second Edition)
- Mastering Unreal Engine 4.X
- Python Penetration Testing Essentials
- Managing Windows Servers with Chef
- jQuery權(quán)威指南
- Magento 2 -Build World-Class online stores