base-go

command module
v0.0.0-...-e231e6d Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 13 Imported by: 0

README

My Base Line

Go Base Line By AbdullahPrasetio

Build Status

Base ini digunakan untuk menjalankan service yang menghasilkan Rest API

  • Rest API
  • Validation Rest API
  • ✨Magic ✨ Code

New Features

  • Custom Port Run main.go

Features

  • Custom Validation with go playground validator.
  • Custom Logger request and response api.
  • Custom Port with flag --port

Tech

My Base Go use tech:

  • GIN - Awesome Web Framework!
  • Validator - Package validator implements value validations for structs and individual fields based on tags.
  • Formatter Validator - Awesome custom validator.

Installation

My Base go requires Go v1.18+ to run.

Install the dependencies and devDependencies and start the server.

cd my base
go run main.go

Run With custom port and default port is 8025

go run main.go --port 8000

Docker

My Base is very easy to install and deploy in a Docker container.

By default, the Docker will expose port 8025, so change this within the Dockerfile if necessary. When ready, simply use the Dockerfile to build the image.

cd app
docker build -t <youruser>/micro-${name}:${version} .

Contributors

Contributors

License

MIT

Free Software, Hell Yeah!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
controllers
library
models
log
utils
log

Jump to

Keyboard shortcuts

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