# How to add a domain module?

  1. Open .ksmile file, define the domain module under the respective section.

  2. To define a domain module you need the following:

    1. module name (unique to a project)

    2. dependent module list (if any)

    3. module package path (unique to a section)



       



      section lottery{
      	mongo-module LotteryMongo(LotteryData) at com.metastay.lotterymongo
      	domain-module LotteryDomain(LotteryMongo) at com.metastay.lotterydomain
        ...
      }
      
  3. Enter sbt shell, run command smile

  4. Refresh project in eclipse, respective .kdomain file will appear.