This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
qortal_ui_from_source [04/14/2023 09:11] – Updated node and npm versions quickmythril | qortal_ui_from_source [08/17/2023 12:04] (current) – Updated node version quickmythril | ||
---|---|---|---|
Line 8: | Line 8: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | ||
The easiest way to install the required version of Node.js is via [[https:// | The easiest way to install the required version of Node.js is via [[https:// | ||
Line 31: | Line 30: | ||
* Fedora / CentOS: '' | * Fedora / CentOS: '' | ||
- | Now that your OS is up to date we need to install a few packages. Specifically Node.js, npm (Node Package Manager), and yarn. Here are the installation commands for the terminal: | + | Now that your OS is up to date we need to install a few packages. Specifically Node.js |
Fetch list of available Node.js versions: | Fetch list of available Node.js versions: | ||
< | < | ||
Install LTS-Gallium version supported by Electron: | Install LTS-Gallium version supported by Electron: | ||
- | < | + | < |
Install npm: | Install npm: | ||
- | < | + | < |
- | Install yarn: | + | |
- | < | + | |
- | * On BSD do a '' | + | * On BSD do '' |
* 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 '' | * 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 '' | ||
- | You can verify your installation of Node.js using '' | + | You can verify your installation of Node.js using '' |
If you are ever on the wrong version you can do the following to get back to the correct version:\\ | If you are ever on the wrong version you can do the following to get back to the correct version:\\ | ||
- | '' | + | '' |
If you have an older installation of npm, please do not forget to update that with '' | If you have an older installation of npm, please do not forget to update that with '' | ||
Line 66: | Line 63: | ||
* Note: If your system is capable of running bash scripts, you can skip the next two steps and just run the build script using the '' | * Note: If your system is capable of running bash scripts, you can skip the next two steps and just run the build script using the '' | ||
- | We need to install and link dependencies in the four main directories | + | We need to install and link dependencies in the main directory |
- | < | + | < |
- | yarn install | + | |
- | cd qortal-ui-crypto | + | |
- | yarn install --pure-lockfile && yarn link && cd .. | + | |
- | cd qortal-ui-plugins | + | |
- | yarn install --pure-lockfile && yarn link && cd .. | + | |
- | yarn install --pure-lockfile | + | |
- | yarn link qortal-ui-core | + | |
- | yarn link qortal-ui-crypto | + | |
- | yarn link qortal-ui-plugins</ | + | |
===== Build UI Server & Files ===== | ===== Build UI Server & Files ===== | ||
Finally type the following command to build the UI: | Finally type the following command to build the UI: | ||
- | < | + | < |
- | Hooray you built the UI from source! But there are still a few things left to do. If you want a fully packaged file (exe, deb, AppImage, etc.) you can use [[https:// | + | Hooray you built the UI from source! But there are still a few things left to do. If you want a fully packaged file (exe, deb, AppImage, etc.) you can use [[https:// |
Line 89: | Line 77: | ||
You can run the UI using electron, but running it through server is recommended.\\ | You can run the UI using electron, but running it through server is recommended.\\ | ||
- | The following command will run UI using election: | + | The following command will run UI using electron: |
- | < | + | < |
Otherwise you can simply access it in your browser at [[http:// | Otherwise you can simply access it in your browser at [[http:// | ||
- | < | + | < |
===== Tips to Speed up Development ===== | ===== Tips to Speed up Development ===== | ||
- | Every time you edit the code, you will need to run '' | + | Every time you edit the code, you will need to run '' |
===== Build Script ===== | ===== Build Script ===== | ||
Line 105: | Line 93: | ||
* -h: show help | * -h: show help | ||
* -f: force relink and reinstall dependencies | * -f: force relink and reinstall dependencies | ||
- | * -w: use '' | + | * -w: use '' |
* -s: run UI server after completing the build | * -s: run UI server after completing the build | ||
* -e: run electron server after completing the build | * -e: run electron server after completing the build |