AlphaX-Projects
34cd1d36b9
|
11 months ago | |
---|---|---|
build | 3 years ago | |
config | 1 year ago | |
core | 11 months ago | |
crypto | 11 months ago | |
img | 11 months ago | |
lib | 1 year ago | |
locales | 11 months ago | |
plugins | 11 months ago | |
scripts | 11 months ago | |
snap | 3 years ago | |
splash | 1 year ago | |
.editorconfig | 3 years ago | |
.eslintignore | 1 year ago | |
.eslintrc.json | 1 year ago | |
.gitattributes | 3 years ago | |
.gitignore | 1 year ago | |
.travis.yml | 3 years ago | |
CONTRIBUTING.md | 1 year ago | |
LICENSE | 3 years ago | |
README.md | 11 months ago | |
blog-test.json | 11 months ago | |
build-setup.js | 3 years ago | |
build.bat | 3 years ago | |
build.js | 1 year ago | |
build.sh | 1 year ago | |
electron-builder.yml | 1 year ago | |
electron.js | 1 year ago | |
install-dependencies.sh | 3 years ago | |
package-lock.json | 11 months ago | |
package.json | 11 months ago | |
push-updates-with-travis-build.sh | 3 years ago | |
run_server.bat | 3 years ago | |
server.js | 1 year ago | |
set-up-snap.sh | 3 years ago | |
watch-inline.js | 1 year ago | |
watch.js | 1 year ago |
README.md
Qortal Project UI
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
sudo rm -rf ~/.nvm
(Only for update node version)
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
(For Debian based distro)
source ~/.bashrc
(For Fedora / CentOS)
nvm ls-remote
(Fetch list of available versions)
nvm install v18.17.1
(LTS: Hydrogen supported by Electron)
npm --location=global install [email protected]
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.
Verify your installation with node --version
- If you have an older installation of npm, please do not forget to update that with
npm update -g
Clone the main UI repo
git clone https://github.com/Qortal/qortal-ui.git
Installation
In qortal-ui
directory, run:
npm install
Build UI server and files
npm run build
Start UI Server ( preferred way )
npm run server &
The "&" at the end puts the UI server in the background.
Run UI using electron
npm run start-electron
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
-e
: run electron server after completing the build
-w
: use 'npm run watch' instead of 'npm run build', to enable hot swapping
-h
: show help
Example command to build and run the UI server:
./build.sh -s