Skip to content

Commit

Permalink
feat: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
phillychi3 committed Dec 26, 2024
1 parent 2a05a35 commit 9e71d5b
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
42 changes: 41 additions & 1 deletion README.md
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
```
15 changes: 15 additions & 0 deletions install/ubuntu/install.sh
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

0 comments on commit 9e71d5b

Please sign in to comment.