diff --git a/frontend/.env b/.env similarity index 70% rename from frontend/.env rename to .env index 4f6c9470ec..f7ff91ebfa 100644 --- a/frontend/.env +++ b/.env @@ -1 +1,2 @@ +# Kafka REST API REACT_APP_API_URL=http://localhost:3004 diff --git a/README.md b/README.md index 916c9a186f..171216a909 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,38 @@ -# kafka-ui +# Kafka-UI UI for Apache Kafka management -## Frontend +## Table of contents +- [Getting started](#getting-started) +- [Links](#links) -### Env variables -Pls update `./frontend/.env` file +## Getting started + +Install packages + +``` +npm install +``` + +Set correct URL to your API server in `.env`. ``` # API url -REACT_APP_API_URL=http://localhost:3004 +REACT_APP_API_URL=http://api.your-kafka-rest-api.com:3004 ``` -### Start App +Start JSON Server if you prefer to use default full fake REST API. ``` -cd ./frontend -npm install +npm run mock +``` +Start application + +``` npm start ``` -## API +## Links -``` -cd ./frontend -npm install - -npm run dev -``` +* [JSON Server] - Fake REST API(https://github.com/typicode/json-server) diff --git a/frontend/mock/index.js b/mock/index.js similarity index 100% rename from frontend/mock/index.js rename to mock/index.js diff --git a/frontend/mock/payload/brokerMetrics.json b/mock/payload/brokerMetrics.json similarity index 100% rename from frontend/mock/payload/brokerMetrics.json rename to mock/payload/brokerMetrics.json diff --git a/frontend/mock/payload/brokers.json b/mock/payload/brokers.json similarity index 100% rename from frontend/mock/payload/brokers.json rename to mock/payload/brokers.json diff --git a/frontend/mock/payload/clusters.json b/mock/payload/clusters.json similarity index 100% rename from frontend/mock/payload/clusters.json rename to mock/payload/clusters.json diff --git a/frontend/mock/payload/topicConfigs.json b/mock/payload/topicConfigs.json similarity index 100% rename from frontend/mock/payload/topicConfigs.json rename to mock/payload/topicConfigs.json diff --git a/frontend/mock/payload/topicDetails.json b/mock/payload/topicDetails.json similarity index 100% rename from frontend/mock/payload/topicDetails.json rename to mock/payload/topicDetails.json diff --git a/frontend/mock/payload/topics.json b/mock/payload/topics.json similarity index 100% rename from frontend/mock/payload/topics.json rename to mock/payload/topics.json diff --git a/frontend/package-lock.json b/package-lock.json similarity index 100% rename from frontend/package-lock.json rename to package-lock.json diff --git a/frontend/package.json b/package.json similarity index 100% rename from frontend/package.json rename to package.json diff --git a/frontend/public/favicon.ico b/public/favicon.ico similarity index 100% rename from frontend/public/favicon.ico rename to public/favicon.ico diff --git a/frontend/public/index.html b/public/index.html similarity index 100% rename from frontend/public/index.html rename to public/index.html diff --git a/frontend/public/manifest.json b/public/manifest.json similarity index 100% rename from frontend/public/manifest.json rename to public/manifest.json diff --git a/frontend/public/robots.txt b/public/robots.txt similarity index 100% rename from frontend/public/robots.txt rename to public/robots.txt diff --git a/frontend/src/components/App.scss b/src/components/App.scss similarity index 100% rename from frontend/src/components/App.scss rename to src/components/App.scss diff --git a/frontend/src/components/App.tsx b/src/components/App.tsx similarity index 100% rename from frontend/src/components/App.tsx rename to src/components/App.tsx diff --git a/frontend/src/components/AppContainer.tsx b/src/components/AppContainer.tsx similarity index 100% rename from frontend/src/components/AppContainer.tsx rename to src/components/AppContainer.tsx diff --git a/frontend/src/components/Brokers/Brokers.tsx b/src/components/Brokers/Brokers.tsx similarity index 100% rename from frontend/src/components/Brokers/Brokers.tsx rename to src/components/Brokers/Brokers.tsx diff --git a/frontend/src/components/Brokers/BrokersContainer.ts b/src/components/Brokers/BrokersContainer.ts similarity index 100% rename from frontend/src/components/Brokers/BrokersContainer.ts rename to src/components/Brokers/BrokersContainer.ts diff --git a/frontend/src/components/Dashboard/ClustersWidget/ClusterWidget.tsx b/src/components/Dashboard/ClustersWidget/ClusterWidget.tsx similarity index 100% rename from frontend/src/components/Dashboard/ClustersWidget/ClusterWidget.tsx rename to src/components/Dashboard/ClustersWidget/ClusterWidget.tsx diff --git a/frontend/src/components/Dashboard/ClustersWidget/ClustersWidget.tsx b/src/components/Dashboard/ClustersWidget/ClustersWidget.tsx similarity index 100% rename from frontend/src/components/Dashboard/ClustersWidget/ClustersWidget.tsx rename to src/components/Dashboard/ClustersWidget/ClustersWidget.tsx diff --git a/frontend/src/components/Dashboard/ClustersWidget/ClustersWidgetContainer.ts b/src/components/Dashboard/ClustersWidget/ClustersWidgetContainer.ts similarity index 100% rename from frontend/src/components/Dashboard/ClustersWidget/ClustersWidgetContainer.ts rename to src/components/Dashboard/ClustersWidget/ClustersWidgetContainer.ts diff --git a/frontend/src/components/Dashboard/Dashboard.tsx b/src/components/Dashboard/Dashboard.tsx similarity index 100% rename from frontend/src/components/Dashboard/Dashboard.tsx rename to src/components/Dashboard/Dashboard.tsx diff --git a/frontend/src/components/Nav/ClusterMenu.tsx b/src/components/Nav/ClusterMenu.tsx similarity index 100% rename from frontend/src/components/Nav/ClusterMenu.tsx rename to src/components/Nav/ClusterMenu.tsx diff --git a/frontend/src/components/Nav/Nav.tsx b/src/components/Nav/Nav.tsx similarity index 100% rename from frontend/src/components/Nav/Nav.tsx rename to src/components/Nav/Nav.tsx diff --git a/frontend/src/components/Nav/NavConatiner.ts b/src/components/Nav/NavConatiner.ts similarity index 100% rename from frontend/src/components/Nav/NavConatiner.ts rename to src/components/Nav/NavConatiner.ts diff --git a/frontend/src/components/Topics/Details/Details.tsx b/src/components/Topics/Details/Details.tsx similarity index 100% rename from frontend/src/components/Topics/Details/Details.tsx rename to src/components/Topics/Details/Details.tsx diff --git a/frontend/src/components/Topics/Details/DetailsContainer.ts b/src/components/Topics/Details/DetailsContainer.ts similarity index 100% rename from frontend/src/components/Topics/Details/DetailsContainer.ts rename to src/components/Topics/Details/DetailsContainer.ts diff --git a/frontend/src/components/Topics/Details/Messages/Messages.tsx b/src/components/Topics/Details/Messages/Messages.tsx similarity index 100% rename from frontend/src/components/Topics/Details/Messages/Messages.tsx rename to src/components/Topics/Details/Messages/Messages.tsx diff --git a/frontend/src/components/Topics/Details/Messages/MessagesContainer.ts b/src/components/Topics/Details/Messages/MessagesContainer.ts similarity index 100% rename from frontend/src/components/Topics/Details/Messages/MessagesContainer.ts rename to src/components/Topics/Details/Messages/MessagesContainer.ts diff --git a/frontend/src/components/Topics/Details/Overview/Overview.tsx b/src/components/Topics/Details/Overview/Overview.tsx similarity index 100% rename from frontend/src/components/Topics/Details/Overview/Overview.tsx rename to src/components/Topics/Details/Overview/Overview.tsx diff --git a/frontend/src/components/Topics/Details/Overview/OverviewContainer.ts b/src/components/Topics/Details/Overview/OverviewContainer.ts similarity index 100% rename from frontend/src/components/Topics/Details/Overview/OverviewContainer.ts rename to src/components/Topics/Details/Overview/OverviewContainer.ts diff --git a/frontend/src/components/Topics/Details/Settings/Settings.tsx b/src/components/Topics/Details/Settings/Settings.tsx similarity index 100% rename from frontend/src/components/Topics/Details/Settings/Settings.tsx rename to src/components/Topics/Details/Settings/Settings.tsx diff --git a/frontend/src/components/Topics/Details/Settings/SettingsContainer.ts b/src/components/Topics/Details/Settings/SettingsContainer.ts similarity index 100% rename from frontend/src/components/Topics/Details/Settings/SettingsContainer.ts rename to src/components/Topics/Details/Settings/SettingsContainer.ts diff --git a/frontend/src/components/Topics/List/List.tsx b/src/components/Topics/List/List.tsx similarity index 100% rename from frontend/src/components/Topics/List/List.tsx rename to src/components/Topics/List/List.tsx diff --git a/frontend/src/components/Topics/List/ListContainer.ts b/src/components/Topics/List/ListContainer.ts similarity index 100% rename from frontend/src/components/Topics/List/ListContainer.ts rename to src/components/Topics/List/ListContainer.ts diff --git a/frontend/src/components/Topics/List/ListItem.tsx b/src/components/Topics/List/ListItem.tsx similarity index 100% rename from frontend/src/components/Topics/List/ListItem.tsx rename to src/components/Topics/List/ListItem.tsx diff --git a/frontend/src/components/Topics/New/New.tsx b/src/components/Topics/New/New.tsx similarity index 100% rename from frontend/src/components/Topics/New/New.tsx rename to src/components/Topics/New/New.tsx diff --git a/frontend/src/components/Topics/New/NewContainer.ts b/src/components/Topics/New/NewContainer.ts similarity index 100% rename from frontend/src/components/Topics/New/NewContainer.ts rename to src/components/Topics/New/NewContainer.ts diff --git a/frontend/src/components/Topics/Topics.tsx b/src/components/Topics/Topics.tsx similarity index 100% rename from frontend/src/components/Topics/Topics.tsx rename to src/components/Topics/Topics.tsx diff --git a/frontend/src/components/Topics/TopicsContainer.ts b/src/components/Topics/TopicsContainer.ts similarity index 100% rename from frontend/src/components/Topics/TopicsContainer.ts rename to src/components/Topics/TopicsContainer.ts diff --git a/frontend/src/components/common/Breadcrumb/Breadcrumb.tsx b/src/components/common/Breadcrumb/Breadcrumb.tsx similarity index 100% rename from frontend/src/components/common/Breadcrumb/Breadcrumb.tsx rename to src/components/common/Breadcrumb/Breadcrumb.tsx diff --git a/frontend/src/components/common/Dashboard/Indicator.tsx b/src/components/common/Dashboard/Indicator.tsx similarity index 100% rename from frontend/src/components/common/Dashboard/Indicator.tsx rename to src/components/common/Dashboard/Indicator.tsx diff --git a/frontend/src/components/common/Dashboard/MetricsWrapper.tsx b/src/components/common/Dashboard/MetricsWrapper.tsx similarity index 100% rename from frontend/src/components/common/Dashboard/MetricsWrapper.tsx rename to src/components/common/Dashboard/MetricsWrapper.tsx diff --git a/frontend/src/components/common/PageLoader/PageLoader.tsx b/src/components/common/PageLoader/PageLoader.tsx similarity index 100% rename from frontend/src/components/common/PageLoader/PageLoader.tsx rename to src/components/common/PageLoader/PageLoader.tsx diff --git a/frontend/src/index.tsx b/src/index.tsx similarity index 100% rename from frontend/src/index.tsx rename to src/index.tsx diff --git a/frontend/src/lib/api/brokers.ts b/src/lib/api/brokers.ts similarity index 100% rename from frontend/src/lib/api/brokers.ts rename to src/lib/api/brokers.ts diff --git a/frontend/src/lib/api/clusters.ts b/src/lib/api/clusters.ts similarity index 100% rename from frontend/src/lib/api/clusters.ts rename to src/lib/api/clusters.ts diff --git a/frontend/src/lib/api/index.ts b/src/lib/api/index.ts similarity index 100% rename from frontend/src/lib/api/index.ts rename to src/lib/api/index.ts diff --git a/frontend/src/lib/api/topics.ts b/src/lib/api/topics.ts similarity index 100% rename from frontend/src/lib/api/topics.ts rename to src/lib/api/topics.ts diff --git a/frontend/src/lib/constants.ts b/src/lib/constants.ts similarity index 100% rename from frontend/src/lib/constants.ts rename to src/lib/constants.ts diff --git a/frontend/src/lib/hooks/useInterval.ts b/src/lib/hooks/useInterval.ts similarity index 100% rename from frontend/src/lib/hooks/useInterval.ts rename to src/lib/hooks/useInterval.ts diff --git a/frontend/src/lib/interfaces/broker.ts b/src/lib/interfaces/broker.ts similarity index 100% rename from frontend/src/lib/interfaces/broker.ts rename to src/lib/interfaces/broker.ts diff --git a/frontend/src/lib/interfaces/cluster.ts b/src/lib/interfaces/cluster.ts similarity index 100% rename from frontend/src/lib/interfaces/cluster.ts rename to src/lib/interfaces/cluster.ts diff --git a/frontend/src/lib/interfaces/index.ts b/src/lib/interfaces/index.ts similarity index 100% rename from frontend/src/lib/interfaces/index.ts rename to src/lib/interfaces/index.ts diff --git a/frontend/src/lib/interfaces/loader.ts b/src/lib/interfaces/loader.ts similarity index 100% rename from frontend/src/lib/interfaces/loader.ts rename to src/lib/interfaces/loader.ts diff --git a/frontend/src/lib/interfaces/topic.ts b/src/lib/interfaces/topic.ts similarity index 100% rename from frontend/src/lib/interfaces/topic.ts rename to src/lib/interfaces/topic.ts diff --git a/frontend/src/lib/paths.ts b/src/lib/paths.ts similarity index 100% rename from frontend/src/lib/paths.ts rename to src/lib/paths.ts diff --git a/frontend/src/lib/utils/formatBytes.ts b/src/lib/utils/formatBytes.ts similarity index 100% rename from frontend/src/lib/utils/formatBytes.ts rename to src/lib/utils/formatBytes.ts diff --git a/frontend/src/react-app-env.d.ts b/src/react-app-env.d.ts similarity index 100% rename from frontend/src/react-app-env.d.ts rename to src/react-app-env.d.ts diff --git a/frontend/src/redux/reducers/actionType.ts b/src/redux/reducers/actionType.ts similarity index 100% rename from frontend/src/redux/reducers/actionType.ts rename to src/redux/reducers/actionType.ts diff --git a/frontend/src/redux/reducers/brokers/actionType.ts b/src/redux/reducers/brokers/actionType.ts similarity index 100% rename from frontend/src/redux/reducers/brokers/actionType.ts rename to src/redux/reducers/brokers/actionType.ts diff --git a/frontend/src/redux/reducers/brokers/actions.ts b/src/redux/reducers/brokers/actions.ts similarity index 100% rename from frontend/src/redux/reducers/brokers/actions.ts rename to src/redux/reducers/brokers/actions.ts diff --git a/frontend/src/redux/reducers/brokers/reducer.ts b/src/redux/reducers/brokers/reducer.ts similarity index 100% rename from frontend/src/redux/reducers/brokers/reducer.ts rename to src/redux/reducers/brokers/reducer.ts diff --git a/frontend/src/redux/reducers/brokers/selectors.ts b/src/redux/reducers/brokers/selectors.ts similarity index 100% rename from frontend/src/redux/reducers/brokers/selectors.ts rename to src/redux/reducers/brokers/selectors.ts diff --git a/frontend/src/redux/reducers/brokers/thunks.ts b/src/redux/reducers/brokers/thunks.ts similarity index 100% rename from frontend/src/redux/reducers/brokers/thunks.ts rename to src/redux/reducers/brokers/thunks.ts diff --git a/frontend/src/redux/reducers/clusters/actionType.ts b/src/redux/reducers/clusters/actionType.ts similarity index 100% rename from frontend/src/redux/reducers/clusters/actionType.ts rename to src/redux/reducers/clusters/actionType.ts diff --git a/frontend/src/redux/reducers/clusters/actions.ts b/src/redux/reducers/clusters/actions.ts similarity index 100% rename from frontend/src/redux/reducers/clusters/actions.ts rename to src/redux/reducers/clusters/actions.ts diff --git a/frontend/src/redux/reducers/clusters/reducer.ts b/src/redux/reducers/clusters/reducer.ts similarity index 100% rename from frontend/src/redux/reducers/clusters/reducer.ts rename to src/redux/reducers/clusters/reducer.ts diff --git a/frontend/src/redux/reducers/clusters/selectors.ts b/src/redux/reducers/clusters/selectors.ts similarity index 100% rename from frontend/src/redux/reducers/clusters/selectors.ts rename to src/redux/reducers/clusters/selectors.ts diff --git a/frontend/src/redux/reducers/clusters/thunks.ts b/src/redux/reducers/clusters/thunks.ts similarity index 100% rename from frontend/src/redux/reducers/clusters/thunks.ts rename to src/redux/reducers/clusters/thunks.ts diff --git a/frontend/src/redux/reducers/index.ts b/src/redux/reducers/index.ts similarity index 100% rename from frontend/src/redux/reducers/index.ts rename to src/redux/reducers/index.ts diff --git a/frontend/src/redux/reducers/loader/reducer.ts b/src/redux/reducers/loader/reducer.ts similarity index 100% rename from frontend/src/redux/reducers/loader/reducer.ts rename to src/redux/reducers/loader/reducer.ts diff --git a/frontend/src/redux/reducers/loader/selectors.ts b/src/redux/reducers/loader/selectors.ts similarity index 100% rename from frontend/src/redux/reducers/loader/selectors.ts rename to src/redux/reducers/loader/selectors.ts diff --git a/frontend/src/redux/reducers/topics/actionType.ts b/src/redux/reducers/topics/actionType.ts similarity index 100% rename from frontend/src/redux/reducers/topics/actionType.ts rename to src/redux/reducers/topics/actionType.ts diff --git a/frontend/src/redux/reducers/topics/actions.ts b/src/redux/reducers/topics/actions.ts similarity index 100% rename from frontend/src/redux/reducers/topics/actions.ts rename to src/redux/reducers/topics/actions.ts diff --git a/frontend/src/redux/reducers/topics/reducer.ts b/src/redux/reducers/topics/reducer.ts similarity index 100% rename from frontend/src/redux/reducers/topics/reducer.ts rename to src/redux/reducers/topics/reducer.ts diff --git a/frontend/src/redux/reducers/topics/selectors.ts b/src/redux/reducers/topics/selectors.ts similarity index 100% rename from frontend/src/redux/reducers/topics/selectors.ts rename to src/redux/reducers/topics/selectors.ts diff --git a/frontend/src/redux/reducers/topics/thunks.ts b/src/redux/reducers/topics/thunks.ts similarity index 100% rename from frontend/src/redux/reducers/topics/thunks.ts rename to src/redux/reducers/topics/thunks.ts diff --git a/frontend/src/redux/store/configureStore/dev.ts b/src/redux/store/configureStore/dev.ts similarity index 100% rename from frontend/src/redux/store/configureStore/dev.ts rename to src/redux/store/configureStore/dev.ts diff --git a/frontend/src/redux/store/configureStore/index.ts b/src/redux/store/configureStore/index.ts similarity index 100% rename from frontend/src/redux/store/configureStore/index.ts rename to src/redux/store/configureStore/index.ts diff --git a/frontend/src/redux/store/configureStore/prod.ts b/src/redux/store/configureStore/prod.ts similarity index 100% rename from frontend/src/redux/store/configureStore/prod.ts rename to src/redux/store/configureStore/prod.ts diff --git a/frontend/src/serviceWorker.ts b/src/serviceWorker.ts similarity index 100% rename from frontend/src/serviceWorker.ts rename to src/serviceWorker.ts diff --git a/frontend/src/setupTests.ts b/src/setupTests.ts similarity index 100% rename from frontend/src/setupTests.ts rename to src/setupTests.ts diff --git a/frontend/src/theme/bulma_overrides.scss b/src/theme/bulma_overrides.scss similarity index 100% rename from frontend/src/theme/bulma_overrides.scss rename to src/theme/bulma_overrides.scss diff --git a/frontend/src/theme/index.scss b/src/theme/index.scss similarity index 100% rename from frontend/src/theme/index.scss rename to src/theme/index.scss diff --git a/frontend/tsconfig.json b/tsconfig.json similarity index 100% rename from frontend/tsconfig.json rename to tsconfig.json