Using cookiecutters

In order to generate an application based on a Cookiecutter project template, follow the procedure described below.

sudo yum install miniconda -y
sudo conda install cookiecutter -y
  • Type:
export PATH=/opt/anaconda/bin/:$PATH
cookiecutter <cookiecutter template URL>

Tip

See Cookiecutter Project Templates for the available templates URLs

  • Set the ‘artifactId’, ‘summary’, ‘description’, ‘version’, ‘community’ and ‘groupId’ values for your project. For example:
artifactId [tg-some-app]:
summary [This is a summary]:
description [This is a short description]:
version [0.1]: 0.1-SNAPSHOT
community [community]: geohazards-tep
groupId [com.terradue]:

After that, you will see a folder with the name of the artifactId (here tg-some-app), where you can start writing your application.

tg-some-app/
├── Jenkinsfile
├── pom.xml
├── README.md
└── src
    ├── main
    │   └── app-resources
    │       ├── application_template.xml
    │       ├── dependencies
    │       │   └── python
    │       │       └── packages.list
    │       └── notebook
    │           ├── etc
    │           │   └── snappy.ini
    │           ├── libexec
    │           │   ├── example.ipynb
    │           │   └── input.ipynb
    │           └── run
    └── test
        └── test_util.py