All Projects → Hzy0913 → my-blog

Hzy0913 / my-blog

Licence: other
🐬 个人技术博客(基于vue的服务端渲染 nuxt.js)

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
Vue
7211 projects

Projects that are alternatives of or similar to my-blog

Surmon.me
🆒 My personal website and blog, powered by @vuejs (3)
Stars: ✭ 1,767 (+1779.79%)
Mutual labels:  ssr, nuxt, nuxt-blog
Google Optimize Module
SSR friendly Google Optimize module for Nuxt.js
Stars: ✭ 180 (+91.49%)
Mutual labels:  ssr, nuxt
Auth Module
auth.nuxtjs.org
Stars: ✭ 1,624 (+1627.66%)
Mutual labels:  ssr, nuxt
Wp Nuxt
The module adds WP-API to your nuxt application.
Stars: ✭ 179 (+90.43%)
Mutual labels:  ssr, nuxt
Vue Masonry Wall
A pure vue responsive masonry layout without direct dom manipulation and ssr support.
Stars: ✭ 79 (-15.96%)
Mutual labels:  ssr, nuxt
Sails Nuxt
Sails + Nuxt + Vuetify Combo <3
Stars: ✭ 92 (-2.13%)
Mutual labels:  ssr, nuxt
Nuxt Env
Inject env vars for your Nuxt app at runtime
Stars: ✭ 169 (+79.79%)
Mutual labels:  ssr, nuxt
unnue-nuxt
开媛笔记,基于nuxt ssr首屏服务器端渲染 ⚡。用于分享、记录、交流和学习,希望可以帮助到小伙伴们。同时网站在永久更新,备好鸡血,一起来战 Ooh aah!
Stars: ✭ 98 (+4.26%)
Mutual labels:  nuxt, nuxt-blog
Nuxt Wordpress Pwa
Wordpress + Vue + Nuxt.js
Stars: ✭ 251 (+167.02%)
Mutual labels:  ssr, nuxt
Vue Gates
🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
Stars: ✭ 184 (+95.74%)
Mutual labels:  ssr, nuxt
Laravel Vuejs.com
Laravel and VueJs Blog, using Laravel nova, GraphQL, NuxtJs, Apollo and ...more
Stars: ✭ 54 (-42.55%)
Mutual labels:  ssr, nuxt
nuxt-ssr-firebase
A example repo for using nuxt with firebase hosting and cloud functions
Stars: ✭ 58 (-38.3%)
Mutual labels:  nuxt, nuxt-demo
Hapi Nuxt
Nuxt.js plugin for Hapi.js
Stars: ✭ 46 (-51.06%)
Mutual labels:  ssr, nuxt
Naice Blog
😺 新的博客上线啦
Stars: ✭ 93 (-1.06%)
Mutual labels:  ssr, nuxt
Virapro.ru
[E-commerce] Plumbing Store
Stars: ✭ 45 (-52.13%)
Mutual labels:  ssr, nuxt
Axios Module
Secure and easy axios integration with Nuxt.js
Stars: ✭ 998 (+961.7%)
Mutual labels:  ssr, nuxt
Nuxt Static Render
Nuxt module for SSR without rehydration payload
Stars: ✭ 32 (-65.96%)
Mutual labels:  ssr, nuxt
Veluxi Starter
Veluxi Vue.js Starter Project with Nuxt JS and Vuetify
Stars: ✭ 39 (-58.51%)
Mutual labels:  ssr, nuxt
Robots Module
NuxtJS module for robots.txt
Stars: ✭ 180 (+91.49%)
Mutual labels:  ssr, nuxt
graphX
A simple blog based on Nuxt and graphQL
Stars: ✭ 19 (-79.79%)
Mutual labels:  nuxt, nuxt-blog

vue服务端渲染博客,基于nuxt

安装

 git clone [email protected]:Hzy0913/my-blog.git

安装包依赖

 npm install

运行

运行发开环境

npm run dev

本地访问 http://localhost:3000

打包部署

tip:生产环境打包需要在服务端进行! 首先打包编译项目

npm run build

运行项目

npm run start

推荐生产环境使用如下命令执行pm2部署

推荐全局安装pm2

第一次部署使用firstserver命令

npm run firstserver

以后每次更新代码执行server命令

npm run server

暂停服务执行stop命令

npm run stop

查看服务状态执行list命令

npm run list

该命令会编译打包项目,然后启动一个pm2守护进程服务,具体可见package中的npm script

项目说明

  • 使用nuxt.js的vue服务端渲染ssr.
  • 使用element-ui 组件库.
  • 使用axios请求库
  • 使用github的Oauth授权登录,评论系统
  • 使用marked解析markdown文档
  • 使用highlight完成代码格式语法高亮

在线预览

See BinLive.

本地预览

想要在本地开发环境运行完整线上模式,可以转发调用binlive线上环境接口。 修改nuxt.config.js文件

// 将下面接口调用地址
proxy: [
  ['/api', { target: 'http://localhost:3080' }]
]
// 修该成binlive线上地址
proxy: [
  ['/api', { target: 'http://binlive.cn:3080' }]
]

修改plugins/axios.js文件

// 将下面接口调用地址
if (process.server) {
  options.baseURL = 'http://localhost:3080'
}
// 修该成binlive线上地址
if (process.server) {
  options.baseURL = 'http://binlive.cn:3080'
}

commit

由于spa对于seo不友好,重构了之前使用vue的spa形式的博客,使用nuxt.js

博客后端

博客的后端以及后台管理系统项目为博客后端项目。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].