Skip to content

mikeLspohn/go-example-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Go Example Api

This is an example go api for learning purposes.

Installation

  • Clone the repo into the directory where your Go projects live
  • $ git clone https://github.com/[email protected]/go-test-api.git
  • $ cd go-test-api
  • Setup a postgres database
  • Set your ENV vars in .env
    • PORT // port the server should listen on
    • DATABASE_URL // postgres url (e.g postgres://someone@localhost/gotest?sslmode=disable)
  • set the fallback db_url in line 18 - db.go to your db connection
  • Run Server: go run *.go

Packages Used:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages