This repository has been archived by the owner on Sep 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Arpan Mahanty <[email protected]>
- Loading branch information
1 parent
7d85818
commit 6b48759
Showing
38 changed files
with
259 additions
and
1,311 deletions.
There are no files selected for viewing
This file contains 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 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
7 changes: 7 additions & 0 deletions
7
android/app/src/main/kotlin/org/jukeboxio/jukebox/MainActivity.kt
This file contains 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 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 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 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 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 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 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,10 @@ | ||
# | ||
# Copyright 2023 by JukeBox Developers. All rights reserved. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
# | ||
|
||
org.gradle.jvmargs=-Xmx1536M | ||
android.useAndroidX=true | ||
android.enableJetifier=true |
This file contains 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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains 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 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 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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,18 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# Copyright 2023 by JukeBox Developers. All rights reserved. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
# | ||
|
||
set -e | ||
|
||
# activate our virtual environment here | ||
. "$SETUP_HOME/.venv/bin/activate" | ||
|
||
# You can put other setup logic here | ||
|
||
# Evaluating passed command: | ||
exec "$@" |
This file contains 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 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 @@ | ||
# Copyright 2023 by JukeBox Developers. All rights reserved. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
|
This file contains 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,13 @@ | ||
# Copyright 2023 by JukeBox Developers. All rights reserved. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
|
||
from fastapi import APIRouter | ||
|
||
router = APIRouter( | ||
prefix="/api" | ||
) |
This file contains 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 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,19 @@ | ||
# Copyright 2023 by JukeBox Developers. All rights reserved. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
|
||
from jukebox.database import database | ||
|
||
|
||
async def startup_hook() -> None: | ||
# Establish new connection pool | ||
await database.connect() | ||
|
||
|
||
async def shutdown_hook() -> None: | ||
# Close current connection pool | ||
await database.disconnect() |
This file contains 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,26 @@ | ||
# Copyright 2023 by JukeBox Developers. All rights reserved. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
|
||
from fastapi import FastAPI | ||
|
||
from jukebox.api import router | ||
from jukebox.events import startup_hook, shutdown_hook | ||
|
||
# Let's create the Web API framework | ||
app = FastAPI(title='JukeBox API') | ||
|
||
app.include_router(router) | ||
app.add_event_handler("startup", startup_hook) | ||
app.add_event_handler("shutdown", shutdown_hook) | ||
|
||
|
||
# Healthcheck API | ||
|
||
@app.get("/health-check") | ||
async def health_check() -> dict: | ||
return {"status": "ok"} |
This file contains 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 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 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 @@ | ||
# Copyright 2023 by JukeBox Developers. All rights reserved. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
# | ||
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement". | ||
# Please see the LICENSE file that should have been included as part of this package. | ||
|
This file contains 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 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
File renamed without changes.
This file contains 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,26 @@ | ||
[tool.poetry] | ||
name = "jukebox" | ||
version = "1.0.0" | ||
description = "An Open Source Music Streaming App." | ||
authors = ["JukeBox Developers <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
|
||
fastapi = "^0.95.1" | ||
uvicorn = { extras = ["standard"], version = "^0.21.1" } | ||
gunicorn = "^20.1.0" | ||
pydantic = { extras = ["email"], version = "^1.10.7" } | ||
databases = { extras = ["asyncpg"], version = "^0.7.0" } | ||
yoyo-migrations = "^8.2.0" | ||
psycopg2-binary = "^2.9.6" | ||
click = "^8.1.3" | ||
psutil = "^5.9.5" | ||
passlib = { extras = ["bcrypt"], version = "^1.7.4" } | ||
python-jose = { extras = ["cryptography"], version = "^3.3.0" } | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core>=1.1.0"] | ||
build-backend = "poetry.core.masonry.api" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.