Skip to content

Commit 9e71d5b

Browse files
committed
feat: readme
1 parent 2a05a35 commit 9e71d5b

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
1-
# Lithium-player
1+
# Lithium Player
2+
3+
Lithium Player 是一個現代化的多媒體播放應用程式,支援音樂、影片和多種格式檔案的播放與管理。
4+
5+
## 部署方式
6+
7+
### Docker Compose 部署
8+
9+
```sh
10+
git clone https://github.com/your-username/lithium-player.git
11+
cd lithium-player
12+
docker-compose up -d
13+
```
14+
15+
## 開發
16+
17+
1. clone專案:
18+
19+
```sh
20+
git clone https://github.com/your-username/lithium-player.git
21+
cd lithium-player
22+
```
23+
24+
2. 安裝依賴:
25+
26+
```sh
27+
pnpm install
28+
29+
cd backend
30+
poetry install
31+
```
32+
33+
3. 啟動開發環境:
34+
35+
```sh
36+
# 後端
37+
cd backend
38+
poetry run uvicorn src.main:app --reload
39+
# 前端
40+
pnpm dev:web
41+
```

install/ubuntu/install.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sudo apt-get update
2+
sudo apt-get install ca-certificates curl
3+
sudo install -m 0755 -d /etc/apt/keyrings
4+
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
5+
sudo chmod a+r /etc/apt/keyrings/docker.asc
6+
echo \
7+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
8+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" |
9+
sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
10+
sudo apt-get update
11+
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
12+
mkdir lithium-player
13+
cd lithium-player
14+
curl -o docker-compose.yml https://raw.githubusercontent.com/cl0udlab/Lithium-player/refs/heads/main/docker-compose.yml
15+
sudo docker compose -f docker-compose.yml up -d

0 commit comments

Comments
 (0)