# How to add a mongo module?

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

  2. To define a mongo 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{
      	data-module LotteryData at com.metastay.lottery
        mongo-module LotteryMongo(LotteryData) at com.metastay.lotterymongo
        ...
      }
      
  3. Enter sbt shell, run command smile

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