Skip to content

azer/go-api-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-api-starter

Hek starter module for creating Go APIs. It comes with;

Install

Create your project with hek and choose go-api-starter as one of your starters. It'll prompt one extra question about if you want to serve a static folder, you can leave it blank or specify some static folders to serve. Here are some example answers for static serving: public or / => public (The later sets / to serve from public)

Usage

After a fresh installation, make sure running make get command to pull dependencies under vendor/ folder. Once you have the dependencies, make start to run the server and check localhost:8000 if it works.

All commands:

  • make build: Compile main Go file(s)
  • make get: Get missing go dependencies, save them under vendor/ folder
  • make install: Compile and install packages and dependencies
  • make run: Compile and run main Go file(s)
  • make watch: Build and run main Go binary, watch for file changes, repeat.
  • make start: Start the main Go binary.
  • make stop: Stop the main Go binary.
  • make clean: Clean Go binaries.

About

Hek starter module for creating Go APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published