GithubHelp home page GithubHelp logo

morzaram / ash-svelte-flowbite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dev-guy/phoenix-ash-svelte-flowbite

0.0 0.0 0.0 465 KB

License: MIT License

JavaScript 6.70% Elixir 77.28% CSS 0.18% HTML 3.21% Svelte 12.64%

ash-svelte-flowbite's Introduction

Phoenix Ash Flowbite Svelte TipTap Mash-Up

PhoenixashTailwind CSSSvelteFlowbiteFlowbite-Svelte

Introduction

A web browser application demonstrating:

Video

Demo (MP4)

License

MIT

Help and additional information

Join the Ash Discord Server

Requirements

Postgres

Install Postgres

nvm

Elixir

Restart your terminal after installing Elixir.

MacOS

You can use brew to install Elixir but asdf is preferred by the Elixir community.

Either: brew install elixir or:

brew install asdf
# I use zsh. Change the following line to >> ~/.bashrc if you use bash.
echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
# Restart your terminal
# Find the current versions of erlang and elixir:
# asdf list-all erlang
# asdf list-all elixir
asdf plugin add erlang
KERL_BUILD_DOCS=yes asdf install erlang 25.3 # For VSCode's Elixir language server extension
asdf global erlang 25.3
asdf plugin add elixir
asdf install elixir 1.14.4-otp-25
asdf global elixir 1.14.4-otp-25

Usage

git clone https://github.com/dev-guy/ash-svelte-flowbite.git
cd ash-svelte-flowbite
nvm i
mix local.hex
mix setup
# Register the version of esbuild installed by npm
mix esbuild.install
mix phx.server

Open a browser to http://localhost:4000

Notes

  1. package.json contains JavaScript dependencies that are installed as Hex packages. This is apparently needed for Svelte SSR.
    "live_svelte": "file:../deps/live_svelte",
    "phlegethon": "file:../deps/phlegethon",
    "phoenix": "file:../deps/phoenix",
    "phoenix_html": "file:../deps/phoenix_html",
    "phoenix_live_view": "file:../deps/phoenix_live_view"
  1. Need another component? Add it to package.json!

  2. LiveSvelte elements that use most Flowbite-Svelte components must contain ssr={false}; otherwise, runtime errors will occur

  3. You will get warnings from Flowbite-Svelte that can be ignored (for now):

▲ [WARNING] A11y: The attribute 'aria-expanded' is not supported by the role 'heading'. This role is implicit on the element <h2>. [plugin esbuild-svelte]

    node_modules/flowbite-svelte/accordions/AccordionItem.svelte:43:4:
      43 │ 41: </script>
         ╵     ~~~~~~~~~

42:
43: <h2 aria-expanded={open} class="group">
        ^
  1. Beware Svelte-Kit $app dependencies!

References

Guides

  1. Install Phoenix
  2. Install Ash Authentication
  3. Install Phlegethon
  4. Install LiveSvelte
  5. Install Flowbite
  6. Install Flowbite-Svelte

Other

TODO

  1. Upgrade flowbite-svelte - see #647
  2. Sync styles between Svelte and Phlegethon components - see here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.