mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
37 lines
786 B
Markdown
37 lines
786 B
Markdown
# Build
|
|
|
|
The build guide is intended for developers or advanced users only.
|
|
Regular users should follow the [quick start](./getting-started) guide.
|
|
|
|
## Prerequisites
|
|
|
|
- Make.
|
|
- Golang version 1.20 or higher.
|
|
- node.js version 18 or higher.
|
|
|
|
You should execute the following command to update browser list database before build project.
|
|
```shell
|
|
npx browserslist@latest --update-db
|
|
```
|
|
|
|
## Build Frontend
|
|
|
|
Please execute the following command in `app` directory.
|
|
|
|
```shell
|
|
yarn install
|
|
make translations
|
|
yarn build
|
|
```
|
|
|
|
## Build Backend
|
|
|
|
::: warning
|
|
Before building the backend, the app should be built first because the backend will embed the app distribution.
|
|
:::
|
|
|
|
Please execute the following command in the project root directory.
|
|
|
|
```shell
|
|
go build -o nginx-ui -v main.go
|
|
```
|