Monero Marketplace Script | Shop & Sell Products using Monero Coin with Escrow
A Single Vendor Shop with works Local Monero Daemon
Emperor Shop Script is a single vendor market application. Build with Laravel 9, TailwindCSS and DaisyUI. Does not requires Javascript and works with Monero Local Daemon. Inspired from Eckmar's Marketplace Script.
Officially supported OS: Debian 11 and Arch Linux.At this documentation we will continue with Debian 11 OS.
There will be two stages:1) PHP – MySQL – Composer – NPM Setup2) Monero Daemon Setup3) Waking up the system with PHP Artisan
Let’s Start;
npm install
npm run prod
php artisan migrate:fresh –seed
php artisan storage:link
A Single Vendor Shop with works Local Monero Daemon
Emperor Shop Script is a single vendor market application. Build with Laravel 9, TailwindCSS and DaisyUI. Does not requires Javascript and works with Monero Local Daemon. Inspired from Eckmar's Marketplace Script.
Officially supported OS: Debian 11 and Arch Linux.At this documentation we will continue with Debian 11 OS.
There will be two stages:1) PHP – MySQL – Composer – NPM Setup2) Monero Daemon Setup3) Waking up the system with PHP Artisan
Let’s Start;
Update system repos and applications:
- sudo apt update
- sudo apt dist-upgrade
Install PHP 8.1 (lower PHP versions don’t supported)Note: When this documentation wrote, PHP 8.1 is not added to Debian 11 repos. So wewill call Sury PPA.
- sudo apt install apt-transport-https lsb-release ca-certificates curl
- sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
- sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" >/etc/apt/sources.list.d/php.list'
- sudo apt update
- sudo apt install php8.1 php8.1-fpm
>>> And now, check php8.1 installation:
- php --version
>>> Lets continue with PHP dependencies:
- sudo apt install php8.1-mbstring php8.1-xml php8.1-xmlrpc php8.1-gmp php8.1-curlphp8.1-gd php-mysql php-redis composer unzip -y
Install MySQL (MariaDB) Server and Configure Database:
- sudo apt install mariadb-server
- sudo sudo mysql_secure_installation
>>> This command will guide you trough securing your MySQL connection.
- sudo mysql
>>> And time to create database, user and permissions. I will use ‘emperor’ for alllines. You must change it and set up on your .env file. So take note your databasename, database username, database password. You’ll use them.
- create database emperor;
- create user ‘emperor’@’localhost’ identified by ‘emperor’;
- grant all on emperor.* to ‘emperor’@’localhost’;
- exit
Install Redis Cache Server
- sudo apt install redis-server
- sudo nano /etc/redis/redis.conf
>>> And find # requirepass foobar; uncomment it and change foobar to your password.Take note of your redis password. You’ll use it again.
- requirepass yourpassword
>>> Check your redis server.
- sudo systemctl status redis
Installing NPM
- sudo apt install nodejs
- sudo apt install npm
Stage 2: Installing Monero CLI
- cd ~
- wget https://downloads.getmonero.org/linux64
- tar jxvf linux64
- cd monero-x86_64-linux-gnu-v** (** enter current version or use TAB forautocomplete)
- ./monerod
Creating Monero Wallet:
- ./monero-wallet-cli --generate-new-wallet walletName --create-address-file --password'walletpassword'
Connecting Monero Wallet with the Daemon
- ./monero-wallet-rpc --rpc-bind-port 18083 --rpc-bind-ip 127.0.0.1 --disable-rpc-login --wallet-file walletName
composer installTime to wake up web system
- cd /path/marketplace
- nano .env
npm install
npm run prod
php artisan key:generateNOTE: If you got problems with npm / nodejs; set up versions to:
- npm: v8.10.0
- node: v18.3.0
php artisan migrate:fresh –seed
php artisan storage:link
Default admin/vendor account:At the end you will have FOUR active terminal tabs.
- php artisan serve
- php artisan schedule:work
- ./monerod
- ./monero-wallet-rpc --rpc-bind-port 18083 --rpc-bind-ip 127.0.0.1 --disable-rpc-login --wallet-file walletName
- username: admin
- password: admin123