就是一个听歌的项目,不详细说了,用途请自测,DEMO:https://link.hhtjim.com/


目前和作者的一样不能使用,期待更新。

安装

只测试了Centos7,其他应该雷同,详细参见Build Setup

首先安装npm:

[root@server ~]# yum install npm
···························
Total download size: 7.4 M
Installed size: 26 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): libuv-1.30.1-1.el7.x86_64.rpm                                                      | 138 kB  00:00:00     
(2/3): npm-3.10.10-1.6.17.1.1.el7.x86_64.rpm                                              | 2.5 MB  00:00:00     
(3/3): nodejs-6.17.1-1.el7.x86_64.rpm                                                     | 4.7 MB  00:00:02     
-----------------------------------------------------------------------------------------------------------------
Total                                                                            3.1 MB/s | 7.4 MB  00:00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:libuv-1.30.1-1.el7.x86_64                                                                   1/3 
  Installing : 1:npm-3.10.10-1.6.17.1.1.el7.x86_64                                                           2/3 
  Installing : 1:nodejs-6.17.1-1.el7.x86_64                                                                  3/3 
  Verifying  : 1:libuv-1.30.1-1.el7.x86_64                                                                   1/3 
  Verifying  : 1:npm-3.10.10-1.6.17.1.1.el7.x86_64                                                           2/3 
  Verifying  : 1:nodejs-6.17.1-1.el7.x86_64                                                                  3/3 
Installed:
  npm.x86_64 1:3.10.10-1.6.17.1.1.el7                                                                            
Dependency Installed:
  libuv.x86_64 1:1.30.1-1.el7                            nodejs.x86_64 1:6.17.1-1.el7                           
Complete!

下载

https://github.com/Hootrix/linkFrontEnd

[root@server ~]# git clone https://github.com/Hootrix/linkFrontEnd.git
Cloning into 'linkFrontEnd'...
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 256 (delta 2), reused 7 (delta 2), pack-reused 245
Receiving objects: 100% (256/256), 304.21 KiB | 85.00 KiB/s, done.
Resolving deltas: 100% (104/104), done.

进入文件夹安装

[root@server ~]#cd linkFrontEnd
[root@server linkFrontEnd]# npm install

安装过程需要几分钟。

运行

[root@server linkFrontEnd]# npm run dev
> [email protected] dev /www/wwwroot/url.img.i.ng/linkFrontEnd
> node build/dev-server.js
> Starting dev server...

运行完毕显示:

 DONE  Compiled successfully in 5813ms                                                                 1:24:10 PM
> Listening at http://localhost:8080

查看

防火墙打开8080端口
这就可以通过IP:8080访问了

错误

第一次启动遇到错误如下:

 ERROR  Failed to compile with 2 errors                                                                1:22:49 PM
These dependencies were not found:
* axios in ./src/config/http.js
* vue-slide-up-down in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/index.vue
To install them, you can run: npm install --save axios vue-slide-up-down

根据提示运行:

[root@server linkFrontEnd]# npm install --save axios vue-slide-up-down

然后再npm run dev启动一次就成功了。

其他


这是个部署记录,不是教程。
作者提供的一些命令,本人只到这里能用就行了,因为其它的看不懂不敢乱试。有大佬懂的留言,感谢。

# 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

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test
Last modification:October 12, 2019
如果觉得我的文章对你有用,请随意赞赏