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
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.
This is OOS.
Please start a new branch and raise PR if you want to add any new modules.
This does not replace documentation. Please document as per usual.
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 questionsAfter which, you have successfully create project folder with standardised files structure.
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
