Skip to content

Commit d2f6674

Browse files
authored
docs(admin-ui): update README (#1991)
* docs(admin-ui): update README update the development setup instruction Signed-off-by: Riza Arsyi <[email protected]> * docs(admin-ui): update env configuration and prerequisites section Signed-off-by: Riza Arsyi <[email protected]> * docs(admin-ui): update the environment configuratio section change from .env.development.local to .env.development Signed-off-by: Riza Arsyi <[email protected]> * docs(admin-ui): fix typo Signed-off-by: Riza Arsyi <[email protected]> --------- Signed-off-by: Riza Arsyi <[email protected]>
1 parent 4e34e78 commit d2f6674

File tree

1 file changed

+61
-11
lines changed

1 file changed

+61
-11
lines changed

Diff for: admin-ui/README.md

+61-11
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,77 @@
11
# Gluu Admin UI
22

3-
This project has been built on [Airframe React](https://github.com/0wczar/airframe-react).
3+
The Gluu Flex Admin UI is a reactive web interface to simplify the management and configuration of your Auth Server. The Admin UI enables you to easily view and edit configuration properties, interception scripts, clients, and metrics in one place.
44

5-
## Installation
5+
## Introduction
6+
7+
This document outlines the steps to setup the project for development, including installation, configuration, and running the application.
68

79
### Prerequisites
810

9-
Node, NPM (latest, stable version)
11+
Before setting up the project, ensure you have the following installed :
12+
13+
- NodeJS : v18.xx.x or above
14+
- NPM : 8.xx or above
15+
- Java : openjdk 17.x.x or above
16+
- Gluu Flex : follow the instruction [here](https://github.com/GluuFederation/flex/tree/main/docker-flex-monolith)
17+
18+
### Installation
19+
20+
Follow these steps to setup the project :
21+
22+
1. Clone the project
23+
24+
```
25+
git clone https://github.com/GluuFederation/flex
26+
cd flex/admin-ui
27+
```
28+
29+
2. Environment configuration
30+
31+
Set the env `NODE_ENV` to `development`.
32+
33+
```
34+
export NODE_ENV=development
35+
```
36+
37+
Create a file name `.env.development` with following contents.
38+
39+
```
40+
BASE_PATH=/admin/
41+
CONFIG_API_BASE_URL=https://[jans-server-host]/jans-config-api
42+
API_BASE_URL=https://[jans-server-host]/jans-config-api/admin-ui
43+
NPM_TOKEN=
44+
```
45+
46+
**Note:**
1047

11-
### Development
48+
- replace `[jans-server-host]` with your actual jans server.
49+
- the `NPM_TOKEN` is not being used anymore, we can leave this empty.
1250

13-
To run the project locally execute following commands.
51+
3. Install openapi-generator-cli globally in your system.
1452

1553
```
16-
git clone https://github.com/GluuFederation/gluu-admin-ui
17-
cd gluu-admin-ui
18-
rm -rf jans_config_api
1954
npm install @openapitools/openapi-generator-cli -g
20-
npm run api
55+
```
56+
57+
4. Install project packages.
58+
59+
```
2160
npm install
22-
npm run start
61+
```
62+
63+
5. Run api specs generator.
64+
65+
```
66+
npm run api
67+
```
68+
69+
6. Run the project.
70+
71+
```
72+
npm run install
2373
```
2474

2575
Once the project is compiled and started, UI can be accessed at URL: http://localhost:4100
2676

27-
**Note:** Please check this [link](https://raw.githubusercontent.com/0wczar/airframe-react/master/.npmrc) for NPM access token to be added to `NPM_TOKEN` field in `.env` file.
77+
This project has been built on [Airframe React](https://github.com/0wczar/airframe-react).

0 commit comments

Comments
 (0)