An open API service indexing awesome lists of open source software.

https://github.com/chase-allen-tech/go-siman-proj

REST API development
https://github.com/chase-allen-tech/go-siman-proj

Last synced: about 1 month ago
JSON representation

REST API development

Awesome Lists containing this project

README

        

# Golang RestfulAPI Sample

![Build Status](https://img.shields.io/travis/rust-lang/rust.svg)

## Contents

- [SETUP](#markdown-header-setup)
- [GIT PRE HOOK SETUP](#markdown-header-git-pre-hook-setup)

## 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

```sh
export GOPATH=/Users/{{name}}/your_folder_path
export PATH=$PATH:$GOPATH/bin
```

* Form dir structure according to your project repo

```sh
cd $GOPATH
mkdir -p src/github.com/kyawmyintthein
```

* Go to created dir and clone the project

```sh
cd src/github.com/kyawmyintthein
git clone [email protected]/kyawmyintthein/golangRestfulAPISample.git
```

* Go inside the project and create log file

```sh
cd golangRestfulAPISample
mkdir -p log/rest_api.log
```