to-do-api

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

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 14 Imported by: 0

README

To-Do App

Introduction

This application is create to gain experience with CRUD operations and REST API structures.

Quick Start

# make file
$ make -f Makefile
$ make run
# script
$ ./start.sh
# docker
$ docker-compose up -d
# consumer
$ go run ./consumer/main.go

Features

  • Domein-Driven Design
  • Dockerize
  • PostgreSQL
  • Rest API
  • Fiber
  • Swagger
  • Kafka
  • Unit Test
  • Kubernetes Deployment File

Project Layout

$ tree 
.
├── consumer
│   ├── internal
│   │   ├── application
│   │   │   └── consume.go
│   │   ├── domain
│   │   │   ├── black_list
│   │   │   │   └── black_list.go
│   │   │   └── comment
│   │   │       ├── comment.go
│   │   │       └── comment_repository.go
│   │   ├── infrastructure
│   │   │   ├── consumer
│   │   │   │   └── reader.go
│   │   │   └── db
│   │   │       ├── connect_db.go
│   │   │       └── repository
│   │   │           └── comment_repository.go
│   │   └── service
│   │       └── consumer_service.go
│   └── main.go
├── db
│   └── migrations
│       ├── create_comments_table.sql
│       ├── create_tasks_table.sql
│       ├── delete_comments.table.sql
│       └── delete_tasks_table.sql
├── doc
│   ├── docs.go
│   ├── swagger.json
│   └── swagger.yaml
├── internal
│   ├── application
│   │   └── handler
│   │       ├── comment_handler.go
│   │       ├── task_handler.go
│   │       └── task_handler_test.go
│   ├── domain
│   │   ├── comment
│   │   │   ├── comment.go
│   │   │   └── comment_repository.go
│   │   └── task
│   │       ├── task.go
│   │       └── task_repository.go
│   ├── infrastructure
│   │   ├── broker
│   │   │   └── producer
│   │   │       └── producer.go
│   │   ├── config
│   │   │   └── config.go
│   │   └── persistence
│   │       ├── connect.go
│   │       └── repository
│   │           ├── comment_repository.go
│   │           └── task_repository.go
│   └── service
│       ├── CommentService.go
│       └── TaskService.go
├── docker-compose.yml
├── Dockerfile
├── Dockerfile.test1
├── go.mod
├── go.sum
├── LICENSE
├── main.go
├── Makefile
├── README.md
└── start.sh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag
GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag
internal

Jump to

Keyboard shortcuts

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