This is template repository to create services.
-
Install Cookiecutter and Pipenv:
pip install cookiecutter pipenv
-
Use Cookiecutter to create your new service:
cookiecutter gh:occ-data/template-repo
-
Follow the interactive guide and you'll get your new service.
Though these two utilities are written in Python, they are recommended to be installed
as global software on a development computer. Therefore, system packages are preferred
over pip install
, e.g. Homebrew on macOS:
brew install cookiecutter pipenv
If pip install
is your only option, you may choose to install in user base:
pip install --user cookiecutter pipenv
You may need to add the bin directory under "user base" to your PATH, for example:
echo "export PATH=\"`python -m site --user-base`/bin:\$PATH\"" >> ~/.bash_profile
(Or alternatively, you may use sudo pip install without --user
and PATH
trouble)