Yii2Shop
This is e-commerce application built on Yii2. It is not full e-commerce - it is showcase, (*1)
FEATURES
Because it's only e-commerce showcase - only several features available:
* Admin Panel - Backend
* Home page with latest products
* Catalog with sorting and product preview
* Categories support
* SEO-friendly URLs (with slugs like domain.com/categoryname/productname)
* Special statuses for products (example: In stock, Discount, etc.)
* Image gallery in product view
* And a lot of! See demo for more details, maybe I forget something, (*2)
DEMO
FrontEnd Demo, (*3)
BackEnd Demo, (*4)
Login: admin
, (*5)
Password: admin
, (*6)
Please don't clear shop content ^), (*7)
REQUIREMENTS
The minimum requirement by this application template that your Web server supports PHP 5.4.0., (*8)
INSTALLATION
Run in the command line:, (*9)
git clone https://github.com/CyanoFresh/yii2shop.git yii2shop
, (*10)
Go to the application dir and run:, (*11)
php requirements.php
, (*12)
to check application requirements and run:, (*13)
composer install
, (*14)
to install dependencies., (*15)
After you install the application, you have to conduct the following steps to initialize
the installed application. You only need to do these once for all., (*16)
- Run command
php init
to initialize the application with a specific environment.
- Create a new database and adjust the
components['db']
configuration in common/config/main-local.php
accordingly.
- Apply migrations with console command
yii migrate
. This will create tables needed for the application to work.
- Configure your application by editing config files:
⋅⋅*
common/config/main-local.php
⋅⋅* backend/config/main-local.php
⋅⋅* frontend/config/main-local.php
If there are not needed options in the *main-local.php
files you can copy them from *main.php
and overwrite in the
*main-local.php
- Set document roots of your Web server:
- for frontend
/path/to/yii2shop/frontend/web/
and using the URL http://yii2shop.com/
- for backend
/path/to/yii2shop/backend/web/
and using the URL http://admin.yii2shop.com/
To login into the application, you need to use:, (*17)
Username: admin
Password: admin
, (*18)
You can change it at the backend/config/params.php
(users
array), (*19)