This commit is contained in:
Oleg Shuralev 2020-01-19 21:08:34 +03:00
parent fad704f377
commit affd24560f
No known key found for this signature in database
GPG key ID: 0459DF80E1A2FD1B
5 changed files with 35 additions and 1 deletions

View file

@ -1,2 +1,31 @@
# kafka-ui # kafka-ui
UI for Apache Kafka management UI for Apache Kafka management
## Frontend
### Env variables
Pls update `./frontend/.env` file
```
# API url
REACT_APP_API_URL=http://localhost:3004
```
### Start App
```
cd ./frontend
npm install
npm start
```
## API
```
cd ./frontend
npm install
npm run dev
```

2
api/README.md Normal file
View file

@ -0,0 +1,2 @@
# kafka-ui
UI for Apache Kafka management

1
frontend/.env Normal file
View file

@ -0,0 +1 @@
REACT_APP_API_URL=http://localhost:3004

2
frontend/README.md Normal file
View file

@ -0,0 +1,2 @@
# kafka-ui
UI for Apache Kafka management

View file

@ -6,7 +6,7 @@ export const BASE_PARAMS: RequestInit = {
}, },
}; };
export const BASE_URL = 'http://localhost:3004'; export const BASE_URL = process.env.REACT_APP_API_URL;
export const TOPIC_NAME_VALIDATION_PATTERN = RegExp(/^[.,A-Za-z0-9_-]+$/); export const TOPIC_NAME_VALIDATION_PATTERN = RegExp(/^[.,A-Za-z0-9_-]+$/);
export const MILLISECONDS_IN_DAY = 86_400_000; export const MILLISECONDS_IN_DAY = 86_400_000;