example-go-api

module
v0.0.0-...-b610cb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: MIT

README

Example Go API

This is an educational repo, aimed at showing how to create a simple GoLang API for PHP developers. This was streamed on YouTube here.

Run locally

To run this locally you need to make sure you have Go installed and working, then install all the dependencies:

go mod download

Once you have all the dependencies installed (should only take a few seconds) you can run the program easily using:

go run cmd/web/main.go

This will by default run the program and make it accessible through port 8080 allowing you to visit: http://localhost:8080 and use the API.

Directories

Path Synopsis
cmd
web
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL