Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/commands/create-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,28 @@ You can run `pnpm create @dhis2/app@alpha --help` for the list of options availa
--packagemanager [string]
```

## Community templates

The CLI also supports installing templates developed by the community using a GitHub repository URL or `owner/repo` specifier. These templates are maintained outside the CLI, so you should review the source code before using them in your project.

Here are some of the available community templates:

### Tailwind + React Router

React Router DHIS2 app template with Tailwind CSS.

Repository: [https://github.com/derrick-nuby/dhis2-ts-tailwind-react-router](https://github.com/derrick-nuby/dhis2-ts-tailwind-react-router)

```sh
pnpm create @dhis2/app my-app --template https://github.com/derrick-nuby/dhis2-ts-tailwind-react-router
```

Main components: Tailwind CSS, React Router
Organisation: HISP Rwanda
Developed by: [Derrick Iradukunda](https://github.com/derrick-nuby)

If you would like to promote your own community template, you can open a PR for the [CLI docs](https://github.com/dhis2/cli/blob/master/docs/commands/create-app.md) including template URL and installation steps, and any other relevant information.

## Examples

Here are some examples of how you can use the CLI
Expand Down
35 changes: 18 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading