No description
Find a file
Jeff Cole a459196cd8 Use live_redirect/2 instead of internal data attributes
The implementation of `LiveHelpers.link/1` for the `:navigate` case was
using data attributes (`data-phx-link` and `data-phx-link-state`) that
are internal to the implementation of LiveView's live navigation.

This change refactors `link/1` to use the public
`LiveView.Helpers.live_redirect/2` to achieve the same behavior.
2022-04-08 08:38:05 -04:00
assets Remove symlink 2022-02-10 13:41:18 -05:00
config Do not delete admin songs 2022-03-04 14:57:06 -05:00
lib Use live_redirect/2 instead of internal data attributes 2022-04-08 08:38:05 -04:00
priv Fix seekable songs 2022-01-27 14:41:37 -05:00
rel Add clustering with proxy file streaming 2022-01-27 09:36:04 -05:00
test Fix failed test due to page_title copy changes 2022-02-03 11:29:45 +08:00
.dockerignore Add latest phx.gen.docker files 2021-12-03 08:54:28 -05:00
.formatter.exs Add heex formatter 2022-03-18 11:13:29 -04:00
.gitignore Test basic uploads 2021-12-14 15:19:03 -05:00
Dockerfile Add standalone tailwind 2022-01-07 13:42:04 -05:00
fly.toml Add more aggressive expiration and tell user about it 2022-02-02 08:38:15 -05:00
LICENSE.md Add license 2022-02-02 08:26:25 -05:00
mix.exs Update for latest phoenix 2022-04-06 12:20:23 -04:00
mix.lock Update for latest phoenix 2022-04-06 12:20:23 -04:00
README.md Add license 2022-02-02 08:26:25 -05:00

LiveBeats

Play music together with Phoenix LiveView!

Visit livebeats.fly.dev to try it out, or run locally:

  • Create a Github OAuth app from this page

    • Set the app homepage to http://localhost:4000 and Authorization callback URL to http://localhost:4000/oauth/callbacks/github
    • After completing the form, click "Generate a new client secret" to obtain your API secret
  • Export your GitHub Client ID and secret:

    export LIVE_BEATS_GITHUB_CLIENT_ID="..."
    export LIVE_BEATS_GITHUB_CLIENT_SECRET="..."
    
  • Install dependencies with mix deps.get

  • Create and migrate your database with mix ecto.setup

  • Start Phoenix endpoint with mix phx.server or inside IEx 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