colindensem / petal-k8s

Sample repo, exploring k8's deployments via github actions to digital ocean.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Petal

A simple repository exploring the basic deployment of phoenix to digital oceans kubernetes.

This is based of a starting stack, coined as Petal.

  • Phoenix
  • Elixir
  • Tailwind
  • Alpine
  • LiveView

I've been a fan of atomic css for a few years, and that today means tailwind. For most of us, a separate spa, js framework is too much, so LiveView and AlpineJS are a breath of fresh air.

The plan is to explore deploying this to a digital ocean kubernetes cluster. It comes with a dockerfile and a docker-compose, suitable for local development. There will also be podman support as I'm finding this of interest recently.

Using this as petal base? You could. Just fork and replace the Petal/petal references. Or look at the early commits. There really isn't a lot to it and if anything doing each step is valuable learning. The chances are high that nuances of each step change with time, e.g. tailwind upgrades, postcss upgrades a dependency, it really is good to step through and figure out each step.

To start:

docker-compose up

Now you can visit localhost:4000 from your browser.

Original readme begin:

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Install Node.js dependencies with npm install inside the assets directory
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

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

Learn more

About

Sample repo, exploring k8's deployments via github actions to digital ocean.

License:MIT License


Languages

Language:Elixir 62.6%Language:CSS 20.0%Language:HTML 8.6%Language:JavaScript 6.2%Language:Dockerfile 1.6%Language:Shell 1.0%