GithubHelp home page GithubHelp logo

andersnylund / incy-io-kiosk-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitsaber/incy-io-kiosk-frontend

0.0 3.0 0.0 1.25 MB

Frontend component of the product

License: MIT License

Dockerfile 0.11% JavaScript 96.67% RobotFramework 1.85% CSS 0.08% HTML 1.29%

incy-io-kiosk-frontend's Introduction

incy.io Kiosk Frontend

Build Status Quality Gate Lines Percentage of comments Complexity to function Test errors Test failures Test success density Unti 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 incy.io Kiosk frontend component.

How do I get set up?

These steps primarily apply to a non-Windows platform, but it is absolutely possible developing on Windows too.

git clone https://github.com/BitSaber/incy-io-kiosk-frontend.git
  • cd into the cloned folder i.e.
cd incy-io-kiosk-frontend
  • Install project dependencies i.e.
yarn install
  • Start the appliaction, defaults to 0.0.0.0:3000 which can be accessed by visiting localhost:3000 i.e.
yarn start

CI/CD

When making pull requests and branches, Jenkins will run an automated CI/CD pipeline, using technologies such as SonarQube, Robot Framework and Selenium, to name a few. This assures a baseline for code quality. Jenkins delivers the CI/CD Pipeline results to GitHub, and this will assist in preventing the merging of suboptimal code into protected branches.

Jenkins Pipeline

An image of the current CI/CD pipeline is presented below

Jenkins CI Pipeline

Running Robot Tests Outside Jenkins

These commands are assumed to be run from the root directory of this repository.

outside docker Start the docker container:

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

outside docker Attach to it:

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

inside docker 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 &

inside docker Run robot:

robot -d robot_reports __tests__/robot

outside docker Stop the docker image:

docker stop jenkins-docker-robot-chrome

Authors

BitSaber

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.