notelify-articles-service

command module
v0.0.0-...-0786eca Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 1 Imported by: 0

README

Notelify articles service

Desciption

Article service is one of many service in the notelify application. It has all business logic for the articles logic. Exposes APIs that get consumed by other services Build using Go programming language, Postgres, Redis for data storage. The Article service makes use of the Hexagonal architecture for better code testing, easy code modification.

│   ├── config
│   │   └── config.go
│   ├── Dockerfile
│   ├── go.mod
│   ├── go.sum
│   ├── internal
│   │   ├── adapters
│   │   │   ├── app
│   │   │   │   ├── controllers.go
│   │   │   │   ├── controllers_test.go
│   │   │   │   └── handler.go
│   │   │   ├── logger
│   │   │   │   └── standardLogger.go
│   │   │   └── repository
│   │   │       ├── dynamodb
│   │   │       │   └── dynamodb.go
│   │   │       ├── postgres
│   │   │       │   └── postgres.go
│   │   │       └── s3
│   │   │           └── s3.go
│   │   └── core
│   │       ├── domain
│   │       │   └── domain.go
│   │       ├── ports
│   │       │   └── ports.go
│   │       └── services
│   │           ├── services.go
│   │           └── service_test.go
│   ├── LICENSE
│   ├── main.go
│   ├── Makefile
│   └── README.md

Table of content

1.0 Installation

Clone the repository in your workspace
Change directory into the application code
  • cd notelify-articles-service
Install Go depencies for the Article service
  • go mod tidy
Run the application
  • make serve-dev
Access the application
  • Open your browser or API client like Postman and navigate to http://localhost:8001 to access the appliction API end points

2.0 Installation - Using Docker

Clone the repository in your workspace
Change directory into the application code
  • cd notelify-articles-service
Build Docker image
  • docker build -t notelify-article-service .
Run the docker container
  • docker run -p 8001:8001 -d notelify-article-service
Access the application
  • Open your browser or API client like Postman and navigate to http://localhost:8001 to access the appliction API end points
Stopping and removing the docker container
  • docker stop $(docker ps -aq --filter ancestor=notelify-article-service)
  • docker rm $(docker ps -aq --filter ancestor=notelify-article-service)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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