Coder Social home page Coder Social logo

fanlei1988 / vue-koa-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from molunerfinn/vue-koa-demo

0.0 1.0 0.0 127 KB

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

License: MIT License

JavaScript 73.21% HTML 0.96% Vue 25.83%

vue-koa-demo's Introduction

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

vue-koa-demo's People

Contributors

gengjiawen avatar molunerfinn avatar

Watchers

 avatar

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.