{"id":13514419,"url":"https://github.com/petalframework/petal_boilerplate","last_synced_at":"2025-04-05T04:11:31.897Z","repository":{"id":42071530,"uuid":"420539666","full_name":"petalframework/petal_boilerplate","owner":"petalframework","description":"Phoenix + Tailwind + Petal Components Boilerplate","archived":false,"fork":false,"pushed_at":"2025-03-27T01:04:56.000Z","size":406,"stargazers_count":158,"open_issues_count":3,"forks_count":22,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-29T03:09:06.653Z","etag":null,"topics":["elixir","phoenix","phoenix-framework","tailwindcss"],"latest_commit_sha":null,"homepage":"https://petal.build","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/petalframework.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-23T22:50:56.000Z","updated_at":"2025-03-27T01:04:59.000Z","dependencies_parsed_at":"2024-02-13T04:29:52.188Z","dependency_job_id":"017f9d8c-58e4-4e8f-bfaf-3f8622233f15","html_url":"https://github.com/petalframework/petal_boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petalframework%2Fpetal_boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petalframework%2Fpetal_boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petalframework%2Fpetal_boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petalframework%2Fpetal_boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petalframework","download_url":"https://codeload.github.com/petalframework/petal_boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284950,"owners_count":20913704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","phoenix","phoenix-framework","tailwindcss"],"created_at":"2024-08-01T05:00:55.933Z","updated_at":"2025-04-05T04:11:31.873Z","avatar_url":"https://github.com/petalframework.png","language":"Elixir","funding_links":[],"categories":["Elixir","Libraries"],"sub_categories":["Boilerplates"],"readme":"# Petal Boilerplate\n\nA clean install of the Phoenix 1.7 (RC) along with:\n- Alpine JS - using a CDN to avoid needing `node_modules`\n- 🌺 [Petal Components Library](https://github.com/petalframework/petal_components)\n- Maintained and sponsored by [Petal Framework](https://petal.build)\n\n## Get up and running\n\nOptionally change your database name in `dev.exs`.\n\n1. Setup the project with `mix setup`\n2. Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`\n3. Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\n## Phoenix 1.7 generators\n\nThe CRUD generators (eg. `mix phx.gen.live`) will produce code that doesn't quite work. Basically, they will use components defined in `core_components.ex` that we have renamed due to naming clashes with Petal Components.\nTo fix, simply do a find and replace in the generated code:\n\n```\nReplace `.modal` with `.phx_modal`\nReplace `.table` with `.phx_table`\nReplace `.button` with `.phx_button`\n```\n\nThis should make it work but it'll be using a different style of buttons/tables/modal to Petal Components. To work with Petal Components you will need to replace all buttons/tables/modal with the Petal Component versions.\n\nPetal Pro currently comes with a generator to build CRUD interfaces with Petal Components. You can purchase it [here](https://petal.build/pro).\n\n## Renaming your project\n\nRun `mix rename PetalBoilerplate YourNewName` to rename your project. You can then remove `{:rename_project, \"~\u003e 0.1.0\", only: :dev}` from your `mix.exs` file.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetalframework%2Fpetal_boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetalframework%2Fpetal_boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetalframework%2Fpetal_boilerplate/lists"}