-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a05a35
commit 9e71d5b
Showing
2 changed files
with
56 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,41 @@ | ||
# Lithium-player | ||
# Lithium Player | ||
|
||
Lithium Player 是一個現代化的多媒體播放應用程式,支援音樂、影片和多種格式檔案的播放與管理。 | ||
|
||
## 部署方式 | ||
|
||
### Docker Compose 部署 | ||
|
||
```sh | ||
git clone https://github.com/your-username/lithium-player.git | ||
cd lithium-player | ||
docker-compose up -d | ||
``` | ||
|
||
## 開發 | ||
|
||
1. clone專案: | ||
|
||
```sh | ||
git clone https://github.com/your-username/lithium-player.git | ||
cd lithium-player | ||
``` | ||
|
||
2. 安裝依賴: | ||
|
||
```sh | ||
pnpm install | ||
|
||
cd backend | ||
poetry install | ||
``` | ||
|
||
3. 啟動開發環境: | ||
|
||
```sh | ||
# 後端 | ||
cd backend | ||
poetry run uvicorn src.main:app --reload | ||
# 前端 | ||
pnpm dev:web | ||
``` |
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,15 @@ | ||
sudo apt-get update | ||
sudo apt-get install ca-certificates curl | ||
sudo install -m 0755 -d /etc/apt/keyrings | ||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | ||
sudo chmod a+r /etc/apt/keyrings/docker.asc | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | ||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | | ||
sudo tee /etc/apt/sources.list.d/docker.list >/dev/null | ||
sudo apt-get update | ||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y | ||
mkdir lithium-player | ||
cd lithium-player | ||
curl -o docker-compose.yml https://raw.githubusercontent.com/cl0udlab/Lithium-player/refs/heads/main/docker-compose.yml | ||
sudo docker compose -f docker-compose.yml up -d |