Skip to content

GoLang Restful Web Service with PostgreSQL database

License

Notifications You must be signed in to change notification settings

temelt/api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :) )

About

GoLang Restful Web Service with PostgreSQL database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published