:beginner:A simple full stack demo(CSR & SSR & Docker Support) written by Vue2 & Koa2(Koa1 verson also completed)
:beginner:A simple full stack demo(CSR & SSR & Docker Support) written by Vue2 & Koa2(Koa1 verson also completed)
A fullstack demo used Vue2 & Koa2(Koa1 version is here)
:sunny: Easy to setup and learn
:100: Api test coverage
:rocket: Instant feedback
:stuck_out_tongue_winking_eye: Vue SSR support in the ssr branch
:tada: Docker support
View the article for more details.
If you want to check the info of the test, view the article for more details.
git clone https://github.com/Molunerfinn/vue-koa-demo.git
npm install or yarn
if you are using yarn & meet this error:
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 Node.js & Docker support. **You need to create a `.env` file as above**.
### Node.js
Beacuse of using Koa2, `Node.js >= v7.6.0` is needed.
#### Development:
`npm run dev` && `npm run server`
open browser: `localhost:8080`
> tips: login password is 123
#### Production:
`npm run start`
open browser: `localhost:8889`
> tips: login password is 123
#### Test:
`npm run test` and find the coverage report in the `coverage/lcov/index.html`
### Docker
`docker-compose build` && `docker-compose up`
> mysql in docker use 3306 port inside & outside.
open browser: `localhost:8889`
> tips: login password is 123
## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2017 MolunerfinnNo open issues yet, or sync has not completed.