# How to add a stream module?

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

  2. To define a stream 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{
      	stream-module LotteryStream at com.metastay.lotterystream
        ...
      }
      
  3. Enter sbt shell, run command smile

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