Skip to content

Sample of dockarized VueJS 2, with routes, testing, vuex, apollo client and TailwindCSS. Uses Github Workflow.

License

Notifications You must be signed in to change notification settings

calitb/Sample-VueJS

Repository files navigation

Deploy Production Netlify Status

VueJS Sample

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run production build

npm start

Run your unit tests

npm run test:unit

Lints and fixes files

npm run lint

GraphQL

Types generation

Write your queries in ./src/queries, and then run:

npx apollo client:codegen [OPTIONS] --target=typescript --includes='./src/queries/**.ts' --no-addTypename --outputFlat './src/types'

here are the OPTIONS that must be passed:

--endpoint=<url>
# url of GraphQL endpoint

Docker

Run latest production image

docker run --rm -p 80:5000 docker.pkg.github.com/calitb/vuejs-sample/demo

About

Sample of dockarized VueJS 2, with routes, testing, vuex, apollo client and TailwindCSS. Uses Github Workflow.

Topics

Resources

License

Stars

Watchers

Forks

Packages