1.7 KiB
1.7 KiB
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.
- Install Prequisites and optional package to your system:
- Rename
Makefile.exampletoMakefilethen fill it with your make setting. - Generate swagger api doc by this command
make swag
- Instant run by this command
make instant_run
- Bulid go binary file
make build
- Build go binary file and run
make run
- Run in docker container
make docker_run