Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
/ petal Public archive

PETAL stack. Phoenix, Elixir, TailwindCSS, AlpineJS, and Phoenix LiveView

Notifications You must be signed in to change notification settings

zestcreative/petal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Petal

This template is out of date. The earlier hurdles of setting up Tailwind is now made much easier with these official libraries:

With the introduction of LiveView.JS, there isn't as much of a need for AlpineJS.

Phoenix LiveView has also progressed a lot since the introduction of this template, such as using HEEX templates and Phoenix.Component, providing much better patterns when spinning up new projects. Therefore, this will be archived.


Clone this project and rename

export FROM="petal"
export FROM_MODULE="Petal"
export TO="my_app"
export TO_MODULE="MyApp"

# Skip these steps if you used GitHub's 'Use this template' feature
git clone [email protected]:zestcreative/petal.git "$TO"
cd "$TO"

# Rename the project
git ls-files -z | xargs -0 perl -p -i -e "s/$FROM/$TO/g; s/$FROM_MODULE/$TO_MODULE/g;"
mv "lib/${FROM}" "lib/$TO"
mv "lib/${FROM}.ex" "lib/${TO}.ex"
mv "lib/${FROM}_web" "lib/${TO}_web"
mv "lib/${FROM}_web.ex" "lib/${TO}_web.ex"
mv "test/${FROM}_web" "test/${TO}_web"

# Skip these steps if you used GitHub's 'Use this template' feature
rm -rfv .git
git init .

# Commit Renaming
git add -A
git commit -m "PETAL stack init 🐣🔥"

To start your Phoenix server:

  • Setup the project with mix setup
  • Start Phoenix endpoint and IEx console with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more