-
Notifications
You must be signed in to change notification settings - Fork 0
How to test console UI
Cesar Celis edited this page Dec 3, 2024
·
4 revisions
- To modify ui you can play around with
portal-ui/src/screens/Console/HealthInfo/HealthInfo.tsx
-
yarn build
when you want to have all in the binary to test in 9090 for example <--- when we see bunch of red files gst. -
yarn install
to directly test in port 5005 without having to build to test in 5005 <--- faster
Advantage: You can change UI and see reflected the change right away.
- MinIO
MINIO_ROOT_USER=minio MINIO_ROOT_PASSWORD=minio123 minio server /Volumes/data{1...4} --address :9000 --console-address :9001
- console server
sudo rm -rf ~/go
cd ~/console
make install
~/go/bin/console server
- 5005
cd ~/console/web-app
yarn install
yarn run start
Disadvantage: You cannot change UI and see reflected the change right away. Rather you will have to recompile and run binary all over after each change.
-
Change the UI in something is visible and you can remember.
-
MinIO
MINIO_ROOT_USER=minio MINIO_ROOT_PASSWORD=minio123 minio server /Volumes/data{1...4} --address :9000 --console-address :9001
- Build Assets
cd /Users/cniackz/console/portal-ui
yarn && yarn build
- Create the Binary with the built assets on it
cd /Users/cniackz/console
make
./console server
- Now you will see the change on the UI on port 9090 because you compiled GO Binary with Built Assets inside of it: