GithubHelp home page GithubHelp logo

leetia316 / justyeh.com Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justyeh/nuxt.justyeh.top

0.0 1.0 0.0 4.07 MB

Vue.js+Nuxt.js+Es6+Webpack+Mysql+Noyde.js+Express.js构建的SSR博客网站

Home Page: http://www.justyeh.com

JavaScript 85.29% CSS 4.43% Vue 8.68% HTML 1.60%

justyeh.com's Introduction

justyeh.com

以前的博客使用的是Ghost,不过被攻击了,勒索我几百美元,还是算了吧,顺便说一句,数据备份很重要!前段时间学了Vue.js,以前看的Node还能记起来点,主要为了锻炼自己吧,这次的博客没有用Hexo,Ghost什么的,自己写的。由于有SEO的需求,毕竟自己写自己看也没什么意思,最终的使用的技术方案:Vue.js+Nuxt.js+ES6+Webpack+Mysql+Noyde.js+Express.js。动手之前其实还有很多东西不是很熟,不过最终也算是完成了,这个项目给了我一个启发:实践是学习的最快途径,看再多次文档真不如动手写一个项目来的实在。

在线地址 www.justyeh.com

博客:使用Nuxt+Vue+Node构建的SSR博客项目

技术栈

Vue.js+Nuxt.js+Es6+Webpack+Mysql+Noyde.js+Express.js

运行

#安装依赖
npm install

#开发环境
npm run dev

#生产环境
npm run build
npm start

#运行地址
http://localhost:3000

数据库文件

数据库文件放在database目录下:

database:database.sql

tables:justyeh.sql

目录结构

/justyeh/justyeh.com/
├── assets                              资源目录 assets 用于组织未编译的静态资源如 LESS、SASS 或 JavaScript
├── backpack.config.js                  后台入口配置文件
├── build                               打包后的文件
├── components                          存放组件,用于组织应用的 Vue.js 组件
│   ├── admin                           后台相关的组件
│   ├── ....
├── database                            存放数据库文件的目录(自己添加)
├── layouts                             布局模板文件,默认default,通过为页面设置layout更改
│   ├── ....
├── middleware                          存放应用的中间件
├── node_modules                        Node依赖文件
├── nuxt.config.js                      Nuxt主配置文件
├── pages                               存放页面的目录
│   ├── index.vue                       首页
│   ├── ....
├── plugins                             存放插件,用于组织那些需要在 根vue.js应用 实例化之前需要运行的 Javascript 插件
│   └── axios.js
├── README.md                           README
├── server                              express后台目录
│   ├── index.js                        后台入口文件
│   ├── ....
├── static                              静态文件目录,此类文件不会被 Nuxt.js 调用 Webpack 进行构建编译处理。 服务器启动的时候,该目录下的文件会映射至应用的根路径 / 下
└── util                                存放一些工具文件(自己添加)

参考资料

Vue.js

Vue Router

Nuxt.js

express

Node-MySQL

justyeh.com's People

Watchers

芒果君 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.