Cleanup
This commit is contained in:
parent
fad704f377
commit
affd24560f
5 changed files with 35 additions and 1 deletions
29
README.md
29
README.md
|
@ -1,2 +1,31 @@
|
|||
# kafka-ui
|
||||
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
2
api/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# kafka-ui
|
||||
UI for Apache Kafka management
|
1
frontend/.env
Normal file
1
frontend/.env
Normal file
|
@ -0,0 +1 @@
|
|||
REACT_APP_API_URL=http://localhost:3004
|
2
frontend/README.md
Normal file
2
frontend/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# kafka-ui
|
||||
UI for Apache Kafka management
|
|
@ -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 MILLISECONDS_IN_DAY = 86_400_000;
|
||||
|
|
Loading…
Add table
Reference in a new issue