Giter VIP home page Giter VIP logo

erp's Introduction

goERP

后台:框架采用国人谢大开发的beego

前端:webpack2+vue2+vuex+vue-router

简化数据库表设计,取消表的创建者、更新者和用户的直接关联关系,orm上为操作者的ID,而非对象

clone工程到go的src目录下,工程文件夹的名字必须为goERP,若要修改名字需要将代码中所有goERP修改为工程文件夹的名字

体验步骤

  • 在系统变量GOPATH下src目录中执行下面的命令(文件夹名称必须为goERP,改成其他名称需要替换代码中的包引入中的字符串"goERP")

git clone https://github.com/hexiaoyun128/ERP.git goERP
  • cd到web_pc,执行下面的命令

npm install
npm run build 
  • 在goERP目录下执行

bee run
  • 浏览器输入地址

回到goERP目录下执行:bee run

默认端口为8888

默认开启了https

域名为www.hechihan.com 本机修改hosts文件

生成crt文件

gopath下src/crypto/tls/generate_cert.go

go run generate_cert.go -host www.hechihan.com

QQ群

erp's People

Contributors

itcloudy avatar shiptux 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

erp's Issues

是否有演示?

您好,请问是否有演示版本?请下发地址或者相关截图谢谢!

我从配置文件看到了有redis。请问redis是否必须要安装呢?我现在有mysql数据库,那么我只保留配置文件中的mysql配置就可以了对吧?其他的配置我删除可以吗?

postgresql 设置的 db_name无效

如果使用 postgres 数据库, db_name = "ERP" 这个不管怎么填, 最后都是用名字叫 postgres 的数据库.

相关设置:

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"

pgweb 却只能这样连接:
DATABASE_URL=postgres://postgres:@db:5432/postgres?sslmode=disable

goERP这个包从哪里安装?

github.com的包我可以go get, goERP这个哪里找?项目不是叫ERP吗?

main.go:14:2: cannot find package "github.com/beego/i18n" in any of:
	/usr/local/go/src/github.com/beego/i18n (from $GOROOT)
	/usr/local/go/src/github.com/beego/i18n (from $GOPATH)
main.go:15:2: cannot find package "github.com/go-sql-driver/mysql" in any of:
	/usr/local/go/src/github.com/go-sql-driver/mysql (from $GOROOT)
	/usr/local/go/src/github.com/go-sql-driver/mysql (from $GOPATH)
main.go:6:2: cannot find package "goERP/init" in any of:
	/usr/local/go/src/goERP/init (from $GOROOT)
	/usr/local/go/src/goERP/init (from $GOPATH)
main.go:7:2: cannot find package "goERP/models" in any of:
	/usr/local/go/src/goERP/models (from $GOROOT)
	/usr/local/go/src/goERP/models (from $GOPATH)
main.go:8:2: cannot find package "goERP/routers" in any of:
	/usr/local/go/src/goERP/routers (from $GOROOT)
	/usr/local/go/src/goERP/routers (from $GOPATH)
main.go:10:2: cannot find package "goERP/utils" in any of:
	/usr/local/go/src/goERP/utils (from $GOROOT)
	/usr/local/go/src/goERP/utils (from $GOPATH)

这句代码中的事务没有rollback没有问题么?

定义了事务,如果在下面err出错之后进入defer,但是并没有rollback,这样会导致数据库锁吧?
o := orm.NewOrm() err = o.Begin() defer func() { if err == nil { if o.Commit() != nil { if errRollback := o.Rollback(); errRollback != nil { err = errRollback } } } }() if err != nil { return }

在mac下启动程序,打开页面出现找不到login.html模板!

goERP:can't find templatefile in the path:login.html
Request Method: GET
Request URL: /login/in
RemoteAddr: 127.0.0.1
Stack
/usr/local/go/src/runtime/asm_amd64.s:479
/usr/local/go/src/runtime/panic.go:458
/Users/weeds/Documents/go/src/goERP/vendor/github.com/astaxie/beego/template.go:64
/Users/weeds/Documents/go/src/goERP/vendor/github.com/astaxie/beego/controller.go:249
/Users/weeds/Documents/go/src/goERP/vendor/github.com/astaxie/beego/controller.go:200
/Users/weeds/Documents/go/src/goERP/vendor/github.com/astaxie/beego/controller.go:184
/Users/weeds/Documents/go/src/goERP/vendor/github.com/astaxie/beego/router.go:809
/usr/local/go/src/net/http/server.go:2202
/usr/local/go/src/net/http/server.go:1579
/usr/local/go/src/runtime/asm_amd64.s:2086
beego 1.7.2 (beego framework)
golang version: go1.7.1

goerp和pms/db 造成不能运行和go get

2017/03/11 20:05:50 [INFO] Start building...
main.go:6:2: cannot find package "goERP/init" in any of:
d:\GO\src\src\github.com\hexiaoyun128\ERP\vendor\goERP\init (vendor tree)
C:\Go\src\goERP\init (from $GOROOT)
d:\GO\src\src\goERP\init (from $GOPATH)
E:\works\NwayConference\src\goERP\init
main.go:7:2: cannot find package "goERP/models" in any of:
d:\GO\src\src\github.com\hexiaoyun128\ERP\vendor\goERP\models (vendor tree)
C:\Go\src\goERP\models (from $GOROOT)
d:\GO\src\src\goERP\models (from $GOPATH)
E:\works\NwayConference\src\goERP\models
main.go:8:2: cannot find package "goERP/routers" in any of:
d:\GO\src\src\github.com\hexiaoyun128\ERP\vendor\goERP\routers (vendor tree)
C:\Go\src\goERP\routers (from $GOROOT)
d:\GO\src\src\goERP\routers (from $GOPATH)
E:\works\NwayConference\src\goERP\routers
main.go:10:2: cannot find package "goERP/utils" in any of:
d:\GO\src\src\github.com\hexiaoyun128\ERP\vendor\goERP\utils (vendor tree)
C:\Go\src\goERP\utils (from $GOROOT)
d:\GO\src\src\goERP\utils (from $GOPATH)
E:\works\NwayConference\src\goERP\utils
2017/03/11 20:05:50 [ERRO] ============== Build failed ===================

当我尝试go get goerp时,发生以下问题
D:\Go\src\src\github.com\hexiaoyun128\ERP>go get github.com/hexiaoyun128/goERP
package pms/db: unrecognized import path "pms/db" (import path does not begin with hostname)
package pms/init: unrecognized import path "pms/init" (import path does not begin with hostname)
package pms/routers: unrecognized import path "pms/routers" (import path does not begin with hostname)

获取用户列表失败

2017/04/30 13:49:53 [C] [asm_amd64.s:514] the request url is /user/
2017/04/30 13:49:53 [C] [asm_amd64.s:514] Handler crashed with error table: .int not found, maybe not RegisterModel

获取用户列表失败

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.