Coder Social home page Coder Social logo

yunxu-it / cloud-music Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rain120/cloud-music

0.0 0.0 0.0 1.12 MB

网易云音乐移动版,Vue实现

Home Page: https://github.com/Rain120/cloud-music

License: MIT License

JavaScript 30.56% HTML 0.19% Vue 56.50% CSS 12.74%

cloud-music's Introduction

cloud-music

自己在学习之余,尝试实现网易云音乐Android的APP

自己做的一个网易云音乐移动版的结构图,后期会继续完善这个图,以及完善图上的功能

网易云音乐移动版架构

本项目建立在开源项目NeteaseCloudMusicApi的基础上, 需要先在本地起server

需要 NodeJS 6.0+ 环境,建议使用NVM进行node的版本管理

server启动

  • 下载
git clone https://github.com/Binaryify/NeteaseCloudMusicApi.git
  • 安装依赖
npm install
  • 启动项目
node app.js

服务器启动默认端口为 3000,若不想使用 3000 端口,可使用以下命令: Mac/Linux

$ PORT=4000 node app.js

windows 下使用 git-bash 或者 cmder 等终端执行以下命令:

set PORT=4000 && node app.js

或者进入项目中修改

const port = process.env.PORT || 3000;(此处的3000)

项目启动

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Cloud-music 项目开发问题

问题详见

  1. audio play pause状态切换时报错DOMException

player audio使用报错

  • 解决方案:因为play()请求被pause()调用中断,所以我们需要延时操作 this.$nextTick() or setTimeout(() => {}, timeout)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.