Giter Site home page Giter Site logo

go2o's Introduction

Go2o

Build Status

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是使用Golang语言结合领域驱动设计(DDD)的O2O实现。支持线上商店,线下门店;多渠道

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

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

会员中心和通行证、服务四部分组成。

Go2o使用领域驱动设计对业务深度抽象,支持常见的O2O应用场景。通过Socket服务,可以开发安卓和IOS,

使用RPC服务可以方便与其他系统进行集成。

Go2o

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

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

感谢以下哥们和匿名捐助的朋友:

  • *巍
  • zhu***@126.com
  • 职业码农
  • 奋斗富三代

QQ群:338164725

**特别感谢: 领域驱动设计的专家-(腾讯)王立老师,我的良师益友;没有他,就没有这个项目!

运行

准备运行环境

  • 安装PostgreSQL并创建名为go2o的数据库, 下载数据备份文件:go2o.sql进行还原
  • 安装nats
  • 安装etcd,单机创建单节点既可

### 编译运行

git clone https://github.com/ixre/go2o.git ./go2o
cd go2o && go mod tidy 
go run go2o-serve.go

指定参数,请参考:

Usage of go2o-serve:
  -apiport int
        api service port (default 1428)
  -conf string
         (default "app.conf")
  -d    run daemon
  -debug
        enable debug
  -endpoint etcd endpoints
  -help
        command usage
  -mqs string
        mq cluster address, like: 192.168.1.1:4222,192.168.1.2:4222 (default "127.0.0.1:4222")
  -port int
        gRPC service port (default 1427)
  -trace
        enable trace
  -v    print version

推荐使用docker-compose一键运行

docker-compose up -f container/docker-compose.yaml

go2o's People

Contributors

18665095356 avatar chooseylife avatar dependabot[bot] avatar ixre avatar loojee avatar miraclesu avatar testwill avatar tomytang 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  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

go2o's Issues

数据库的表不全

我导入到mysql, 运行的时出现
[ ORM][ ERROR]:Error 1146: Table 'go2o.registry' doesn't exist [ SQL]:SELECT registry.key,registry.value,registry.default_value,registry.options,registry.flag,registry.description FROM registry [Args]:[[]]

大佬,请教了

如果用go mod 在go path以外使用master
就会提示这个错误

go: github.com/jsix/[email protected]: parsing go.mod: unexpected module path "github.com/ixre/gof"
go: github.com/jsix/[email protected]: parsing go.mod: unexpected module path "github.com/ixre/goex"

我是windows环境

我表创建了,build 也没有错。然后./servser输出
qq 20150106014905
控制台啥也没有了。我在浏览器输入http://127.0.0.1:1001/显示101: no such partner

我不明白接下来怎么办了,pm_siteconf host怎么填。求楼主赐教

go2o-web docker-compose is broken

$ sudo docker pull docker-base.to2.net:5020
Error response from daemon: pull access denied for docker-base.to2.net, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
$ sudo docker pull docker-base.to2.net:5020/v2
Using default tag: latest
Error response from daemon: Get https://docker-base.to2.net:5020/v2/: http: server gave HTTP response to HTTPS client
$ sudo docker pull docker-base.to2.net:5020/go2o-web
Using default tag: latest
Error response from daemon: Get https://docker-base.to2.net:5020/v2/: http: server gave HTTP response to HTTPS client

Also when I go to https://docker-base.to2.net:5020/v2/ it asks for username/password

build 报错,我这边的环境是go 1.6的,echo库go get 下来的,会不会是echo库的版本问题?请问这咋处理?

go2o/src/x/echox

src/x/echox/echo.go:33: embedded type cannot be a pointer to interface
src/x/echox/echo.go:66: ctx.Response undefined (type _echo.Context is pointer to interface, not interface)
src/x/echox/echo.go:66: ctx.Request undefined (type *echo.Context is pointer to interface, not interface)
src/x/echox/echo.go:82: cannot use this.parseHandler(h) (type func(_echo.Context) error) as type echo.HandlerFunc in argument to this.Echo.Get
src/x/echox/echo.go:87: cannot use this.parseHandler(h) (type func(_echo.Context) error) as type echo.HandlerFunc in argument to this.Echo.Any
src/x/echox/echo.go:92: cannot use this.parseHandler(h) (type func(_echo.Context) error) as type echo.HandlerFunc in argument to this.Echo.Post
src/x/echox/echo.go:98: ctx.Context.Param undefined (type _echo.Context is pointer to interface, not interface)
src/x/echox/echo.go:109: cannot use this.parseHandler(h) (type func(_echo.Context) error) as type echo.HandlerFunc in argument to this.Echo.Any
src/x/echox/echo.go:113: this.Context.String undefined (type *echo.Context is pointer to interface, not interface)
src/x/echox/render.go:24: cannot use new(GoTemplateForEcho) (type *GoTemplateForEcho) as type echo.Renderer in assignment:
*GoTemplateForEcho does not implement echo.Renderer (wrong type for Render method)
have Render(io.Writer, string, interface {}) error
want Render(io.Writer, string, interface {}, echo.Context) error
src/x/echox/echo.go:113: too many errors

运行报错

go2o/src/core/infrastructure/domain

src/core/infrastructure/domain/generator.go:73: undefined: util.RandInt

go2o/src/x/echox

src/x/echox/echo.go:66: cannot use ctx.Response() (type engine.Response) as type http.ResponseWriter in argument to session.Default:
engine.Response does not implement http.ResponseWriter (wrong type for Header method)
have Header() engine.Header
want Header() http.Header
src/x/echox/echo.go:66: http.Request.Body is a field, not a method
src/x/echox/echo.go:66: cannot use ctx.Request() (type engine.Request) as type *http.Request in argument to session.Default
src/x/echox/echo.go:68: unknown Context field 'Context' in struct literal
src/x/echox/echo.go:82: cannot use this.parseHandler(h) (type func(echo.Context) error) as type echo.Handler in argument to this.Echo.Get:
func(echo.Context) error does not implement echo.Handler (missing Handle method)
src/x/echox/echo.go:87: cannot use this.parseHandler(h) (type func(echo.Context) error) as type echo.Handler in argument to this.Echo.Any:
func(echo.Context) error does not implement echo.Handler (missing Handle method)
src/x/echox/echo.go:92: cannot use this.parseHandler(h) (type func(echo.Context) error) as type echo.Handler in argument to this.Echo.Post:
func(echo.Context) error does not implement echo.Handler (missing Handle method)
src/x/echox/echo.go:98: ctx.Param undefined (type *Context has no field or method Param)
src/x/echox/render.go:24: cannot use new(GoTemplateForEcho) (type *GoTemplateForEcho) as type echo.Renderer in assignment:
*GoTemplateForEcho does not implement echo.Renderer (wrong type for Render method)
have Render(io.Writer, string, interface {}) error
want Render(io.Writer, string, interface {}, echo.Context) error
src/x/echox/echo.go:98: too many errors

求讲解

是否可以讲解一下目录结构以及设计思路

go build go2o-server.go 编译出错 go 1.6.2

go2o/src/core/query

src/core/query/partner_query.go:65: gof.CurrentApp.Log().Error undefined (type log.ILogger has no field or method Error)

go2o/src/core/repository

src/core/repository/member_rep.go:372: undefined: "github.com/jsix/gof/log".Error

关于支付

作者你好,关于支付那一块看的不是很明白,一直都没有找到如何调用支付宝/银行支付的,能指点一下吗?还是支付的功能没有实现?

无法访问提供的域名

webmaster.ts.com

partner.ts.com

member.ts.com

go2o.ts.com

文档中提供的这几个域名都无法访问.

front project

Could you share your front project repository please?

数据表要自己建吗?

启动成功,访问页面时报如下错误

[SQL ERROR]:Error 1146: Table 'foodording.pt_partner' doesn't exist [SQL]: ........

显示类重定义 ? go version 1.4.2 on windows

go2o/src/app/front/webui/www

src\app\front\webui\www\web_c.go:18: baseC redeclared in this block
previous declaration at src\app\front\webui\www\base_c.go:22
src\app\front\webui\www\web_c.go:22: (_baseC).GetPartnerId redeclared in this bl
ock
previous declaration at src\app\front\webui\www\base_c.go:49
src\app\front\webui\www\web_c.go:38: (_baseC).GetPartner redeclared in this bloc
k
previous declaration at src\app\front\webui\www\base_c.go:52
src\app\front\webui\www\web_c.go:43: (*baseC).GetMember redeclared in this block

    previous declaration at src\app\front\webui\www\base_c.go:62

build error

source code tag: 0.11

apples-MacBook-Pro:go2o carlos$ go build go2o-serve.go

go2o/src/core/query

src/core/query/partner_query.go:21: undefined: gof.Storage

go2o/src/app/util

src/app/util/member.go:22: undefined: gof.Storage
src/app/util/member.go:34: undefined: gof.Storage
src/app/util/member.go:47: undefined: gof.Storage
src/app/util/member.go:59: undefined: gof.Storage
src/app/util/member.go:71: undefined: gof.Storage

go2o/src/core

src/core/app.go:32: undefined: gof.Storage
apples-MacBook-Pro:go2o carlos$

是否是因为"github.com/jsix/gof"下的包内容改了,

我有几个疑问,

1:如果使用0.12逻辑部分代码;界面部分是否能平衡迁移0.11?

代码缺失

你好,下载了go2o包,编译时发现没有go2o/src/core/ording/dao/entity包,起初以为没有下载下来,到github查看,发现也确实没有,麻烦上传一下go2o/src/core/ording/,谢谢。

gobx/share/variable 在哪里?

执行:

go build go2o-server.go

遇到这个问题:

src/app/front/partner/editor_c.go:18:2: cannot find package "gobx/share/variable" in any of:
    /usr/local/go/src/gobx/share/variable (from $GOROOT)
    /Users/michael/Develop/golang/src/gobx/share/variable (from $GOPATH)

怎么解决?

一直部署不成功

希望项目继续保持活力

root@10-47-79-131:/home/avey/go2o# go mod tidy
go: github.com/micro/[email protected] requires
github.com/micro/[email protected]: reading github.com/micro/protoc-gen-micro/go.mod at revision v1.0.0: git ls-remote -q origin in /root/go/pkg/mod/cache/vcs/28cfbca4f5e41691076780b2017d5a1000b007b1d3d37b7a9d3b562c7adc9377: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.


github.com/micro/[email protected] 一直下载不了这个库

演示测试

请问有演示测试的环境吗,我这免费提供也可以。还有UI请问怎么收费,我想体验一下定制

Good ddd

I think you can write some guides for ddd using golang as DDD best practice!

安装go-server.go报错

$ go build go2o-server.go

command-line-arguments

.\go2o-server.go:85: undefined: app in app.Run

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.