go2o

command module
v0.0.0-...-33ecd2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

README

Go2o

What's Go2o?

Go2o is Google Go language binding domain-driven design (DDD) O2O open source implementation. Support Online Store , Offline stores; multi-channel (businesses), multi-store, merchandise, snapshots, orders, sales, payment, distribution and other functions.

Project by a management center (including platform management center, business background, store background), online store (PC shop, Handheld shops, micro-channel), the member center, open API in four parts.

Go2o using domain-driven design for business depth abstract, theoretical support in most sectors O2O scenarios. Through open API, you can seamlessly integrate into legacy systems.

Go2o 介绍

Go2o是Google Go语言结合领域驱动设计(DDD)的开源O2O实现。支持线上商店,线下门店;多渠道

(商户)、多门店、商品、快照、订单、促销、支付、配送等功能。

项目由管理中心(包括平台管理中心、商户后台、门店后台)、线上商店(PC商店、手持设备商店、微信)、

会员中心、开放API四部分组成。

Go2o使用领域驱动设计对业务深度抽象,理论上支持大部分行业的O2O应用场景。通过开放API,可以无缝

集成到旧有系统。

项目说明

项目最新版本: v 0.2 (因为要求高,v1.0还有距离)

由 #刘铭#, #大鹏# (全职开发,无收入 -_- ),


贡献代码请看: todo list | bug list

代码保证每周更新2-5次(因为项目本身,希望你能接受不定时可能较为频繁的代码改动和DB结构调整 ) 同时也欢迎朋友加入我们(代码可能写的不好,但我们会改进,请大牛不要鄙视,开源需要支持和鼓励)。

请支持开源,不做伸手党,不拿来主意!

========================================

捐赠支付宝:jarrysix@gmail.com (金额随意) 如有定制需求可邮件联系< lm#s1n1.com >。

感谢以下哥们和匿名捐助的朋友: 巍 zhu**@126.com 职业码农 奋斗富三代

演示地址

********* (目前还不完善,暂不提供)

珠三Go技术群:102629585 (珠三是珠三角 , 是QQ群,不是其他群)

Deploy

1. Import database

Create new mysql db instance named "go2o" and import data use mysql utility. Database backup file is here : go2o.sql

2.Complied

git clone https://github.com/jsix/go2o.git /home/usr/go/src/go2o
export GOPATH=$GOPATH:/home/usr/go/
cd /home/usr/go
go build go2o-server.go
go build go2o-daemon.go

2.Running Service

Usage of ./go2o-server:
	-debug=false: enable debug
	-help=false: command usage
	-mode="sha": boot mode.'h'- boot http service,'s'- boot socket service
    -port=1001: web server port
	-port2=1002: socket server port
	-d = false : running daemon service

Usage of ./go2o-daemon:
	-debug = false : enable debug

3.Add http proxy by nginx

server {
	listen          80;
	server_name     *.ts.com;
	location / {
		proxy_pass   http://localhost:1002;
		proxy_set_header Host $host;
	}
}

4.Add test hosts

echo 127.0.0.1 go2o.ts.com static.ts.com img.ts.com partner.ts.com member.ts.com www.ts1.com www.ts2.com api.ts.com webmaster.ts.com >> /etc/hosts

Access Entry

WebMaster

webmaster.ts.com

account: go2o / 123456

Partner Management

partner.ts.com

account: go2o / 123456

Member Center

member.ts.com

Partner Sales

go2o.ts.com

you can add host to table "pt_host" use MySql Workbench.

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : daemon
  • author : jarryliu
  • date : 2015-08-04 20:23
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : test.go
  • author : jarryliu
  • date : -- :
  • description :
  • history :

Directories

Path Synopsis
src
app
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
app/api
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
app/daemon
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
app/front
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
app/front/master
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
app/front/master/dao
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
app/front/master/dao/entity
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
app/front/partner
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
app/front/shop
* 包含PC,移动端,微信的WEB UI * pcs : PC端线上商店
* 包含PC,移动端,微信的WEB UI * pcs : PC端线上商店
app/front/shop/ofs
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
app/front/shop/ols
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
app/front/shop/ols/mos
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
app/front/shop/wxs
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
app/front/ucenter
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
app/util
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
cache
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/domain/ad
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/content
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/delivery
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/domain/interface/ad
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/interface/content
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/interface/delivery
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/domain/interface/enum
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/interface/member
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/interface/partner
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/interface/partner/mss
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/interface/partner/user
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/domain/interface/promotion
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/interface/sale
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/domain/interface/shopping
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/domain/interface/valueobject
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/member
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/partner
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/partner/mss
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/partner/user
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/domain/promotion
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/sale
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/domain/shopping
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/dto
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/infrastructure/domain
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/infrastructure/domain/util
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/infrastructure/format
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/infrastructure/gen
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/infrastructure/gen/rsc
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/infrastructure/gen/rsc/gf256
Package gf256 implements arithmetic over the Galois Field GF(256).
Package gf256 implements arithmetic over the Galois Field GF(256).
core/infrastructure/gen/rsc/qr
Package qr encodes QR codes.
Package qr encodes QR codes.
core/infrastructure/gen/rsc/qr/coding
Package coding implements low-level QR coding details.
Package coding implements low-level QR coding details.
core/infrastructure/mss
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/infrastructure/payment
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/infrastructure/payment/alipay
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/query
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/repository
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/service
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/service/dps
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
core/service/goclient
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/service/server
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
core/variable
* * Copyright 2014 @ z3q.net.
* * Copyright 2014 @ z3q.net.
external
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
external/ols
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.
gocli
* * Copyright 2015 @ z3q.net.
* * Copyright 2015 @ z3q.net.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL