Init Company

Experimental

Create the directory structure and common files to get you started with Camundala.

The Structure of the Process-Projects looks like this:

myProject1  myProject2  ...
      |         |         |
     company-camundala
            |  
        camundala

The idea is that you have a company layer, where you can override Company specific settings.

Be aware that one of the main advantages is the concept of Convention over Configuration.

At the moment not everything is configurable.

So try to stick to the conventions, whenever possible.

  1. Create a directory for your company development:

    mkdir ~/dev-mycompany

    Be aware that the company name (mycompany) must be lowercase to work properly.

  2. Create helperCompany.scala in your company directory and open it.

    cd ~/dev-mycompany
    touch helperCompany.scala
    open helperCompany.scala
  3. Copy the following content to helperCompany.scala:

    #!/usr/bin/env -S scala shebang
    // DO NOT ADJUST. This file is replaced by `./helper.scala update`.
    
    //> using toolkit 0.5.0
    //> using dep io.github.pme123::camundala-helper:1.30.28
    
    import camundala.helper.dev.DevCompanyHelper
    
    @main
    def run(command: String, arguments: String*): Unit =
     DevCompanyHelper.run(command, arguments*)
  4. Make the file executable:

    chmod +x helperCompany.scala
  5. Create the company directory structure:

    ./helperCompany.scala init
  6. Open the company-camundala directory with your IDE (I use Intellij).

  7. Import the sbt project. The project should compile without errors.

  8. Update build.sbt with your repository settings.

  9. Release the company-camundala project to your repository.

Next Step: Create Project