https://github.com/wp993080086/tsx-music-website
tsx版流畅清爽的音乐网站项目
https://github.com/wp993080086/tsx-music-website
axios pinia scss typescript vite vue vur-router
Last synced: 7 months ago
JSON representation
tsx版流畅清爽的音乐网站项目
- Host: GitHub
- URL: https://github.com/wp993080086/tsx-music-website
- Owner: wp993080086
- Created: 2022-07-20T09:57:07.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T10:18:26.000Z (about 3 years ago)
- Last Synced: 2025-01-22T12:31:00.276Z (9 months ago)
- Topics: axios, pinia, scss, typescript, vite, vue, vur-router
- Language: TypeScript
- Homepage:
- Size: 291 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 使用tsx编写,一个流畅清爽好用的PC端音乐网站













## 👂 前言
> 感谢 [binaryify](https://github.com/Binaryify) 大佬的 `NeteaseCloudMusicApi` 接口支持 😜
- [项目预览地址](http://116.62.13.54)
- [接口文档地址](https://binaryify.github.io/NeteaseCloudMusicApi)## 📔 已有功能
- 网易云APP扫码登录 & 网易云账号登录
- 注册
- 骨架屏
- 音乐播放器
- 歌单 & 详情
- 歌手 & 详情
- MV & 详情mv播放
- 排行榜
- 搜索
- 评论
- 歌词## 🔧 兼容性
- nodejs:14.18.0+
- 浏览器:ie11+## 🚀 运行项目
- clone该项目:[music-website](https://github.com/wp993080086/music-website.git)
- 安装:npm install
- 运行:npm run serve
- 测试环境打包:npm run build_test
- 正式环境打包:npm run build
- 修复:npm run lint-fix
- 打包后预览:npm run preview## ⚡️ 本地开发准备
- 本地开发请先下载 [NeteaseCloudMusicApi](https://github.com/Binaryify/NeteaseCloudMusicApi.git) 项目
- 下载完成后,进入`NeteaseCloudMusicApi`文件夹,打开`cmd`终端,`npm install`安装依赖,使用`node app.js`命令启动
- 将`music-website`项目根目录下`.env.development`文件里`VUE_APP_BASE_URL`字段修改为`NeteaseCloudMusicApi`项目启动后的地址,并重启`music-website`项目
> 请在根目录创建`.vscode`文件夹,并创建`settings.json`文件,并写入如下代码
```
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
```## 📦️ 目录结构
```
│─.env.development
│─.env.production
│─.env.test
│─.eslintignore
│─.eslintrc.js
│─.gitignore
│─package-lock.json
│─package.json
│─README.md
│─vite.config.ts
│─index.html
├─node_modules
├─public
└─src
│─App.vue => 根容器
│─main.js => 根文件
│
├─static
│ ├─styles => 公共样式
│ │
│ ├─iconfont => 字体图标
│ │
│ └─images => 图片
│
├─components => 公共组件
├─types
├─servers
├─router
├─config
├─store => pinia
├─utils => 工具类
└─pages => 页面
```