mirror of https://github.com/qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.8 KiB
80 lines
2.8 KiB
3 years ago
|
# Qortal Project UI
|
||
3 years ago
|
|
||
2 years ago
|
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/Qortal/qortal-ui?label=latest%20version)
|
||
2 years ago
|
[![GitHub Releases](https://img.shields.io/github/downloads/Qortal/qortal-ui/latest/total)](https://github.com/Qortal/qortal-ui/releases/latest)
|
||
3 years ago
|
[![License](https://img.shields.io/badge/license-GPL--3.0-blue)](https://opensource.org/licenses/GPL-3.0)
|
||
1 year ago
|
[![Qortal Discord Invite](https://img.shields.io/discord/745037351163527189?color=%237289DA&label=Chat&logo=discord&logoColor=white)](https://discord.com/invite/54UyhB7)
|
||
1 year ago
|
[![Qortal Apps Discord Invite](https://img.shields.io/discord/745037351163527189?color=%237289DA&label=Q-Apps&logo=discord&logoColor=white)](https://discord.com/invite/tqnpDMfuR2)
|
||
3 years ago
|
|
||
|
Decentralizing The World
|
||
|
|
||
|
Building and Running Qortal UI Server from source:
|
||
|
----------------------------------------------------
|
||
|
Follow the steps below to download, install, build and run Qortal UI locally on Linux.
|
||
|
|
||
|
|
||
|
Installation
|
||
|
------------
|
||
|
Packages required:
|
||
|
- Node.js
|
||
|
- npm
|
||
|
|
||
|
Easiest way to install the lastest required packages on Linux is via nvm.
|
||
|
|
||
|
``` sudo apt update && sudo apt install curl -y ``` <br/>
|
||
2 years ago
|
``` sudo rm -rf ~/.nvm ``` (Only for update node version)<br/>
|
||
3 years ago
|
``` curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash ``` <br/>
|
||
|
``` source ~/.profile ``` (For Debian based distro) <br/>
|
||
|
``` source ~/.bashrc ``` (For Fedora / CentOS) <br/>
|
||
|
``` nvm ls-remote ``` (Fetch list of available versions) <br/>
|
||
1 year ago
|
``` nvm install v18.15.0 ``` (LTS: Hydrogen supported by Electron) <br/>
|
||
|
``` npm --location=global install [email protected] ``` <br/>
|
||
3 years ago
|
|
||
|
Adding via binary package mirror will only work if you have set the package path. You can do a node or java build via ports instead by downloading ports with portsnap fetch method.
|
||
|
|
||
1 year ago
|
Verify your installation with ``` node --version ``` <br/>
|
||
|
- If you have an older installation of npm, please do not forget to update that with ``` npm update -g ```
|
||
3 years ago
|
|
||
|
Clone the main UI repo
|
||
3 years ago
|
- ``` git clone https://github.com/Qortal/qortal-ui.git ```
|
||
3 years ago
|
|
||
1 year ago
|
Installation
|
||
3 years ago
|
------------------------
|
||
1 year ago
|
In `qortal-ui` directory, run:
|
||
|
```
|
||
|
npm install
|
||
|
```
|
||
3 years ago
|
|
||
|
Build UI server and files
|
||
|
-------------------------
|
||
|
```
|
||
1 year ago
|
npm run build
|
||
3 years ago
|
```
|
||
|
|
||
|
Start UI Server ( preferred way )
|
||
|
---------------
|
||
|
```
|
||
1 year ago
|
npm run server &
|
||
3 years ago
|
```
|
||
|
The "&" at the end puts the UI server in the background.
|
||
|
|
||
|
Run UI using electron
|
||
|
---------------------
|
||
|
```
|
||
1 year ago
|
npm run start-electron
|
||
3 years ago
|
```
|
||
|
|
||
|
Build script (unix-like systems only)
|
||
|
-------------------------------------
|
||
|
To automate the above process, run ./build.sh, optionally specifying the following options:
|
||
|
|
||
|
`-s`: run UI server after completing the build<br />
|
||
|
`-e`: run electron server after completing the build<br />
|
||
1 year ago
|
`-w`: use 'npm run watch' instead of 'npm run build', to enable hot swapping<br />
|
||
3 years ago
|
`-h`: show help<br />
|
||
|
|
||
|
Example command to build and run the UI server:
|
||
|
```
|
||
|
./build.sh -s
|
||
|
```
|