React技术栈仿网易云音乐(移动端)

初学React, 练手的网易云音乐项目

一、简介

技术栈

  1. React
  2. React-Router
  3. Redux
  4. Ant Design
  5. 网易云音乐接口服务https://github.com/Binaryify/NeteaseCloudMusicApi

二、 项目结构

src:.
│  index.js
│  
├─action
│      actions.js
│      handleMusicList.js
│      
├─assest
│  └─fonts
│          iconfont.css
│          iconfont.eot
│          iconfont.js
│          iconfont.svg
│          iconfont.ttf
│          iconfont.woff
│          
├─components
│      Home.js
│      HotList.js
│      Playlist.js
│      Recommend.js
│      Search.js
│      Song.js
│      
├─css
│      globle.scss
│      hotlist.scss
│      playlist.scss
│      recommend.scss
│      search.scss
│      song.scss
│      
├─reducers
│      rootreducer.js
│      
└─store
        store.js
        

三、目前进度

  • 推荐页
  • 榜单页
  • 搜索页
  • 音乐播放-歌词
  • 音乐播放-进度
  • 歌单页
  • 歌曲播放列表

四、项目预览

Github:https://github.com/kakuuuu/react_study

image.png
image.png
image.png
image.png
image.png

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.<br />
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.<br />
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject , you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject . The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。