Code Monkey home page Code Monkey logo

vue2.0-vuex2.0-demo-jianshu's Introduction

vue2.0-demo-jianshu

用Vue2.0全家桶搭建的简书网站,这是一个前后端连通的整体网站,包括了数据库配置。前端采用Vue2.0,服务端采用Express框架

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

tips

  • 数据库配置

如果需要在本地跑通整个程序的话,需要在本地进行数据库的配置,配置信息写在dbUtil/dbConnection.js文件中,sql语句参照jianshu.sql文件

  • Vue2.0

  • Vue-Resource

发送http请求

  • Vuex

数据存储

  • 服务端框架

使用Express,搭建server,使用NodeJS编写服务端代码

  • 写文章

集成了富文本编辑器,方便写出精美文章

vue2.0-vuex2.0-demo-jianshu's People

Contributors

zhouxiongking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vue2.0-vuex2.0-demo-jianshu's Issues

项目启动失败,注册可以插入数据,但是无法登录?

Error: Cannot find module 'mysql'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (E:\WebstromProject\vue2.0-vuex2.0-demo-jianshu-master\dbUtil\dbConnection.js:5:13)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (E:\WebstromProject\vue2.0-vuex2.0-demo-jianshu-master\dbUtil\userDbUtil.js:5:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)

mysql 模块安装成功后,即可运行:

E:\WebstromProject\vue2.0-vuex2.0-demo-jianshu-master>npm run dev

[email protected] dev E:\WebstromProject\vue2.0-vuex2.0-demo-jianshu-master
node build/dev-server.js

body-parser deprecated bodyParser: use individual json/urlencoded middlewares build\dev-server.js:21:9
body-parser deprecated undefined extended: provide extended option node_modules\body-parser\index.js:105:29
express-session deprecated undefined resave option; provide resave option build\dev-server.js:27:9
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option build\dev-server.js:27:9
Listening at http://localhost:8083

webpack: wait until bundle finished: /index.html
webpack built 3ffa28d23b0f96cb75f1 in 6917ms
Hash: 3ffa28d23b0f96cb75f1
Version: webpack 1.15.0
Time: 6917ms
Asset Size Chunks Chunk Names
static/img/jianshu_logo.1c609f8.jpg 27.4 kB [emitted]
static/img/download_img2.7a21a2a.png 458 kB [emitted]
static/img/hot-special.58f8968.png 15.7 kB [emitted]
app.js 3.41 MB 0 [emitted] app
index.html 393 bytes [emitted]
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 1.47 MB 0
webpack: Compiled successfully.

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.