This project is an example implementation of REST API using clean architecture in Go (Golang).
To get a local copy up and running follow these simple example steps.
To run the project you need:
- Go (Golang) (1.16.4 has been confirmed to work)
- Docker compose
Run the project locally according to the following command.
-
Start the containers in the background
docker-compose up -d
-
Change directory to service
cd service
-
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
-
Compile and run Go program
go run main.go
Distributed under the MIT License. See LICENSE
for more information.