This Folder contains the Web Frontend for Console using React/TypeScript.
graph TD;
A(User Browser) -- HTTPS/HTTP --> B["Console<br>Frontend Application<br>(React/TypeScript)"];
B -- REST API Calls HTTPS/HTTP --> D["Console<br>Backend Server<br>(Go)"];
D -- "HTTPS/HTTP<br>Admin Operations" --> E["MinIO Server<br>Object Storage"];
E@{ shape: cyl}
Also refer to DEVELOPMENT.md and CONTRIBUTING.md for more Information on how to build this whole project.
This project was bootstrapped with Create React App now using Vite to build.
Requirements: yarn and node
In the /web-app directory, you can run:
Runs the app in the development mode. Needs Console local running in Dev Mode on Port 9090.
CONSOLE_ACCESS_KEY=<your-access-key>
CONSOLE_SECRET_KEY=<your-secret-key>
CONSOLE_MINIO_SERVER=<minio-server-endpoint>
CONSOLE_DEV_MODE=on
./console serverOpens http://localhost:5005 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Note
If it's the first time running yarn, you might need to run yarn install before the start command.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
Your app is ready to be deployed!
Important
Don´t commit and push changes in the build folder if its not a release. Discard this changes.
Fast build without typechecking during development.
Runs typescript tsc to check for type errors.
Runs typescript tsc in watch mode --watch
Preview the bundled output in the build folder with an Webserver.
Runs ./check-warnings.sh builds and looks for warnings during build.
Runs ./check-prettier.sh and checks formating with prettier.
Runs ./check-deadcode.sh using knip.
Runs prettier with yarn prettier --write . --log-level warn.
You can learn more in the Vite documentation.
To learn React, check out the React documentation.