{"id":17130714,"url":"https://github.com/jechol/petal_boilerplate","last_synced_at":"2025-03-24T04:46:05.368Z","repository":{"id":212707174,"uuid":"624420433","full_name":"jechol/petal_boilerplate","owner":"jechol","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T17:51:57.000Z","size":16,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T23:39:17.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jechol.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}},"created_at":"2023-04-06T12:34:24.000Z","updated_at":"2023-04-06T12:34:31.000Z","dependencies_parsed_at":"2023-12-15T18:57:11.345Z","dependency_job_id":"964ed6bf-5c7c-4c11-9285-957612dd75de","html_url":"https://github.com/jechol/petal_boilerplate","commit_stats":null,"previous_names":["jechol/petal_boilerplate"],"tags_count":0,"template":false,"template_full_name":"petalframework/petal_boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Fpetal_boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Fpetal_boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Fpetal_boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Fpetal_boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jechol","download_url":"https://codeload.github.com/jechol/petal_boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245212176,"owners_count":20578440,"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":[],"created_at":"2024-10-14T19:13:05.750Z","updated_at":"2025-03-24T04:46:05.345Z","avatar_url":"https://github.com/jechol.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"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%2Fjechol%2Fpetal_boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjechol%2Fpetal_boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjechol%2Fpetal_boilerplate/lists"}