GithubHelp home page GithubHelp logo

teng2015 / shop-php-yii2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eleteam/unishopx

0.0 2.0 0.0 53.62 MB

EleTeam开源项目-电商全套解决方案之PHP版-ETShop-for-PHP-Yii2。一个类似京东/天猫/淘宝的商城,有对应的APP支持,由EleTeam团队维护!

License: MIT License

PHP 100.00%

shop-php-yii2's Introduction

Shop-PHP-Yii2

亲~您的一个小动作,会大大地鼓励EleTeam团队继续维护该项目,请 Watch、Star、Fork、Follow Me。

EleTeam开源项目-电商全套解决方案之iOS版-ETShop-for-PHP-Yii2。一个类似京东/天猫/淘宝的商城,有对应的APP支持,由EleTeam团队维护!

客户端是iOS商城,对应项目是 ETShop-for-iOS,https://github.com/EleTeam/Shop-PHP-Yii2

安装环境要求:

php-5.6.x
mysql-server-5.6.x
httpd-2.x/nginx

该项目分为4个小项目,Apache需要创建4个虚拟主机,存放该项目的所有代码,虚拟主机的配置如下:

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Users/tony/Desktop/Develop/PHP-WWW/Shop-PHP-Yii2/backend/web"
    ServerName local.eleteambackend.ygcr8.com
    ErrorLog "logs/local.eleteambackend.ygcr8.com-error_log"
    CustomLog "logs/local.eleteambackend.ygcr8.com-access_log" common
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Users/tony/Desktop/Develop/PHP-WWW/Shop-PHP-Yii2/frontend/web"
    ServerName local.eleteam.ygcr8.com
    ServerAlias local.eleteam.ygcr8.com
    ErrorLog "logs/local.eleteam.ygcr8.com-error_log"
    CustomLog "logs/local.eleteam.ygcr8.com-access_log" common
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Users/tony/Desktop/Develop/PHP-WWW/Shop-PHP-Yii2/data"
    ServerName local.eleteamdata.ygcr8.com
    ServerAlias local.eleteamdata.ygcr8.com
    ErrorLog "logs/local.eleteamdata.ygcr8.com-error_log"
    CustomLog "logs/local.eleteamdata.ygcr8.com-access_log" common
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Users/tony/Desktop/Develop/PHP-WWW/Shop-PHP-Yii2/api/web"
    ServerName local.eleteamapi.ygcr8.com
    ServerAlias local.eleteamapi.ygcr8.com
    ErrorLog "logs/local.eleteamapi.ygcr8.com-error_log"
    CustomLog "logs/local.eleteamapi.ygcr8.com-access_log" common
</VirtualHost>

配置本地的hosts文件:

127.0.0.1       local.eleteam.ygcr8.com
127.0.0.1       local.eleteambackend.ygcr8.com
127.0.0.1       local.eleteamdata.ygcr8.com
127.0.0.1       local.eleteamapi.ygcr8.com

配置项目:

以下文件夹要求读写权限:
    chmod -R 777 frontend/runtime backend/runtime api/runtime console/runtime
    chmod -R 777 frontend/web/assets backend/web/assets

导入数据库文件:

文件存放在: /dbbaks/etshop_?.sql, 项目在紧急开发中,所以该文件会不断更新,如果你的项目出现问题了,请重新导入最新的sql文件。

线上的访问地址:

前台: http://eleteam.ygcr8.com
api: http://eleteamapi.ygcr8.com/v1/product/view?id=3
数据: http://eleteamdata.ygcr8.com
gii: http://local.eleteam.ygcr8.com/gii
后台: http://eleteambackend.ygcr8.com
    后台超级用户: admin/123456
    后台普通用户: demo/123456
@author Tony Wong
@email [email protected]
@copyright Copyright © 2015年 EleTeam. All rights reserved.
@license The MIT License (MIT)
此源码遵守 The MIT License (MIT),可用于商业上,但是因此带来的商业损失EleTeam团队不承担责任。

shop-php-yii2's People

Contributors

eleteam avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.