Skip to content
Proyectos

Acerca de

Un sistema de comercio electrónico de código abierto basado en Laravel, fácil de usar y muy personalizable.

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

What you can do

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

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original
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 ❤️!

Explorar proyectos relacionados

Cargando…