Skip to content

DuarteDc/learn-golang

Repository files navigation

GO - API REST WITH CLEAN ARCHITECTURE

Hi i'm DuarteBv, I recently started learning about Golang and I have decided to document it so that it can be helpful for other people who are getting started as well.

Context

  • Rest API with Clean Architecture
  • MongoDB
  • Dockerized enviroments

🚀 Setup

1. Clone the repository

git clone https://github.com/DuarteDc/learn-golang
cd learn-golang

2. Setup enviroment

  • Rename file .env.example to .env

Note: If you want change db url edit .env file

3. Run application

  • Build app with command line
docker build -t go-app . 
  • Run app
docker run -p 8080:8080 --name app-name go-app

4. Run using docker-compose:

docker-compose up --build

About

This is a basic app with clean architecture with go and docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published