A fullstack demo used Vue2 & Koa2(Koa1 version is here)
View the article for more details.
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.
Beacuse of using Koa2, Node.js >= v7.6.0
is needed.
npm run dev
&& node app.js
open browser: localhost:8080
tips: login password is 123
npm run build
and then node app.js
open browser: localhost:8889
tips: login password is 123
Copyright (c) 2017 Molunerfinn