Categorygithub.com/BabyCattleyaGP/go-learn-api
modulepackage
0.0.0-20200630111928-c5026dac86cb
Repository: https://github.com/babycattleyagp/go-learn-api.git
Documentation: pkg.go.dev

# README

Golang API

This repository for personal learning material. Creating basic API with Go Language. With test cases, soon to be dockerized.

Dev Environment

  • Go version go1.14.3 windows/amd64

Database Configuration

  • Can used mysql or postgres (choose one in .env file)
  • Create golearnapi and golearnapi_test database

Run

  • Or Run without build go run main.go
  • Access in localhost:8080

Test

  • Go to tests directory cd tests
  • Run all test cases go test -v ./...
  • Run spesific package test:
    • cd to the test directory, example: cd modeltests
    • Run go test -v --run TestFunctionName
    • Run all test in package go test -v

To Do

  • Dockerizing the application
  • Deploying on Kubernetes
  • Integrate to Travis
  • Deploy the application on Heroku
  • Consuming the API with Flutter.

Credit tutorial

Initial Repository by Victor Steven

# Packages

No description provided by the author
No description provided by the author