fptu-api

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: MIT

README

Go REST API for FPTU Tech Insider

This repository is a skeleton for building production ready Golang REST API.

In this repo, we used gorilla/mux.

Installation

Assuming you have a working Go environment and GOPATH/bin is in your PATH.

Dependencies

Install all dependencies godep:

$ go get -v

Generate & modify your own environment configuration file:

$ mv .env.example .env
$ vim .env

Start server proxy to listen on port 3000 and send request to proxied app listening on port 8000:

$ go run cmd/app/main.go

Directories

Path Synopsis
cmd
app

Jump to

Keyboard shortcuts

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