|
1 | 1 | # Gluu Admin UI
|
2 | 2 |
|
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. |
4 | 4 |
|
5 |
| -## Installation |
| 5 | +## Introduction |
| 6 | + |
| 7 | +This document outlines the steps to setup the project for development, including installation, configuration, and running the application. |
6 | 8 |
|
7 | 9 | ### Prerequisites
|
8 | 10 |
|
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:** |
10 | 47 |
|
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. |
12 | 50 |
|
13 |
| -To run the project locally execute following commands. |
| 51 | +3. Install openapi-generator-cli globally in your system. |
14 | 52 |
|
15 | 53 | ```
|
16 |
| -git clone https://github.com/GluuFederation/gluu-admin-ui |
17 |
| -cd gluu-admin-ui |
18 |
| -rm -rf jans_config_api |
19 | 54 | npm install @openapitools/openapi-generator-cli -g
|
20 |
| -npm run api |
| 55 | +``` |
| 56 | + |
| 57 | +4. Install project packages. |
| 58 | + |
| 59 | +``` |
21 | 60 | 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 |
23 | 73 | ```
|
24 | 74 |
|
25 | 75 | Once the project is compiled and started, UI can be accessed at URL: http://localhost:4100
|
26 | 76 |
|
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