Skip to content

Commit 8593b9c

Browse files
committed
Update README.md
1 parent cd2e52e commit 8593b9c

File tree

1 file changed

+34
-6
lines changed

1 file changed

+34
-6
lines changed

README.md

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
Go2o
1+
Go2o
22
================
33
# What's Go2o #
4-
Golang combine simple o2o DDD domain-driven design realization, including multi-channel (businesses), multi-store, multi-member commodity,Promotions, orders, coupons implementation also includes a mini-framework in package "ops/cf", providing ORM, Reporting, Web Framework,Rpc Framework.
4+
Golang combine simple o2o DDD domain-driven design realization,
5+
including multi-channel (businesses), multi-store, multi-member commodity,
6+
Promotions, orders, coupons implementation also includes a micro framework
7+
in package "ops/cf", providing ORM, Reporting, Web Framework,Rpc Framework.
8+
9+
Golang 结合DDD领域驱动设计的简单o2o实现,包含多渠道(商家),多门店,多会员.商品,
10+
促销,订单,优惠券的实现,同时包含一个微型框架ops/cf,提供ORM,报表,Web Framework,Rpc Framework.
511

612
# Deploy #
713

814
## 1.Complied ##
915
git clone https://github.com/newmin/go2o.git /home/usr/go2o
10-
export GOPATH=$GOPATH:/home/usr/go2o
16+
export GOPATH=$GOPATH:/home/usr/go2o/
1117
cd /home/usr/go2o
1218
go build server.go
1319

@@ -19,11 +25,33 @@ Golang combine simple o2o DDD domain-driven design realization, including multi-
1925
-port=1001: web server port
2026
-port2=1002: socket server port
2127

22-
## 3.Add http proxy for nginx ##
28+
## 3.Add http proxy by nginx ##
29+
server {
30+
listen 80;
31+
server_name *.ts.com;
32+
33+
location / {
34+
proxy_pass http://localhost:1001;
35+
proxy_set_header Host $host;
36+
}
37+
}
38+
2339

2440
## 4.Add test hosts ##
2541
vi /etc/hosts
2642
127.0.0.1 wly.ts.com static.ts.com img.ts.com partner.ts.com
27-
member.ts.com www.ts1.com www.ts2.com api.ts.com
28-
wsapi.ts.com
43+
member.ts.com www.ts1.com www.ts2.com api.ts.com wsapi.ts.com
44+
45+
46+
# Access Entry #
47+
## Partner Management ##
48+
partner.ts.com
49+
50+
## Member Center ##
51+
member.ts.com
52+
53+
## Partner Sales ##
54+
wly.ts.com
55+
56+
you can add host to table "pt_host" use MySql Workbench.
2957

0 commit comments

Comments
 (0)