Skip to content

scul0405/blog-clean-architecture-rest-api

Repository files navigation

BLOG BACKEND SERVER

Simple REST API project using Go with Clean Architecture

What has been used:

  • echo - Web framework
  • sqlx - Extensions to database/sql.
  • pgx - PostgreSQL driver and toolkit for Go
  • viper - Go configuration with fangs
  • go-redis - Type-safe Redis client for Golang
  • zap - Logger
  • validator - Go Struct and Field validation
  • paseto - Platform-Agnostic Security Tokens (PASETO)
  • uuid - UUID
  • migrate - Database migrations. CLI and Golang library.
  • minio-go - MinIO Client SDK for Go
  • swag - Swagger
  • testify - Testing toolkit
  • gomock - Mocking framework
  • asynq - Distributed task queue in Go

Quick start

Clone this repository:

git clone https://github.com/scul0405/blog-clean-architecture-rest-api.git
cd blog-clean-architecture-rest-api

Docker development usage

Run this command:

make docker_dev

Local development usage

make docker_local

Local development

Install tools

Run server

make run

Run testing

make test

Generate documentation

make swag

Documentation

Swagger UI

http://localhost:8080/swagger/index.html

Monitor

Jaeger

http://localhost:16686

Minio

http://localhost:9001

Asynq

http://localhost:3000

About

a backend server for blog using clean architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages