Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 977 Bytes

README.md

File metadata and controls

52 lines (32 loc) · 977 Bytes

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.