|
@@ -7,11 +7,32 @@ Sample app
|
|
* Mongodb (tested on 3.4.2+)
|
|
* Mongodb (tested on 3.4.2+)
|
|
|
|
|
|
## Building
|
|
## Building
|
|
|
|
+
|
|
|
|
+fetching
|
|
```
|
|
```
|
|
git clone http://dev.hexasoftware.com/stdio/sampleapp.git
|
|
git clone http://dev.hexasoftware.com/stdio/sampleapp.git
|
|
-cd sampleapp
|
|
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+building
|
|
|
|
+```
|
|
make
|
|
make
|
|
```
|
|
```
|
|
|
|
+or
|
|
|
|
+```
|
|
|
|
+make local
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+Creating a release container 'sampleapp'
|
|
|
|
+```
|
|
|
|
+make dist
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+running
|
|
|
|
+```
|
|
|
|
+docker run --name mysampleappcontainer sampleapp
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -45,13 +66,4 @@ customersvc logic is separated from the 'webapp' mostly because I tend to separa
|
|
└── utils.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
|
|
|
|
-```
|
|
|