Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 647 Bytes

File metadata and controls

21 lines (17 loc) · 647 Bytes

Requirements

  • golang
  • docker
  • postgres

Install and Run

Development

  • Run -> go run main.go (https://www.golang-book.com/books/intro/2)
  • Build
    • go build (This will generate go-docker file)
    • ./api-example (This will run application)
  • Create and Run Docker Image
    • docker build -t api-example .
    • docker images (This will list docker images, api-example as well)
    • docker run -d -p 9001:9001 (Then go to localhost:9001, you know what will be next :) )