Luis 40802d64ea Update API on readme | 7 tahun lalu | |
---|---|---|
docker | 7 tahun lalu | |
src | 7 tahun lalu | |
.gitignore | 7 tahun lalu | |
Makefile | 7 tahun lalu | |
README.md | 7 tahun lalu |
fetching
git clone http://dev.hexasoftware.com/stdio/sampleapp.git
building
make
## OR
#make local
Creating a release container 'sampleapp'
make dist
running
docker run --name mysampleappcontainer sampleapp
Url as: http://localhost:8080
Method | URL | params |
---|---|---|
GET | http://localhost:8080/customer/{id} | Id: as uuid |
POST | http://localhost:8080/customer/ |
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