Skip to content

BitSaber/incy-io-kiosk-frontend

Repository files navigation

Kiosk Frontend

Build Status Quality Gate Lines Percentage of comments Complexity to function Test errors Test failures Test success density Unti Test Coverage Integration Test Coverage Overall Test Coverage Duplicated Lines Density Blocker Violations Critical Violations Code Smells Bugs Vulnerabilities Technical Debt Ratio New Maintainability Rating New Reliability Rating New Security Rating

This repository holds the open source code for a Kiosk frontend application.

How do I get set up?

To start, you need to have yarn installed. This can be done according to yarn installation guide. When this is done, install the dependencies needed for developing this project by running yarn install. After this, you should be able to run yarn start, and navigage to the dev server running on port 3000. In case you are running your browser from a different computer than you are running yarn from, please use the IP or hostname of the computer running yarn instead of localhost.

When hopping different branches, it might be a good idea to run rm -rf node_modules && yarn install to have a clean set of dependencies.

CI/CD

When making pull requests and branches, Jenkins accompanied by SonarQube will automatically verify that the code is good enough. Jenkins also won't let you merge anything unless the CI pipeline succeeds.

Jenkins Pipeline

Below you will find an example of our CI/CD pipeline

Jenkins CI Pipeline

Running Robot Tests Outside Jenkins

Start the docker image:

docker run \
    --name jenkins-docker-robot-chrome \
    -v $(pwd):/home/jenkins/incy-io-kiosk-frontend \
    --rm \
    -d \
    --privileged \
    docker.bitsaber.net/devops/jenkins-chrome-71:latest

Attach to it:

docker exec -it jenkins-docker-robot-chrome su - jenkins

Configure PATH and start dev server:

PATH="/opt/tools/yarn/yarn-v1.12.3/bin:/opt/tools/nodejs/node-v11.4.0-linux-x64/bin:$PATH"
cd incy-io-kiosk-frontend
yarn start &>/dev/null &

Run robot

robot -d robot_reports __tests__/robot

Stop the docker image:

docker stop jenkins-docker-robot-chrome

Authors

BitSaber

About

Frontend component of the product

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published