Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

golang-mitrah/Gorilla-mux-RestAPI-postgres

Repository files navigation

Gorilla mux RestAPI postgres

REST API using Gorilla-mux in GO

  1. Clone the git repo - git clone git@github.com:golang-mitrah/Gorilla-mux-RestAPI-postgres.git

  2. Use database/db_script.sql file to crete a SQL table needed in your PostGres server for this demo project

  3. Change database connection details in database/database.go file's line #27

var dbname, username, password, host, port = "DB_XX", "USER_XX", "PWD_XX", "localhost", "5432"
  1. Run below in your project path

    go get .
    go run .
    
  2. Use the Gorilla_mux_RestAPI_postgres.postman_collection.json to import the API request into your PostMan tool to try out the API endpoints available

Contributors

REST API using Gorilla MUX Router is authored by GoLang Mitrah and everyone is welcome to contribute.

Problems

If you experience any problems with REST API using Gorilla MUX please:

Social Media

You'll find us on Twitter and Facebook

Morty Proxy This is a proxified and sanitized view of the page, visit original site.