Skip to content

A simple full stack demo written by Vue2 & Koa2(Koa1 verson also completed)

License

Notifications You must be signed in to change notification settings

fanlei1988/vue-koa-demo

 
 

Repository files navigation

vue-koa-demo

A fullstack demo used Vue2 & Koa2(Koa1 version is here)

Todolist

View the article for more details.

Install

git clone https://github.com/Molunerfinn/vue-koa-demo.git

npm install or yarn

Also you need to install MySQL & create a database named todolist,and execute 2 sql files list.sql & user.sql.Their are in sql/

After that, You need to change the password for mysql user. -> server/config/db.js

find mysql://root:XXXX@localhost/todolist and change the XXXX into your own password.

Run

Node.js

Beacuse of using Koa2, Node.js >= v7.6.0 is needed.

Development:

npm run dev && node app.js

open browser: localhost:8080

tips: login password is 123

Production:

npm run build and then node app.js

open browser: localhost:8889

tips: login password is 123

License

MIT

Copyright (c) 2017 Molunerfinn

About

A simple full stack demo written by Vue2 & Koa2(Koa1 verson also completed)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.2%
  • Vue 25.8%
  • HTML 1.0%