/basesvc

Simple microservice template in Go with Clean Architecture

Primary LanguageGo

basesvc

Simple microservice template in Go with Clean Architecture

Run the Applications

Here is the steps to run it with docker-compose

# Move to directory
$ mkdir -p $GOPATH/src/github.com/iwanjunaid 
$ cd $GOPATH/src/github.com/iwanjunaid 

# Clone into YOUR $GOPATH/src
$ git clone https://github.com/iwanjunaid/basesvc.git

# Move to project
$ cd basesvc

# Setup config and edit config 
$ make setup

# run the application in development env
$ make dev

# or run the application in production env
$ make prod

# check if the containers are running
$ docker ps

# Execute the call
$ curl http://localhost:8080/authors

# Stop
$ make stop