vue-koa-demo
A fullstack demo used Vue2 & Koa2(Koa1 version is here)
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
Copyright (c) 2017 Molunerfinn