https://github.com/amirfefer/provisioning-frontend
https://github.com/amirfefer/provisioning-frontend
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/amirfefer/provisioning-frontend
- Owner: amirfefer
- License: apache-2.0
- Created: 2022-05-03T12:55:09.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-03T12:55:11.000Z (about 4 years ago)
- Last Synced: 2025-02-13T17:17:44.591Z (over 1 year ago)
- Language: JavaScript
- Size: 273 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/RedHatInsights/frontend-starter-app)
# frontend-starter-app
React.js starter app for Red Hat Insights products that includes Patternfly 4 and shared Red Hat cloud service frontend components.
## Alternative
Before using this template, please check the [create-crc-app](https://github.com/RedHatInsights/frontend-components/blob/master/packages/docs/pages/ui-onboarding/create-crc-app.md). It has some extra setup you may like.
## Initial etc/hosts setup
In order to access the https://[env].foo.redhat.com in your browser, you have to add entries to your `/etc/hosts` file. This is a **one-time** setup that has to be done only once (unless you modify hosts) on each machine.
To setup the hosts file run following command:
```bash
npm run patch:hosts
```
If this command throws an error run it as a `sudo`:
```bash
sudo npm run patch:hosts
```
## Getting started
1. ```npm install```
2. ```PROXY=true npm run start:beta```
3. Open browser in URL listed in the terminal output
Update `config/dev.webpack.config.js` according to your application URL. [Read more](https://github.com/RedHatInsights/frontend-components/tree/master/packages/config#useproxy).
### Testing
`npm run verify` will run `npm run lint` (eslint) and `npm test` (Jest)
## Deploying
- The starter repo uses Travis to deploy the webpack build to another Github repo defined in `.travis.yml`
- That Github repo has the following branches:
- `ci-beta` (deployed by pushing to `master` or `main` on this repo)
- `ci-stable` (deployed by pushing to `ci-stable` on this repo)
- `qa-beta` (deployed by pushing to `qa-beta` on this repo)
- `qa-stable` (deployed by pushing to `qa-stable` on this repo)
- `prod-beta` (deployed by pushing to `prod-beta` on this repo)
- `prod-stable` (deployed by pushing to `prod-stable` on this repo)
- Travis uploads results to RedHatInsight's [codecov](https://codecov.io) account. To change the account, modify CODECOV_TOKEN on https://travis-ci.com/.