Skip to content

Commit

Permalink
Cleanup repo
Browse files Browse the repository at this point in the history
  • Loading branch information
leSamo committed Mar 5, 2024
1 parent 91dd16b commit b12307c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 34 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ codecov*
# cypress
cypress/downloads
cypress/screenshots
cypress/videos
cypress/videos

# cache
.cache/
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ Red Hat Vulnerability for OpenShift service is used to assess and monitor the st
3. Make sure you are using [Red Hat proxy](http://hdn.corp.redhat.com/proxy.pac)

## Running locally
1. Install dependencies with `npm install`
2. Run development server with `npm run start:proxy:beta`
3. Local version of the app will be available at https://stage.foo.redhat.com:1337/preview/openshift/insights/vulnerability/
1. Make sure you are connected to the Red Hat VPN
2. Install dependencies with `npm install`
3. Run development server with `npm run start` and select desired environment (`stage-preview` is recommended)
4. Local version of the app will be available at URL printed out to the console (https://stage.foo.redhat.com:1337/preview/openshift/insights/vulnerability/ if you selected `stage-preview`)

## Testing
[Cypress](https://cypress.io/) is used as the testing framework
Expand All @@ -20,18 +21,18 @@ Red Hat Vulnerability for OpenShift service is used to assess and monitor the st
- ```npm run lint``` - run linter

## Code Coverage
1. Make sure ```npm run test``` and ```npm run test:ct``` are ran before the coverage
1. Make sure ```npm run test``` are ran before the coverage
2. Run ```npm run coverage```

## Deploying
Any push to the following branches will trigger a build in [vuln4shift-frontend-build repository](https://github.com/RedHatInsights/vuln4shift-frontend-build) which will deploy to corresponding environment. Travis is used to deploy the application.

| Push to branch in this repo | Updated branch in build repo | Environment | Available at
| :--------------------------- | :---------------------------- | :---------------- | :-----------
| master | stage-beta | stage beta | https://console.stage.redhat.com/preview
| master | stage-stable | stage stable | https://console.stage.redhat.com
| prod-beta | prod-beta | production beta | https://console.redhat.com/preview
| prod-stable | prod-stable | production stable | https://console.redhat.com
The app uses containerized builds which are configured in [`app-interface`](https://gitlab.cee.redhat.com/service/app-interface/-/blob/master/data/services/insights/ocp-vulnerability/deploy.yml).

| Environment | Available at | Deployed version
| :----------------- | :--------------------------------------- | :----------
| stage preview | https://console.stage.redhat.com/preview | master branch
| stage stable | https://console.stage.redhat.com | master branch
| production preview | https://console.redhat.com/preview | up to the commit configured in `app-interface`
| production stable | https://console.redhat.com | up to the commit configured in `app-interface`

## Design System
This project uses [Patternfly React](https://github.com/patternfly/patternfly-react).
Expand Down
21 changes: 0 additions & 21 deletions config/prod.webpack.config.js

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b12307c

Please sign in to comment.