Giter Site home page Giter Site logo

josie0921 / music-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yin-hongwei/music-website

0.0 1.0 0.0 37.58 MB

🎧 Vue + SpringBoot + MyBatis 音乐网站

License: GNU General Public License v2.0

JavaScript 15.27% HTML 0.11% Vue 25.42% CSS 4.37% Java 15.39% TSQL 39.44%

music-website's Introduction

music-website


license

声明

这项目我一直作为技术分享,不做收费(版权归我个人独有,大家拿来学习交流随时欢迎,拒绝商用)。希望大家可以尊重下我的劳动成果,谢谢。


项目说明

本音乐网站的开发主要利用 VUE 框架开发前台和后台,后端接口用 Spring Boot + MyBatis 来实现,数据库使用的是 MySQL。实现思路可以看这里


项目截图

前台截图预览











后台截图预览







功能

  • 音乐播放
  • 用户登录注册
  • 用户信息编辑、头像修改
  • 歌曲、歌单搜索
  • 歌单打分
  • 歌单、歌曲评论
  • 歌单列表、歌手列表分页显示
  • 歌词同步显示
  • 音乐收藏、下载、拖动控制
  • 后台对用户、歌曲、歌手、歌单信息的管理

技术栈

后端

SpringBoot + MyBatis

前端

Vue + Vue-Router + Vuex + Axios + ElementUI


安装

1、下载项目到本地

git clone https://github.com/Yin-Hongwei/music-website.git

2、下载数据库中记录的资源

去【链接: https://pan.baidu.com/s/1Qv0ohAIPeTthPK_CDwpfWg 提取码: gwa4 】下载网站依赖的歌曲及图片,将 data 夹里的文件直接放到 music-server 文件夹下。

3、修改

1)数据库:将sql文件夹中的 tp_music.sql 文件导入数据库。

2)music-server:启动后端服务之前,有一些地方需要修改,先去 /music-website/music-server/src/main/resources 这个目录下的文件里修改自己的 spring.datasource.username 和 spring.datasource.password,并且修改下圈出来的的文件中 MyPicConfig 类下的 addResourceLocations方法中的路径,否则资源加载不了。(Mac 和 win 下路径有些差异,我的是 Mac 上的路径,win 上需要在 file: 后标明是哪个盘,例如:"file:C:\\user\\XXX\\")

4、启动项目

music-server 是本项目的后端,用于监听前端发来的请求,提供接口。music-client 和 music-manage 都是本项目的前端部分,前者是前台,后者是后台。运行时后端必须启动,两个前端项目可以都启动,也可以只启动其中一个,他们是独立的。

然后进入 music-server 文件夹,运行下面命令启动服务器

// 方法一
./mvnw spring-boot:run

// 方法二
mvn spring-boot:run // 前提装了 maven

进入 music-client 文件夹,运行下面命令启动前台项目

npm install // 安装依赖

npm run dev // 启动前台项目

进入 music-manage 文件夹,运行下面命令启动后台管理项目

npm install // 安装依赖

npm run dev // 启动后台管理项目

License

Copyright (c) 2018 Yin-Hongwei

music-website's People

Contributors

yin-hongwei avatar dependabot[bot] avatar

Watchers

James Cloos 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.