You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/README.md

196 lines
4.5 KiB
Markdown

5 months ago
<div align="center">
<img width="250" src="resources/images/xshop-logo.svg" alt="xShop logo">
</div>
2 years ago
5 months ago
# xShop/v2
5 months ago
> [!NOTE]
> xShop is an open source shop developed in laravel, very customizable!
5 months ago
## New Features:
- Dashboard panel changes
- Integration of Vue.js and laravel
- Advanced charts
- Better customizable with AI & languages
- Fixed Technical issues
- Project size compression
- UI/UX is more specific
- Developer Friendlier
2 weeks ago
## Documentation
- [ 📄 **Full document** 📄 ](https://4xmen.github.io/xshop/#/)
- [🇮🇷 Persian read me](README-fa.md)
5 months ago
4 months ago
## Installation [ Development mode ]
5 months ago
5 months ago
> [!IMPORTANT]
> Create new database and rename `.env.example` to `.env` then update you `.env` configs so run this commands:
5 months ago
```bash
git clone https://github.com/4xmen/xshop.git
cd xshop
4 months ago
cp .env.example .env
5 months ago
composer install
php artisan migrate:fresh --seed
php artisan storage:link
php artisan key:generate
php artisan serv
# to develop front-end
1 month ago
npm i
php artisan client
npm install @rollup/rollup-win32-x64-msvc # just for windows if the below line dose not work
1 month ago
npm run dev
1 month ago
# or with yarn
yarn install
3 months ago
php artisan client
yarn add @rollup/rollup-win32-x64-msvc # just for windows if the below line dose not work
yarn dev
1 month ago
5 months ago
```
5 months ago
> [!TIP]
> Default admin email is : `developer@example.com` (developer) or `admin@example.com` (admin) and default password is: `password`
## image seeding
- Download & prepare images
```bash
php artisan seeding:prepare
```
- nor copy your image folder to `database/seeders/images/`
- then: Seeding image for models: [Group, Category, Post, Product, Slider]
```bash
php artisan seeding:image Product digital
```
Or to seed all models:
```bash
php artisan seeding:all digital
```
> First parameter is Model, Second is image seeder directory available [bag, clothe, digital, sport, posts, makeup]
> You can create your directory and put your image into new directory then use image seeder
5 months ago
## Requirement
- php 8.2.x or above [ `php-gd`, `sqlite3`, `php-soap`]
- mysql or mariadb or sqlite
5 months ago
- composer
- recommends install imagemagick on server to more image performance
5 months ago
## Deploy guide
We recommend deploy xShop on VPS, so create database and run this commands:
```bash
cd /home/[yourUsername]/[pathOfYourWebsitePublicHTML]
git clone https://github.com/4xmen/xshop.git . # if this command not work make empty this folder
cp .env.example .env
nano .env # edit your config db, url, etc.
composer install
php artisan migrate:fresh --seed
5 months ago
php artisan storage:link
php key:generate
npm install
php artisan client
npm run build
```
## Make your site optimize & production mode
```bash
nano .env # make APP_DEBUG false, APP_ENV production
php artisan optimize
5 months ago
composer install --optimize-autoloader --no-dev
```
2 months ago
## Add cron job
You must add crontab for your project:
```bash
crontab -e
```
Add this line:
```bash
* * * * * cd /home/[yourusername]/[your-public-html-project-root] && php artisan schedule:run >> /dev/null 2>&1
```
5 months ago
## make xController
6 months ago
Controller with log and semi-automatic CURD with logs
User [`model`]
```bash
php artisan make:xcontroller User
```
5 months ago
## make theme part
6 months ago
Theme part usable in area
6 months ago
6 months ago
PartName [`theme aprt name`]
5 months ago
segmentName [`group`, `category`, `preloader`, ...],
6 months ago
```bash
php artisan make:part PartName segmentName
```
5 months ago
## client optimize
6 months ago
Optimize client assets, `scss`,`js`,`css`
6 months ago
```bash
php artisan client
php artisan build
6 months ago
```
5 months ago
6 months ago
### theme parts file
- PartName.php: `onCreate`, `onRemove`, `onMount` actions of theme part
5 months ago
- PartName.blade.php: your theme part blade code
6 months ago
- PartName.scss: your theme part scss
- PartName.js: your theme part javascript
- screenshot.png: screenshot preview of theme part
## Demo
> Online demo available here: <a href="https://xshop.xstack.ir/login">https://xshop.xstack.ir/</a>
5 months ago
### Screenshots
6 months ago
![1](https://raw.githubusercontent.com/A1Gard/xshop-installer-assets/master/screenshots/xshop-screenshot1.png)
![2](https://raw.githubusercontent.com/A1Gard/xshop-installer-assets/master/screenshots/xshop-screenshot2.png)
![3](https://raw.githubusercontent.com/A1Gard/xshop-installer-assets/master/screenshots/xshop-screenshot3.jpg)
![4](https://raw.githubusercontent.com/A1Gard/xshop-installer-assets/master/screenshots/xshop-screenshot4.png)
![5](https://raw.githubusercontent.com/A1Gard/xshop-installer-assets/master/screenshots/xshop-screenshot5.jpg)
## Access to xShop/v1
> [!WARNING]
> xShop/v1 available here: <a href="https://github.com/4xmen/xshop.v1">https://github.com/4xmen/xshop.v1</a>
6 months ago
<p align="center">
Developed With Love ! ❤️
</p>