Ei kuvausta

Luis Figueiredo 5c87837da0 Readme update 8 vuotta sitten
docker d65f9c9702 refactoring 8 vuotta sitten
src d65f9c9702 refactoring 8 vuotta sitten
.gitignore d65f9c9702 refactoring 8 vuotta sitten
Makefile d65f9c9702 refactoring 8 vuotta sitten
README.md 5c87837da0 Readme update 8 vuotta sitten

README.md

Sample app

Requirements

  • Golang (tested on 1.8+)
  • Docker (tested on 17.04.0-ce)
  • Mongodb (tested on 3.4.2+)

Building

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

Structure:

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