Golangcombinesimpleo2oDDDdomain-drivendesignrealization,includingmulti-channel(businesses),multi-store,multi-membercommodity,Promotions,orders,couponsimplementationalsoincludesamicroframeworkinpackage"gof",providingORM,Reporting,WebFramework,RpcFramework.
Golang结合DDD领域驱动设计的简单o2o实现,包含多渠道(商家),多门店,多会员.商品,促销,订单,优惠券的实现,依赖一个微型框架atnet/gof,提供ORM,报表,WebFramework,RpcFramework.
Deploy1.Compliedgitclonehttps://github.com/atnet/go2o.git/home/usr/go/src/go2oexportGOPATH=$GOPATH:/home/usr/go/cd/home/usr/gogobuildserver.go2.RunningServiceUsageof./server:-debug=false:enabledebug-help=false:commandusage-mode="sh":bootmode.'h'-boothttpservice,'s'-bootsocketservice-port=1001:webserverport-port2=1002:socketserverport3.Addhttpproxybynginxserver{listen80;server_name*.ts.com;location/{proxy_passhttps://localhost:1002;proxy_set_headerHost$host;}}4.Addtesthostsvi/etc/hosts127.0.0.1wly.ts.comstatic.ts.comimg.ts.compartner.ts.commember.ts.comwww.ts1.comwww.ts2.comapi.ts.comwsapi.ts.comAccessEntryPartnerManagementpartner.ts.com
MemberCentermember.ts.com
PartnerSaleswly.ts.com
youcanaddhosttotable"pt_host"useMySqlWorkbench.
评论