Home

Awesome

Real-world Hanami

Real World Hanami apps and their open source codebases for developers to learn from

Installation

# Clone this git repo:
git clone git@github.com:ydakuka/real-world-hanami.git

cd real-world-hanami

# This will take some time...
git submodule update --init --remote --checkout --single-branch --depth 1

To speed this process up, you can tell git to fetch several repositories in parallel:

git config [--global] submodule.fetchJobs 4

Updating

The repositories are linked as git submodules.

To check out the latest the revisions, run:

# This will take some time:
git submodule update --remote --checkout --single-branch --depth 1

Other Real World codebase collections

Contribute

Contributions are welcome! Reach out if you'd like some help.

How to include a new repository

For a repo fooser/baretory:

git submodule add git@github.com:username/project_name.git demos/project_name

How to remove a repository

To remove a submodule:

# Remove the submodule from .git/config
git submodule deinit -f path/to/submodule

# Remove the submodule from .git/modules
rm -rf .git/modules/path/to/submodule

# Remove from .gitmodules and remove the submodule directory
git rm -f path/to/submodule