sipd-auth/README.md
2025-09-16 08:32:11 +07:00

1.7 KiB
Raw Permalink Blame History

Kemendagri SIPD Service Auth

Kemendagri SIPD Service Auth.-

Prerequisites

Prequisites package:

  • Docker - for developing, shipping, and running applications (Application Containerization).
  • Go - Go Programming Language.
  • Make - Automated Execution using Makefile.
  • swag Converts Go annotations to Swagger Documentation 2.0. We've created a variety of plugins for popular Go web frameworks.
  • golang-migrate/migrate Database migrations written in Go. Use as CLI or import as library for apply migrations.

Optional package:

  • gocritic Highly extensible Go source code linter providing checks currently missing from other linters.
  • gosec Golang Security Checker. Inspects source code for security problems by scanning the Go AST.
  • golangci-lint Go linters runner. It runs linters in parallel, uses caching, supports yaml config, has integrations with all major IDE and has dozens of linters included.

Quick start

These instructions will get you a copy of the project up and running on docker container and on your local machine.

  1. Install Prequisites and optional package to your system:
  2. Rename Makefile.example to Makefile then fill it with your make setting.
  3. Generate swagger api doc by this command
make swag
  1. Instant run by this command
make instant_run
  1. Bulid go binary file
make build
  1. Build go binary file and run
make run
  1. Run in docker container
make docker_run