-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add FastAPI webapp for Spotify/Last.FM library management #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jmlrt
wants to merge
20
commits into
main
Choose a base branch
from
feat/webapp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
600434c
feat: add FastAPI webapp for Spotify/Last.FM library management
jmlrt b24a161
fix: address PR feedback on webapp
jmlrt fff20be
fix: add input validation and security checks
jmlrt 5ac9d6a
fix: address 15 copilot review comments
jmlrt deebe2a
refactor: simplify auth, jobs, and scrobbles route (KISS/YAGNI)
jmlrt 569bbff
fix: address new copilot review comments
jmlrt 4c39448
fix: address new copilot review comments (round 3)
jmlrt 48530df
fix: add --system flag to uv pip install in Dockerfile
jmlrt e732edd
fix: copy LICENSE file into Docker image
jmlrt dd02c31
fix: copy README.md into Docker image
jmlrt 988b514
feat: improve webapp UX — pagination, sorting, compact layout, scrobb…
jmlrt 8f9b053
feat(scrobbles): remove pagination to prevent Last.FM re-fetch on pag…
jmlrt 0b8b85e
fix(scrobbles): actually remove pagination include from template
jmlrt b8cbff8
feat(jobs): show live logs on job page with HTMX polling
jmlrt 70f2af8
fix: hide dupe-specific message on non-dupe job completion
jmlrt c5a60df
fix: skip track re-sync for unchanged playlists and fix count sort ty…
jmlrt f8cbf76
fix(docker): remove uv.lock from image — uv pip install does not use it
jmlrt f74fa6c
fix: address Copilot review — thread safety, snapshot flag reset, log…
jmlrt ee8d7b1
feat: dedicated dupe pages with sorting, playlist columns, and track …
jmlrt 570e7fb
refactor: separate business logic from presentation in lastfm and mis…
jmlrt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FROM python:3.14-slim | ||
| WORKDIR /app | ||
| RUN pip install --no-cache-dir uv | ||
| COPY pyproject.toml LICENSE README.md ./ | ||
| COPY spotfm/ spotfm/ | ||
| RUN uv pip install --no-cache-dir --system ".[web]" | ||
| EXPOSE 8000 | ||
| CMD ["uvicorn", "spotfm.web.app:create_app", "--factory", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| services: | ||
| spotfm-web: | ||
| build: . | ||
| ports: | ||
| - "8000:8000" | ||
| volumes: | ||
| - ~/.spotfm:/root/.spotfm | ||
| - ~/.cache/spotfm:/root/.cache/spotfm | ||
| restart: unless-stopped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| [web] | ||
| api_key = "" # any random string; required to access the webapp | ||
|
|
||
| [lastfm] | ||
| api_key = "" | ||
| api_secret = "" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.