mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-21 23:50:59 +00:00
No description
566a574c0a
* Add handler for `phx:page-loading-stop` that focuses either the first `<h1>` child of `<main>`, or `<main>` directly if no child `<h1>` is present. Make this our focus target. * Cache original `tabindex` of target, if any, and assign it a temporary `tabindex1 of -1. * Focus the target. * After a long timeout, either restore the target's original `tabindex` or remove the temporary -1 value. Short timeouts didn't seem to perform the focus step. Neither did nested `requestAnimationFrame` calls. |
||
---|---|---|
assets | ||
config | ||
lib | ||
priv | ||
rel | ||
test | ||
.dockerignore | ||
.formatter.exs | ||
.gitignore | ||
Dockerfile | ||
fly.toml | ||
mix.exs | ||
mix.lock | ||
README.md |
LiveBeats
Play music together with Phoenix LiveView!
Visit todo to try it out, or run locally:
-
Create a Github OAuth app from this page
- Set the app homepage to
http://localhost:4000
andAuthorization callback URL
tohttp://localhost:4000/oauth/callbacks/github
- After completing the form, click "Generate a new client secret" to obtain your API secret
- Set the app homepage to
-
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 withiex -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
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix