Skip to content

nuhs-projects/cookie_cutter

Repository files navigation

NUHS Cookie Cutter

Setting up a cookie cutter for NUHS projects. What it includes:

  • basic project structure
  • basic python libraries
  • collection of NUHS project repositories
  • RDBMS script
  • logger script

Aim

To provide a quick and easy way to use DAI/EAI systems and also to ensure that less guesswork will be done while understanding code from others.

Attribution

This is OOS.

Contribution

Please start a new branch and raise PR if you want to add any new modules.

Warnings

This does not replace documentation. Please document as per usual.

Creating new cookiecutter structure file

The aim here is to have a standardised file structure for new NUHS project repositories. we will be using cookiecutter file structure from https://github.com/nuhs-projects/cookie_cutter

$ pip install cookiecutter # for first timer
$ cookiecutter https://github.com/nuhs-projects/cookie_cutter #say yes even if you have existing folder
# subsequently, you will be prompt to answer the following questions

example prompts

After which, you have successfully create project folder with standardised files structure.

Adding repositories as submodule - DEPRECATED

Steps to add new project repository into cookie cutter. refer to graphical_template as example child repository.

$ git clone https://github.com/nuhs-projects/cookie_cutter 
$ cd cookie_cutter # parent repository
$ git clone https://github.com/userxx/child_repo child #clone child repo here
$ git checkout branch-name # or git checkout -b branch name
$ git submodule add https://github.com/userxx/child_repo child
$ git add .gitmodules child
$ git commit -m "add child repo as submodule"
$ git push -u origin branch-name

About

Setting up a cookie cutter for NUHS projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •