Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.71 KB

README.md

File metadata and controls

59 lines (39 loc) · 1.71 KB

Go

Golang Clean Boilerplate

Requirements

Feature

  • Clean code
  • Docker and docker-compose
  • ORM with gorm
  • Unit testing

Setup

Building and running the dockerized codebase

  1. Clone the repository.

  2. Build all containers using docker-compose build --no-cache.

  3. Run all containers using docker-compose up.

    Tips:

    • Use --build in docker-compose to force update the docker image created, e.g. docker-compose up --build
  4. The docker and docker compose will setup all requirements on the fly, and please provide coffee as this may take a few minutes.

  5. If have finished it, that means you can use this server with all databases and data ready to use.

Cleaning up

  1. When you're done, Ctrl-C in the main docker-compose up window to terminate the running processes.

  2. Run docker-compose down to stop and remove containers.

Develop By


Saefulloh Maslul

License

Copyright (c) 2021 Saefulloh Maslul All rights reserved.