petalframework/petal_boilerplate
Fork: 21 Star: 153 (更新于 2024-12-02 05:20:49)
license: 暂无
Language: Elixir .
Phoenix + Tailwind + Petal Components Boilerplate
Petal Boilerplate
A clean install of the Phoenix 1.7 (RC) along with:
- Alpine JS - using a CDN to avoid needing
node_modules
- 🌺 Petal Components Library
- Maintained and sponsored by Petal Framework
Get up and running
Optionally change your database name in dev.exs
.
- Setup the project with
mix setup
- Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
- Now you can visit
localhost:4000
from your browser.
Phoenix 1.7 generators
The 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.
To fix, simply do a find and replace in the generated code:
Replace `.modal` with `.phx_modal`
Replace `.table` with `.phx_table`
Replace `.button` with `.phx_button`
This 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.
Petal Pro currently comes with a generator to build CRUD interfaces with Petal Components. You can purchase it here.
Renaming your project
Run mix rename PetalBoilerplate YourNewName
to rename your project. You can then remove {:rename_project, "~> 0.1.0", only: :dev}
from your mix.exs
file.
最近版本更新:(数据更新于 2024-08-29 13:31:32)
主题(topics):
elixir, phoenix, phoenix-framework, tailwindcss
petalframework/petal_boilerplate同语言 Elixir最近更新仓库
2024-12-21 00:09:00 anoma/anoma
2024-12-11 03:53:15 electric-sql/electric
2024-11-23 19:38:53 teslamate-org/teslamate
2024-09-07 03:11:29 firezone/firezone
2024-07-07 05:20:46 elixir-lang/elixir
2024-04-11 02:26:13 zoonk/zoonk