Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Joyi authored and Joyi committed Jun 2, 2017
1 parent cf438cb commit 0fd31de
Show file tree
Hide file tree
Showing 1,580 changed files with 677,482 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.js linguist-language=Go
*.css linguist-language=Go
*.html linguist-language=Go
*.go linguist-language=Go
25 changes: 13 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Binaries for programs and plugins
*.exe
*.dll
*.so
*.dylib

# Test binary, build with `go test -c`
*.test
#ignore compile file

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/
.project
*.exe
*.exe~
.vscode/
goERP.*
debug
debug~
.idea
logs/*.log
/conf/app.conf
goERP.sqlite3
goERP
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM golang

ENV APP_HOME /go/src/goERP

RUN mkdir -p $APP_HOME

WORKDIR $APP_HOME

ADD . $APP_HOME

RUN go get github.com/tools/godep \
&& go get github.com/beego/bee \
&& godep restore

CMD go run main.go
119 changes: 119 additions & 0 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Godeps/Readme

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# goERP
基于beego的进销存系统

数据库的结构参考了odoo的设计

管理界面采用的是开源的adminLTE

由于公司销售的是黄金饰品,产品管理上面需要两个单位来管理,故在设计上直接使用了两个单位(暂时不添加第二单位)

数据库采用的是postgresql,版本中的数据库连接到自己的阿里云服务器

包含了全国省市区的地址信息,初始化数据在init_xml中,包括系统管理员的帐号信息

目前底层结构设计改动变化较大

![](http://i.imgur.com/IXXL2vO.png)

![](http://i.imgur.com/njEhm4t.png)



![讨论交流群](http://i.imgur.com/8XcXlLL.png)
46 changes: 46 additions & 0 deletions conf/app.conf.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
appname = goERP
httpport = 8888
runmode = dev
copyrequestbody = true
sessionon = true

#开启监控
EnableAdmin = true

pageoffset = 20
#防止跨站请求伪造
enablexsrf = true
xsrfkey = 61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o
xsrfexpire = 3600

#重新运行时是否覆盖原表创建
cover_db = false

#数据库类型:postgres/mysql/sqlite3
db_type = "postgres"

#postgreSQL配置
[postgres]
db_alias = "default"
db_name = "ERP"
db_user = "postgres"
db_pwd = ""
db_host = "db"
db_port = 5432
db_sslmode = "disable"
#sqlite3
[sqlite3]
db_alias = "default"
db_name = "goERP.sqlite3"

[lang]
types=en-US|zh-CN
names=English|简体中文
#日志配置
[log]
#cache配置
[cache]
cache = redis
#redis 的默认端口为6379
redis_host = "cache:6379"
cache_expire = 10
49 changes: 49 additions & 0 deletions conf/app.conf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
appname = goERP
httpport = 8888
runmode = dev
copyrequestbody = true
sessionon = true

#开启监控
EnableAdmin = true

pageoffset = 20
#防止跨站请求伪造
enablexsrf = true
xsrfkey = 61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o
xsrfexpire = 3600

#重新运行时是否覆盖原表创建
cover_db = false

#数据库类型:postgres/mysql/sqlite3
db_type = "sqlite3"

#postgreSQL配置
[postgres]
db_alias = "default"
db_name = "ERP"
db_user = "go"
db_pwd = "go"
db_host = "localhost"
#db_host = "192.168.21.141"
# db_host = "115.28.11.86"
db_port = 5432
db_sslmode = "disable"
#sqlite3
[sqlite3]
db_alias = "default"
db_name = "goERP.sqlite3"

[lang]
types=en-US|zh-CN
names=English|简体中文
#日志配置
[log]
#cache配置
[cache]
cache = redis
#redis 的默认端口为6379
redis_host = "127.0.0.1:6379"
memcache_host ="127.0.0.1:11211"
cache_expire = 10
18 changes: 18 additions & 0 deletions conf/locale_en-US.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[global]

zh-CN = 简体中文
en-US = English
systemName = goERP
minSystemName = ERP
loginName = Email/Mobile
firstLogin = first login
lastLoginTime = last login time
password = Password
rememberMe = Remember Me
forgotPw = I forgot my password
signIn = Sign In
layoutOptions = Layout Options
personlData = Personl Data
signOut = Sign Out
[login]
title = Sign in to start your session
18 changes: 18 additions & 0 deletions conf/locale_zh-CN.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[global]
zh-CN = 简体中文
en-US = English
systemName = goERP
minSystemName = ERP
loginName = 电子邮箱/手机号码
firstLogin = 第一次登录
lastIp = 上次登录地址
lastLoginTime = 上次登录时间
password = 密码
rememberMe = 记住我
forgotPw = 忘记密码
signIn = 登录
layoutOptions = 布局选项
personlData = 个人资料
signOut = 注销
[login]
title = 登录
Loading

0 comments on commit 0fd31de

Please sign in to comment.