Code Monkey home page Code Monkey logo

galaxy's Introduction

Yincart2 Galaxy System

终极电商系统解决方案:

基础版本提供多商户平台商城(B2B2C),可用于垂直电商平台或者综合电商平台。若要作为B2C商城使用,关闭商家后台即可

根据自己需要,可以扩展为分销、C2C、移动电商、微信小程序、社区团购等电商解决方案

目录结构说明

common
    config/              contains shared configurations
    mail/                contains view files for e-mails
console
    config/              contains console configurations
    controllers/         contains console controllers (commands)
    migrations/          contains database migrations
    models/              contains console-specific model classes
    runtime/             contains files generated during runtime
matter                   电商引擎核心基础
    base/                基础类
    behaviors/           行为类
    helpers/             助手类
modules                  公用模块
    account              账户模块
    auth                 权限模块
    blog                 博客文章模块
    cart                 购物车模块
    catalog              商品模块
    marketing            市场营销模块
    member               会员模块
    order                订单模块
    payment              支付模块
    refund               退货模块
    shipment             物流模块
    store                商店模块
    system               系统模块
star-center              平台后台      
star-cms                 内容管理平台:可用于公司官方网站
star-mall                商城前台:如天猫、京东
star-merchant            商家后台   
star-store               商店前台  
star-upload              上传的文件图片等(新安装需要自己创建此目录)
themes                   主题皮肤          
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides
tests                    contains various tests for the advanced application
    codeception/         contains tests developed with Codeception PHP Testing Framework

虚拟域名配置说明

命名规则为xxx.star对应star-xxx,遵循“见名知意”的原则

本地测试hosts:

127.0.0.1 center.star
127.0.0.1 cms.star
127.0.0.1 mall.star
127.0.0.1 merchant.star
127.0.0.1 store.star
127.0.0.1 upload.star

apache httpd-vhosts.conf:

<VirtualHost *:80>
  ServerName center.star
  ServerAlias center.star
  DocumentRoot "E:\wamp64\www\galaxy\star-center\web"
  <Directory "E:\wamp64\www\galaxy\star-center\web">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  ServerName cms.star
  ServerAlias cms.star
  DocumentRoot "E:\wamp64\www\galaxy\star-cms\web"
  <Directory "E:\wamp64\www\galaxy\star-cms\web">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  ServerName store.star
  ServerAlias store.star
  DocumentRoot "E:\wamp64\www\galaxy\star-store\web"
  <Directory "E:\wamp64\www\galaxy\star-store\web">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  ServerName mall.star
  ServerAlias mall.star
  DocumentRoot "E:\wamp64\www\galaxy\star-mall\web"
  <Directory "E:\wamp64\www\galaxy\star-mall\web">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  ServerName merchant.star
  ServerAlias merchant.star
  DocumentRoot "E:\wamp64\www\galaxy\star-merchant\web"
  <Directory "E:\wamp64\www\galaxy\star-merchant\web">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  ServerName upload.star
  ServerAlias upload.star
  DocumentRoot "E:\wamp64\www\galaxy\star-upload"
  <Directory "E:\wamp64\www\galaxy\star-upload">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

数据库

数据库位于console/data/galaxy_latest.sql

Migration

yii migrate/up system_v0_1_0 --migrationPath=@star/system/migrations

安装流程

  1. composer update(目前暂停使用compose更新,可直接使用根目录的vendor.zip解压到当前目录即可)

  2. php init (本地选择 0 - 开发环境,线上选择 1 - 生产环境)

  3. 修改数据库连接 账号

  4. yii migrate/up system_v0_1_0 --migrationPath=@star/system/migrations

  5. 将 console/data/galaxy_latest.sql 导入数据库

账户

平台后台:admin 123456

REQUIREMENTS

The minimum requirement by this application template that your Web server supports PHP 5.4.0.

Install via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install the application using the following command:

php composer.phar global require "fxp/composer-asset-plugin:1.0.0"
php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced advanced

galaxy's People

Contributors

yinhe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

galaxy's Issues

composer安装时报错

Problem 1
- Installation request for yiisoft/yii2-composer 2.0.3 -> satisfiable by yii soft/yii2-composer[2.0.3].
- yiisoft/yii2-composer 2.0.3 requires composer-plugin-api 1.0.0 -> no match ing package found.
Problem 2
- yiisoft/yii2-composer 2.0.3 requires composer-plugin-api 1.0.0 -> no match ing package found.
- yiisoft/yii2 2.0.4 requires yiisoft/yii2-composer * -> satisfiable by yiis oft/yii2-composer[2.0.3].
- Installation request for yiisoft/yii2 2.0.4 -> satisfiable by yiisoft/yii2 [2.0.4].

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further commo n problems.

latest changes in table 'user'

column 'password_reset_token' in table 'user' must be exist, for code in /star-modules/core/ and /star-merchant/ already use it.

composer.json

Composer.json文件里面的描述,homepage之类的,怎么直接写的yiiframework的。是不是需要改改?

可以把安装步骤详细些么?

安装需要做的步骤


  • 程序下载了,sql文件导入了,
  • 关于配置的地方,希望你可以描述的清晰些
  • 没有看到各个模块的入口文件,如果可以麻烦您出个详细的readme 吧

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.