Yama-Tomo / vue-vuex-typescript-sample

vuex tutorial and nuxt.js sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vuex tutorial + typescript + nuxt.js

CircleCI codecov

➡️ vue.js only branch

get started

  • create .env file

    • This repository include .env.sample file
    $ cp .env.sample .env
    $ # customize your .env file
  • enable yarn wrapper shell

    $ source .npm_scripts/yarn-with-dotenv
  • starting server

    $ docker-compose up -d

    or, If you want to launch nuxt server on host machine.

    $ docker-compose up -d backend
    $ yarn && yarn dev
  • test

    $ docker-compose run puppeteer sh -c 'yarn && yarn sb:build && yarn test'

    or, If you want to run jest on host machine.

    $ yarn && yarn sb:build && yarn test

    NOTICE: visual tests are skipped when run test on host machine. Because occurs test result difference when use the puppeteer installed on each platform

note

This repository is manage expect files of snapshot testing by git lfs, so you need to install git lfs.

Already installed git hooks by husky if you already clone this repository, In that case, please install the hooks manually by git lfs update --manual after install git lfs

About

vuex tutorial and nuxt.js sample


Languages

Language:TypeScript 36.3%Language:Ruby 28.7%Language:Vue 18.5%Language:JavaScript 7.9%Language:HTML 4.7%Language:Shell 2.1%Language:Dockerfile 1.2%Language:CSS 0.6%Language:SCSS 0.1%