indraoct / beegoapi

An example project to create docker image for beego API application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BeegoAPI

An example project to create docker image for beego API application

How to use it

Environtment/Config Variable

  1. Make sure you activate go mod by this command :
export GOFLAGS=-mod=vendor
export GO111MODULE=on
  1. and then , you can download and create folder /vendor for dependency code by using this command :
  go mod download
  go mod vendor
  go mod verify

Running Locally

To running locally , you can use this command :

    bee run

Running with docker

  1. you can use docker-compose.yml as docker config file to generate docker image.
  2. to running the program , you can use this command :
docker-compose up --build

About

An example project to create docker image for beego API application


Languages

Language:Go 96.8%Language:Dockerfile 3.2%