This is a mock music player of music.163.com, api provided by Binaryify's NeteaseCloudMusicApi inspired by sanyuan0704's react-cloud-music, his react-hooks turtorial is also recommended(in Chinese) on juejin.im. Bascially all the animation is hand-rolled, if you looking for example about CSS trasition, this project might be helpful.
- React hooks
- Styled-component
- Immutable.js
- Better-scroll
- Transition-group
npm install
- change baseUrl to where NeteaseCloudMusicApi is running
npm start
npm run build
npm install
express, compression and pm2, thennode start ./server.js
at same folder with /build- If path error, try remove all /cloud-music in build/index.html
- to deploy with github-pages, run
npm run deploy
react-gh-pages
Note: You can npm start
NeteaseCloudMusicApi at localhost or pm2 start npm -- start
when deloying.