Skip to content

Example implementation of REST API using clean architecture in Go (Golang)

License

Notifications You must be signed in to change notification settings

sachi-satan/go-clean-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Clean Architecture

This project is an example implementation of REST API using clean architecture in Go (Golang).

Built With

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

To run the project you need:

  • Go (Golang) (1.16.4 has been confirmed to work)
  • Docker compose

Quick Start

Run the project locally according to the following command.

  1. Start the containers in the background

    docker-compose up -d
  2. Change directory to service

    cd service
  3. Generate RSA key pair (key pair is used to generate and validate JWT Token)

    openssl genrsa -out app.rsa && openssl rsa -in app.rsa -pubout > app.rsa.pub
  4. Compile and run Go program

    go run main.go

License

Distributed under the MIT License. See LICENSE for more information.

Releases

No releases published

Packages

No packages published