4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00
qortal-ui/README.md

80 lines
2.8 KiB
Markdown
Raw Normal View History

2021-12-25 17:04:39 +01:00
# Qortal Project UI
2021-12-25 14:39:47 +01:00
2022-06-23 10:40:04 +02:00
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/Qortal/qortal-ui?label=latest%20version)
2022-06-23 10:47:25 +02:00
[![GitHub Releases](https://img.shields.io/github/downloads/Qortal/qortal-ui/latest/total)](https://github.com/Qortal/qortal-ui/releases/latest)
2021-12-25 14:39:47 +01:00
[![License](https://img.shields.io/badge/license-GPL--3.0-blue)](https://opensource.org/licenses/GPL-3.0)
2023-06-04 12:30:44 +02:00
[![Qortal Discord Invite](https://img.shields.io/discord/745037351163527189?color=%237289DA&label=Chat&logo=discord&logoColor=white)](https://discord.com/invite/54UyhB7)
2023-06-04 12:35:38 +02:00
[![Qortal Apps Discord Invite](https://img.shields.io/discord/745037351163527189?color=%237289DA&label=Q-Apps&logo=discord&logoColor=white)](https://discord.com/invite/tqnpDMfuR2)
2021-12-25 14:39:47 +01:00
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/>
2022-11-30 18:16:24 +01:00
``` sudo rm -rf ~/.nvm ``` (Only for update node version)<br/>
2021-12-25 14:39:47 +01:00
``` 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/>
2023-12-08 11:20:43 +01:00
``` nvm install v18.18.2 ``` (LTS: Hydrogen supported by Electron) <br/>
2024-01-19 11:34:23 +01:00
``` npm --location=global install npm@10.3.0 ``` <br/>
2021-12-25 14:39:47 +01:00
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.
2023-05-25 02:00:01 -04:00
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 ```
2021-12-25 14:39:47 +01:00
Clone the main UI repo
2022-01-01 22:24:40 +01:00
- ``` git clone https://github.com/Qortal/qortal-ui.git ```
2021-12-25 14:39:47 +01:00
2023-05-11 18:40:52 +02:00
Installation
2021-12-25 14:39:47 +01:00
------------------------
2023-05-25 02:00:01 -04:00
In `qortal-ui` directory, run:
```
npm install
```
2021-12-25 14:39:47 +01:00
Build UI server and files
-------------------------
```
2023-05-11 18:40:52 +02:00
npm run build
2021-12-25 14:39:47 +01:00
```
Start UI Server ( preferred way )
---------------
```
2023-05-11 18:40:52 +02:00
npm run server &
2021-12-25 14:39:47 +01:00
```
The "&" at the end puts the UI server in the background.
Run UI using electron
---------------------
```
2023-05-11 18:40:52 +02:00
npm run start-electron
2021-12-25 14:39:47 +01:00
```
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 />
2023-05-11 18:40:52 +02:00
`-w`: use 'npm run watch' instead of 'npm run build', to enable hot swapping<br />
2021-12-25 14:39:47 +01:00
`-h`: show help<br />
Example command to build and run the UI server:
```
./build.sh -s
```