honnuanand / GoMuxPostgres

Learn go-Mux and go with postgress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go DB-Connected-Tests Release

This is a Project to focus my learning path on go-lang for the web. Some of the initial Ideas are from This tutorial/blog which was very clear to get started.

Build Steps:

  1. Check out the Code from the repository
  2. cd docker
    sh start-postgres-on-docker.sh
    
    This should start a postgres instance on Docker
  3. run the exports in the docker/dbparams_env.sh
  4. $ cd ..
    
  5. $ go build -v -o bin/go-mux-api
    
  6. $ bin/go-mux-api 
    user=postgres password=pgpass dbname=postgres sslmode=disable
    
  7. Open a Browser and hit all the end points as per the routes created in the pkg/handlers/productHandlers.go

About

Learn go-Mux and go with postgress


Languages

Language:Go 91.8%Language:Shell 8.2%