|
1 | 1 | # Zonemaster Web GUI [](https://github.com/zonemaster/zonemaster-gui/actions/workflows/ci.yml) |
2 | 2 |
|
| 3 | +## Overview |
3 | 4 |
|
4 | | -### Purpose |
| 5 | +Zonemaster GUI is the web interface component of the Zonemaster project, a tool designed for DNS validation and testing. For a comprehensive overview of the Zonemaster software, please see the [Zonemaster repository]. |
5 | 6 |
|
6 | | -This module is the Web Interface part of the Zonemaster project. For an |
7 | | -overview of the Zonemaster software, please see the [Zonemaster repository]. |
| 7 | +## Prerequisites |
8 | 8 |
|
9 | | -### Prerequisites |
| 9 | +Before installing the Zonemaster GUI, ensure you have the Zonemaster Engine and Zonemaster-Backend setup. Refer to the [Zonemaster-Engine installation] and [Zonemaster-Backend installation] documents. |
10 | 10 |
|
11 | | -Before you install the Zonemaster Web GUI module, you need the Zonemaster |
12 | | -Engine test framework installed. Please see the [Zonemaster-Engine |
13 | | -installation] document. |
| 11 | +## Installation |
14 | 12 |
|
15 | | -You also need a running Zonemaster-Backend component. Please see the |
16 | | -[Zonemaster-Backend installation] document. |
| 13 | +There are two ways to install the Zonemaster GUI: |
17 | 14 |
|
18 | | -### Installation |
| 15 | +### Quick Install (1 minute) |
| 16 | +Download the release zip file, upload to your web server, and configure. |
19 | 17 |
|
20 | | -Follow the detailed [installation instructions]. |
| 18 | +### Full Customization (5 minutes) |
| 19 | +Clone the repository, build, and deploy. |
21 | 20 |
|
22 | | -### Configuration |
| 21 | +For detailed instructions, see [INSTALL.md](docs/INSTALL.md). |
23 | 22 |
|
24 | | -The configuration instructions for the Backend can be found in the [Backend |
25 | | -configuration] document. |
| 23 | +## Development |
26 | 24 |
|
27 | | -The configuration instructions for the GUI can be found in the [GUI |
28 | | -configuration] document. |
| 25 | +To set up your development environment: |
29 | 26 |
|
30 | | -### Documentation |
| 27 | +1. Clone the repository |
| 28 | +2. Run `npm install` |
| 29 | +3. Run `cp .env.example .env` |
| 30 | +4. Set the URL to your Zonemaster backend in the `.env` file |
| 31 | +5. Run `npm run dev` |
31 | 32 |
|
32 | | -There is a [public documentation]. Some more specific documents can be found in |
33 | | -the [docs directory](docs/). |
| 33 | +## Documentation |
34 | 34 |
|
35 | | -### Contribution |
| 35 | +Refer to the [docs](/docs) directory for detailed information on: |
| 36 | +- Installation and configuration |
| 37 | +- Theming and customization |
| 38 | +- Translation guide |
| 39 | +- Testing |
| 40 | +- UI documentation |
36 | 41 |
|
37 | | -This project was generated with Angular-CLI 1.6.8. |
38 | | -It uses the Angular 2+ framework with all its tools. |
39 | | - |
40 | | -The source code of the application is available in `./src/app` folder. |
41 | | - |
42 | | -The `components` folder is composed of subfolders that represent the main |
43 | | -components. Each folder of component contain three files: |
44 | | - |
45 | | - * `*.component.css`: the component's style configuration; |
46 | | - * `*.component.html`: the component's HTML code; |
47 | | - * `*.component.ts`: the component's TypeScript code. |
48 | | - |
49 | | -All assets are available in the `src/assets` folder. It is split by concern; |
50 | | -the style configurations are in the `css`, images are in the `images` folder, etc. |
51 | | - |
52 | | -All translation files are in the `src/locale` folder. |
53 | | - |
54 | | -The environment defaults of the application are in the `src/environments` |
55 | | -folder. `environment.ts` is used for development purposes, the |
56 | | -`environment.prod.ts` for production, and the `environment.test.ts` for testing. |
57 | | - |
58 | | -In order to contribute: |
59 | | - |
60 | | -* Install [Nodejs](https://nodejs.org) |
61 | | -* Fork the Zonemaster GUI repository on Github into your own user on Github. |
62 | | -* Clone your fork to your working environment. |
63 | | -* Go to the folder and install project dependencies with `npm install` |
64 | | -* Update configuration files in `src/assets/app.config.json` to add a Backend |
65 | | - API endpoint (or leave the default) |
66 | | -* Make your changes, test them and push them to your fork on Github |
67 | | -* From your fork, make a Pull Request against the zonemaster/zonemaster-gui |
68 | | - repository. Please always make the Pull Request against the develop branch. |
69 | | -* Thank you for your contribution! |
70 | | - |
71 | | -#### Development server |
72 | | - |
73 | | -Run `npm start` for a dev server. Navigate to `http://localhost:4200/en`. |
74 | | -The app will automatically reload if you change any of the source files. |
75 | | - |
76 | | -#### Build |
77 | | - |
78 | | -Run `npm run build` to build the project. The build artifacts will be stored in the `dist/` directory. |
79 | | - |
80 | | -#### Test |
81 | | - |
82 | | -See [Testing](docs/Testing.md). |
| 42 | +For contribution guidelines, see [CONTRIBUTE.md](CONTRIBUTE.md). |
83 | 43 |
|
84 | 44 | ## License |
85 | 45 |
|
86 | | -This is free software under a 2-clause BSD license. The full text of the license can |
87 | | -be found in the [LICENSE](LICENSE) file included in this respository. |
| 46 | +This is free software under a 2-clause BSD license. The full text of the license can be found in the [LICENSE](LICENSE) file included in this repository. |
88 | 47 |
|
89 | | -Images `src/assets/images/person_looking_at_computer.svg` and `src/assets/images/world_connected.svg` |
90 | | -are taken from <https://undraw.co>, [full license](https://undraw.co/license). |
| 48 | +Images `src/assets/images/person_looking_at_computer.svg` and `src/assets/images/world_connected.svg` are taken from <https://undraw.co>, [full license](https://undraw.co/license). |
91 | 49 |
|
| 50 | +Images `src/assets/images/person_looking_at_computer.svg` and `src/assets/images/world_connected.svg` are taken from <https://undraw.co>, [full license](https://undraw.co/license). |
92 | 51 |
|
93 | 52 | [Backend Configuration]: https://github.com/zonemaster/zonemaster/blob/master/docs/public/configuration/backend.md |
94 | 53 | [GUI Configuration]: https://github.com/zonemaster/zonemaster/blob/master/docs/public/configuration/gui.md |
|
0 commit comments