tomfordweb / jamstore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

First, Generate the image.

docker build -t <image> .

Development Build (hot reloading)

docker run -p 8000:8000 -v $(pwd):/app <image> dev

Static Build

docker run -p 8000:8000 <image>

Testing

Unit tests

docker run <image> -v $(pwd):/app run test

Cypress Tests

By default, cypress is not installed with the application. It is preferred to use their docker image to test with this.

Cypress Tests are a little trickier. You must create a network to allow the containers to communicate with one another.

docker network create  <network>
docker run --network <network> --name <hostname-for-cypress> <image>
docker run --network <network> -v $(pwd):/e2e -w /e2e cypress/included:3.2.0

Any test output is saved to the cypress directory.

CI/CD Notes

Generate static build locally to be worked with.

docker run -v $(pwd)/dist:/app/dist jamstore generate

About


Languages

Language:Vue 51.0%Language:JavaScript 47.4%Language:Dockerfile 1.0%Language:SCSS 0.6%