Gazo shows how i organise my project folders and simulatenusly paying attention to writing reusable, scalable and neat code, this will make it highly maintainable.
- Containerize Application Using Docker
- User Authentication and Authorisation
- Integerasi ORM Database Using Gorm
- CRUD functionality for post(like a simple blog)
- Integration, Load and Unit Tests
- And More
-
- Install node modules
$ go get . || go mod || make goinstall
- Build application
$ go build -o main || make goprod
- Start application in development
$ go run main.go | make godev
- Test application
$ go test main.go main_test.go || make gotest
-
- Build container
$ docker-compose build | make dcb
- Run container with flags
$ docker-compose up -d --<flags name> | make dcu f=<flags name>
- Run container build with flags
$ docker-compose up -d --build --<flags name> | make dcubf f=<flags name>
- Run container
$ docker-compose up -d --build | make dcu
- Stop container
$ docker-compose down | make dcd