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:
npm run patch:hosts
If this command throws an error run it as a sudo
:
sudo npm run patch:hosts
Getting started
-
npm install
-
npm run start
-
Open browser in URL listed in the terminal output
-
Currently, App.tsx
will throw a type error until your app is registered and a navId
has been set
Update config/dev.webpack.config.js
according to your application URL. Read more.
Testing
npm run verify
will run npm run lint
(eslint) and npm test
(Jest)