Giter Site home page Giter Site logo

web-music's Introduction

web-music

北京化工大学应用软件实践——一个简单的web-music后台管理系统

参与者:Ice-Jeffrey carjeff Car Jeff

文件功能

music-server——项目的后端

music-manage——项目后台管理的前端

项目简介

前端:

采用vue全家桶,使用nginx部署到服务器上

进入前端目录,先npm run install安装依赖

执行npm run dev启动开发环境

执行npm run prod进行打包,打包目录是admin

后端:

springboot + mybatis + maven3.6.2 + mysql8.0^

默认启动的是本地环境,也可指定启动环境文件,本地在导入数据库后,只需要将img文件夹放到src同级目录下即可启动运行。


采用以下命令可部署到服务器上,需要指定线上环境:

nohup java -jar music-0.0.1-SNAPSHOT.jar --spring.profiles.active=prod > temp.txt 2>&1 &

由于项目涉及到文件上传功能,下面说说解决方法:

改变springboot静态资源映射路径,不把图片等资源存放到resources下,而是存储到外挂目录——在src同级目录下的img中。这样做的好处是:打包可以不用将静态资源打包,静态资源在项目运行中是会动态增加的,这样做方便管理。但带来的问题是:后端部署到服务器上回造成资源路径找不到,这时需要配置nginx静态资源服务器:

image-20210119201226597

然后,在服务器中将资源文件放到jar包的同级目录即可访问资源。

版权信息

本源码遵循MIT开源协议发布,并提供免费使用。

web-music's People

Contributors

carjeff avatar floweryu avatar ice-jeffrey avatar

Watchers

 avatar

Forkers

ice-jeffrey

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.