|
%!s(int64=8) %!d(string=hai) anos | |
---|---|---|
docker | %!s(int64=8) %!d(string=hai) anos | |
src | %!s(int64=8) %!d(string=hai) anos | |
.gitignore | %!s(int64=8) %!d(string=hai) anos | |
Makefile | %!s(int64=8) %!d(string=hai) anos | |
README.md | %!s(int64=8) %!d(string=hai) anos |
git clone http://dev.hexasoftware.com/stdio/sampleapp.git
cd sampleapp
make
customersvc logic is separated from the 'webapp' mostly because I tend to separate reusable logic into packages/modules/etc this way is possible to create a simple CLI app consuming the customersvc logic
..
└── app : GOPATH
├── docker
│ ├── docker-compose.yml
│ ├── Dockerfile.build
│ └── Dockerfile.dist
├── Makefile
├── README.md
└── src
└── sampleapp
├── cmd
│ └── server
│ └── main.go
├── customerhandlers.go
├── customersvc
│ ├── customer.go
│ ├── customersvc.go
│ └── customersvc_test.go
├── routes.go
├── sampleapp.go
├── sampleapp_test.go
├── testutils
│ └── testutils.go
└── utils.go
Depending on situation I often create go-getable packages
Sometimes a project is small enough to fit both backend/frontend in it
Project
+ Backend : GOPATH
+src
+ Frontend
+ Web