File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
# React Netease Music
2
2
React Netease Music——一个基于React、TypeScript的高仿网易云mac客户端播放器。
3
3
4
- 一直想写一个音乐播放器把玩把玩,最近无意中发现很早就有人整理出了相关的API,话不多说,撸起来!代码使用React编写,没有使用额外的数据管理库(因为react hook真的挺方便的😂),欢迎提出你的意见,喜欢的话请给我一个star哈😁~
4
+ 一直想写一个音乐播放器把玩把玩,最近无意中发现很早就有人整理出了相关的API,话不多说,撸起来!代码使用React编写,没有使用额外的数据管理库(因为react hook真的挺方便的hhhh),欢迎提出你的意见,喜欢的话请给我一个star哈😁~
5
+
6
+ ## 项目体验地址
7
+ [ 高仿网易云音乐播放器——音为爱呀😍] ( http://47.115.57.59:8000/discovery )
5
8
6
9
## 功能列表
7
- - [x] 登录/登出
10
+ - [x] 登录/登出(目前仅支持手机密码登录)
8
11
- [x] 发现页
9
12
- [x] banner
10
13
- [x] 推荐歌单
@@ -39,6 +42,8 @@ React Netease Music——一个基于React、TypeScript的高仿网易云mac客
39
42
- [ ] 主题换肤
40
43
- [ ] ......看心情添加功能😂
41
44
45
+ 注意:部分歌曲可能由于版权问题无法播放喔。(我没有判读用户的权限😂)
46
+
42
47
## 技术栈
43
48
- React,使用react hook做状态管理,没有使用额外的数据管理库。
44
49
- TypeScript,用TypeScript确实可以提高效率😃(容易发现错误)。
@@ -74,3 +79,4 @@ React Netease Music——一个基于React、TypeScript的高仿网易云mac客
74
79
yarn
75
80
yarn dev
76
81
```
82
+ 然后在浏览器中访问:` http://localhost:8080 `
Original file line number Diff line number Diff line change 1
- const serverEnv = process . env . NODE_ENV || 'development'
2
- const serverAddr = serverEnv === 'development' ? 'localhost' : '47.115.57.59'
3
-
1
+ const serverAddr = '47.115.57.59'
4
2
export const SERVER = `http://${ serverAddr } :3000`
You can’t perform that action at this time.
0 commit comments