How to install Blocky on Manjaro
This tutorial will guide you through the steps to install Blocky, a web-based visual programming editor, on Manjaro.
Prerequisites
Before proceeding with the installation, ensure that your Manjaro system has the following components installed:
- A web server (e.g., Apache or Nginx)
- PHP 7.0 or higher with the following extensions:
php-json,php-gd,php-mbstring - Node.js and npm
Step-by-step instructions
Clone the Blocky repository from GitHub using the following command:
git clone https://github.com/0xERR0R/blocky.gitNavigate to the project directory using the following command:
cd blockyInstall the required Node.js packages using the following command:
npm installInstall the PHP dependencies using Composer by executing the following command:
composer installCompile the frontend assets using the following command:
npm run buildCreate a virtual host for Blocky in your web server configuration. Here is an example Apache configuration snippet:
<VirtualHost *:80> ServerName blocky.local DocumentRoot /path/to/blocky/public <Directory "/path/to/blocky/public"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>Replace
/path/to/blocky/publicwith the absolute path to the Blocky project's public directory, andblocky.localwith the desired domain name.Adjust your host file to associate the domain with your local IP. Here is an example
/etc/hostsfile entry:127.0.0.1 blocky.localRestart your web server using the following command:
sudo systemctl restart httpdAccess the Blocky editor by navigating to
http://blocky.localin your preferred web browser. The editor should now be installed and ready to use.
Congratulations! You have successfully installed Blocky on Manjaro.