• Stars
    star
    132
  • Rank 274,205 (Top 6 %)
  • Language
    Go
  • Created over 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sample Restful app with chi router (golang)

Golang RestfulAPI Sample

Build Status

Contents

SETUP

  • Download and install go, dep ( Go dependency management tool )

  • Install mockery (https://github.com/vektra/mockery)

  • Set GOPATH locally for Go workspace and add in your bash

export GOPATH=/Users/{{name}}/your_folder_path
export PATH=$PATH:$GOPATH/bin
  • Form dir structure according to your project repo
cd $GOPATH
mkdir -p src/github.com/kyawmyintthein
  • Go to created dir and clone the project
cd src/github.com/kyawmyintthein
git clone [email protected]/kyawmyintthein/golangRestfulAPISample.git
  • Go inside the project and create log file
cd golangRestfulAPISample
mkdir -p log/rest_api.log