Dongsipan / vue-koa-demo

A simple full stack demo written by Vue2 & Koa1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-koa-demo

A fullstack demo used Vue2 & Koa1.

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

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 & Koa1

License:MIT License


Languages

Language:JavaScript 72.1%Language:Vue 26.9%Language:HTML 1.0%