Code Monkey home page Code Monkey logo

vmusic-neteasy's Introduction

简介

Vue 实战案例演练:Vue 仿制开发网易云音乐

测试

# 安装依赖
npm install

# 本地开发环境:localhost:8080 
npm strat

# 线上生产环境打包
npm run build

数据接口

本地测试数据接口配置 /config/index.js 文件中对开发环境 dev 的代理配置项

## /config/index.js

module.exports = {
    dev: {
        proxyTable: {
            '/api':{
                target: xxx(网易云音乐 npm 项目包的数据接口地址)
            }
        }
    }
}

网易云音乐 npm 项目包

这是网易云音乐官方提供的一个网易云音乐数据接口项目包,github 地址,获取到该项目后,npm inode app.js 启动数据接口服务。

根据其数据接口地址(默认 localhost:3000)配置到我们播放器项目的开发配置项中,从而实现数据接口服务。

vmusic-neteasy's People

Contributors

wangchong1118 avatar

Watchers

 avatar

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.