Coder Social home page Coder Social logo

libin1991 / layblog-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from beijing-xiaotinghua/layblog-ui

1.0 0.0 0.0 5.73 MB

基于vue nuxt.js element-ui打造的开源博客系统,页面通过服务器端渲染,更适合SEO, 线上效果: https://bw31d.com

JavaScript 50.85% CSS 29.38% Vue 19.77%

layblog-ui's Introduction

基于vue nuxt element-ui 打造,采用服务器端渲染ssr技术,更利于seo线上预览

效果图

image

安装

 git clone https://github.com/beijing-xiaotinghua/layBlog-ui.git 

安装包依赖

 npm install

使用cnpm安装包依赖更快,首先安装cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install

运行

运行发开环境

npm run dev

本地访问http://localhost:3000

打包部署,打包部署必须在服务器端

首先打包编译项目

npm run build

运行项目

npm run start

建议使用pm2管理npm进程

安装pm2

cnpm install -g pm2

pm2运行项目

执行时确保已经在项目根目录

pm2 start ./node_modules/nuxt/bin/nuxt -- start

pm2查看项目列表

pm2 list

pm2关闭项目

pm2 stop id

pm2启动项目

pm2 start id

在真实的服务器环境中运行项目

配置nginx反向代理

server {
  listen 80;
	server_name  your domain;
  root /var/www/html/layadmin-blog-ui;
  index  index.php index.html index.htm;
  location / {
	  proxy_pass http://127.0.0.1:3000;
  }
}

以上只是能够确保运行的简洁配置,生产环境中根据需要自行增加配置

功能说明

  • 使用nuxt.js做服务端渲染ssr.
  • 使用element-ui 组件库.
  • 使用axios网络请求库
  • 使用了layui前端css样式
  • 使用了短信验证码登陆、注册
  • 实现了评论、点赞功能

线上服务预览

See layBlog-ui.

本地后端接口配置

修改nuxt.config.js文件, 根据需要修改你的接口地址

proxy: [
  ['/api', { target: 'http://api.bw31d.com' }]
]

修改plugins/axios.js文件

if (process.server) {
  options.baseURL = 'http://api.bw31d.com'
}

后台管理系统截图

image image

加qq群大家一起交流

image

需要后端接口代码和后台管理系统联系作者购买(399元)

购买之后即代表授权整套项目,可以用作商业项目,但是禁止二次销售,传播源码;

image

授权说明

此项目仅供参考学习,商业用途,请联系作者授权,此源码禁止传播。

下一步开发计划

  1. 关注功能
  2. 私信功能
  3. 加入es搜索引擎,提供全文检索功能

layblog-ui's People

Contributors

beijing-xiaotinghua avatar buptzlk avatar zhulukun avatar

Stargazers

 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.