Git Product home page Git Product logo

blog-page's Introduction

前言

此 nuxt-blog 项目是基于 nuxt 服务器渲染(SSR)构建

效果图

首页 留言

完整效果请看:http://sdjBlog.cn/

功能描述

已经实现功能

  • 注册登录
  • 文章列表
  • 友情链接
  • 文章点赞评论
  • 文章归档
  • 项目列表
  • 留言列表
  • 看板娘背景

技术库依赖

  • @nuxtjs/axios (API请求)
  • @nuxtjs/style-resources (scss公共文件引入)
  • element-ui (组件库)
  • highlight.js (代码高亮)
  • moment (时间格式处理)
  • nprogress (进度条)
  • nuxt (Vue框架)

项目结构


- assets 资源文件(图片、css和字体图标)
- components
  - RaindropCanvas   下雨特效
  - BackTop  返回顶部
  - EmptyShow  空状态
  - HeaderNav   头部导航
  - MyForm   表单封装
  - SideBar   侧边栏
  - TagBox   标签展示
- layouts 布局入口页面
- pages
  - article   嵌套路由
    - page
      - _num  文章列表
    - archive 文章归档
    - project 项目列表
  - articleDetail
    - _id 文章详情
  - article 文章列表头部及侧边栏
  - index 默认首页路由
  - message 留言列表
- plugins 插件封装
- static 看板娘、背景资源等
- store Vuex状态管理
- utils 表单校验、标题目录导航和时间格式化等一些常用方法封装
- nuxt.config 个性化配置

说明

  • 线上使用pm2部署,把.nuxt、static、nuxt.config.js和package.json文件放到服务器上,执行npm install安装依赖,pm2 start npm --name "nuxtBlog" -- run start来启动服务,package.json中config配置端口

建立安装

# 安装依赖
$ npm install

# 开发环境
$ npm run dev

# 打包生产环境
$ npm run build
$ npm run start

# 静态打包
$ npm run generate

项目地址:

前台展示:https://gitee.com/sdj_work/blog-page(Vue/Nuxt/uni-app)

管理后台:https://gitee.com/sdj_work/blog-admin(Vue/React)

后端Node:https://gitee.com/sdj_work/blog-node(Express/Koa)

博客地址:https://sdjBlog.cn/

项目系列文章:

Vue+Nuxt 博客展示

Vue+uniapp 博客展示

Vue+ElementUI 后台博客管理

node + koa + mongodb 博客接口开发

node + express + mongodb 博客接口开发

blog-page's People

Contributors

sudaojun 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.