{"id":32166011,"url":"https://github.com/viniciuslcpereira97/template-generator","last_synced_at":"2026-02-21T15:04:15.472Z","repository":{"id":62430806,"uuid":"481292469","full_name":"viniciuslcpereira97/template-generator","owner":"viniciuslcpereira97","description":"Elixir template generator ","archived":false,"fork":false,"pushed_at":"2022-07-14T21:26:40.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-09-27T02:19:18.451Z","etag":null,"topics":["elixir","elixir-lang","mix"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viniciuslcpereira97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-13T16:28:57.000Z","updated_at":"2023-10-25T22:04:57.000Z","dependencies_parsed_at":"2022-11-01T20:30:49.646Z","dependency_job_id":null,"html_url":"https://github.com/viniciuslcpereira97/template-generator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/viniciuslcpereira97/template-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciuslcpereira97%2Ftemplate-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciuslcpereira97%2Ftemplate-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciuslcpereira97%2Ftemplate-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciuslcpereira97%2Ftemplate-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viniciuslcpereira97","download_url":"https://codeload.github.com/viniciuslcpereira97/template-generator/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciuslcpereira97%2Ftemplate-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29684076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T14:31:22.911Z","status":"ssl_error","status_checked_at":"2026-02-21T14:31:22.570Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","elixir-lang","mix"],"created_at":"2025-10-21T15:01:53.844Z","updated_at":"2026-02-21T15:04:15.467Z","avatar_url":"https://github.com/viniciuslcpereira97.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template Generator\n\nElixir project templates generation.\n\n## Docs\n\n- [PTBR](https://github.com/viniciuslcpereira97/template-generator/blob/main/README_pt_BR.md)\n\n## Installation\n\n### Github\n\n*Latest*\n```sh\n\u003e mix archive.install github viniciuslcpereira97/template-generator\n```\n\n*Specific branch*\n```sh\n\u003e mix archive.install github viniciuslcpereira97/template-generator branch $BRANCH\n```\n\n*Specific version*\n```sh\n\u003e mix archive.install github viniciuslcpereira97/template-generator tag $RELEASE_TAG\n```\n\n### Hex\n```sh\n\u003e mix archive.install hex template_generator\n```\n\n## Configure\n\n### Example template folder structure\n```\n.\n└── example\n    ├── schemas\n    │ └── example.ex\n    └── services\n        ├── example.ex\n        └── user\n            └── user.ex\n```\n\nSet your templates directory's path in your `config.exs`.\n\n```ex\nconfig :generator,\n  templates_dir: \"./templates\",\n  templates: [\n    my_awesome_template: \"example\"\n  ]\n```\n\n`templates_dir`: Directory with all available templates\n`templates`: the key is an alias for your template and the value is the template folder name found at your `templates_dir`\n\n\n## Usage\n\nTo create a new project based on an template you should run the following command:\n\n```sh\n\u003e mix generator.new ./apps/my-awesome-new-folder --template=my_awesome_template\n```\n\n## Results\n\n### Project folder structure before running the task\n```\n.\n├── generator.ex\n├── mix\n│ └── tasks\n│     └── generator.new.ex\n├── path\n│ ├── adapters\n│ │ ├── git_resolver.ex\n│ │ ├── json_resolver.ex\n│ │ ├── local_resolver.ex\n│ │ ├── path_creator.ex\n│ │ ├── path_resolver.ex\n│ │ ├── template_directory.ex\n│ │ └── template_file.ex\n│ ├── logic\n│ └── schemas\n│     ├── template_directory.ex\n│     └── template_file.ex\n├── paths.ex\n├── project\n│ ├── adapters\n│ │ └── project.ex\n│ ├── logic\n│ └── schemas\n│     └── project.ex\n├── projects.ex\n├── template\n│ ├── adapters\n│ │ └── template.ex\n│ ├── logic\n│ └── schemas\n│     └── template.ex\n└── templates.ex\n\n```\n\n### Project folder structure after running the task\n```\n.\n├── generator.ex\n├── mix\n│ └── tasks\n│     └── generator.new.ex\n├── my-awesome-new-folder\n│ ├── schemas\n│ │ └── example.ex\n│ └── services\n│     ├── example.ex\n│     └── user\n│         └── user.ex\n├── path\n│ ├── adapters\n│ │ ├── git_resolver.ex\n│ │ ├── json_resolver.ex\n│ │ ├── local_resolver.ex\n│ │ ├── path_creator.ex\n│ │ ├── path_resolver.ex\n│ │ ├── template_directory.ex\n│ │ └── template_file.ex\n│ ├── logic\n│ └── schemas\n│     ├── template_directory.ex\n│     └── template_file.ex\n├── paths.ex\n├── project\n│ ├── adapters\n│ │ └── project.ex\n│ ├── logic\n│ └── schemas\n│     └── project.ex\n├── projects.ex\n├── template\n│ ├── adapters\n│ │ └── template.ex\n│ ├── logic\n│ └── schemas\n│     └── template.ex\n└── templates.ex\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviniciuslcpereira97%2Ftemplate-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviniciuslcpereira97%2Ftemplate-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviniciuslcpereira97%2Ftemplate-generator/lists"}