Skip to content
Proyek

Tentang

Sistem belanja yang sangat dapat dikustomisasi dan mudah digunakan, proyek sumber terbuka berbasis Laravel

Pengembangan web dan aplikasi

Cara angka ini diukur

Yang dapat Anda lakukan

  • Dashboard panel improvements
  • Integration of Vue.js and Laravel
  • Advanced charts
  • Better customization with AI & language support

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli
xShop logo

xShop/v3

[!NOTE] xShop is an open-source shop developed in Laravel, highly customizable!

New Features

  • Dashboard panel improvements
  • Integration of Vue.js and Laravel
  • Advanced charts
  • Better customization with AI & language support
  • Fixed technical issues
  • Project size compression
  • More specific UI/UX
  • Developer-friendly
  • Custom theme design
  • WordPress migration
  • Easy support for multilingual (rtl-ltr) websites
  • A powerful SEO foundation means users never have to worry about technical SEO issues.

Default supported payment gateways:

paypal zarinpal zibal

Documentation

Installation [Development Mode]

It is strongly recommended that you refer to the documentation for installation and setup. This is only a brief installation summary.

[!IMPORTANT] Create a new database and rename .env.example to .env, then update your .env configurations. Run the following commands:

git clone https://github.com/4xmen/xshop.git
cd xshop
cp .env.example .env
composer install
php artisan migrate:fresh --seed
php artisan storage:link
php artisan key:generate
php artisan serve

# To develop front-end
pnpm i
php artisan client
pnpm install @rollup/rollup-win32-x64-msvc # Windows only, if the below line does not work
pnpm dev

If prompted to approve build scripts, approve the following packages: pnpm approve-builds

  • esbuild
  • @parcel/watcher

[!TIP] Default admin emails are: [email protected] (developer) or [email protected] (admin) Default password: password

Image Seeding

  • Download and prepare images:
php artisan seeding:prepare
  • Then copy your image folder to database/seeders/images/
  • Seed images for models: [Group, Category, Post, Product, Slider]
php artisan seeding:image Product digital

Or to seed all models:

php artisan seeding:all digital

The first parameter is the model name; the second is the image seeder directory. Available directories: [bag, clothe, digital, sport, posts, makeup] You can create your own directory, add images to it, and use it with the image seeder.

Requirements

  • PHP 8.4.x or above with extensions: php-gd, sqlite3, php-soap
  • MySQL, MariaDB, or SQLite
  • Composer
  • Recommended: Install ImageMagick on the server for better image performance

Deployment Guide

It is strongly recommended that you refer to the documentation for installation and setup. This is only a brief installation summary.

We recommend deploying xShop on a VPS. Create a database and run the following commands:

cd /home/[yourUsername]/[pathToYourWebsitePublicHTML]
git clone https://github.com/4xmen/xshop.git .  # If this command doesn’t work, empty this folder first
cp .env.example .env
nano .env # Edit your DB config, URL, etc.
composer install
php artisan migrate --seed
php artisan storage:link
php artisan key:generate
pnpm install 
php artisan client
pnpm build

Optimize for Production

nano .env # Set APP_DEBUG=false, APP_ENV=production
php artisan optimize
composer install --optimize-autoloader --no-dev

Add Cron Job

Add a crontab entry for your project:

crontab -e

Add this line:

* * * * * cd /home/[yourusername]/[your-public-html-project-root] && php artisan schedule:run >> /dev/null 2>&1

Create xController

Create a controller with logging and semi-automatic CRUD with logs. Usage: [model]

php artisan make:xcontroller User

Create Theme Part

Create a reusable theme part in a specific area.

Parameters: PartName [theme part name] segmentName [group, category, preloader, ...]

php artisan make:part PartName segmentName

Client Optimization

Optimize client assets: scss, js, css

php artisan client
php artisan build

Theme Parts Files

  • PartName.php: Contains onAdd, onRemove, onMount actions for the theme part
  • PartName.blade.php: Blade template for the theme part
  • PartName.scss: SCSS styles for the theme part
  • PartName.js: JavaScript for the theme part
  • screenshot.png: Screenshot preview of the theme part

How to migrate from WordPress & WooCommerce to xShop?

This is done in several steps:

  • First install xShop following the steps described above (preferably on localhost).
  • Then install the xshift plugin (found in the thirdparty folder) on your WordPress site.
  • Next, run the following commands inside the xshop folder:
php artisan xshift group http://wp.test/
php artisan xshift post http://wp.test/
php artisan xshift catgory http://wp.test/
php artisan xshift product http://wp.test/

Replace http://wp.test/ with your old website’s URL. If xshop does not allow data transfer and requires an empty database, run:

php artisan xshift clear

Important notes: the above clear command will delete (truncate) all content and product data on your current server.

Note: migration commands may take from 1 minute to several hours depending on the amount of content on the old site, especially the number of images.

Screenshots

1

2

3

4

5

Access to xShop/v1

[!WARNING] xShop/v1 is available here: https://github.com/4xmen/xshop.v1

Developed with ❤️!

Jelajahi proyek terkait

Memuat…