Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Project Setup

blyndusk edited this page Mar 10, 2022 · 6 revisions

Project setup

The project use Docker and Docker Compose to build and run local and distant images in our workspace.

Stack

All the images use the same network, more informations at docker-compose.yml

CONTAINER PORT IMAGE
GOLANG 3333:3333 build/pakage/sample-api/Dockerfile
ADMINER 3334:8080 build/package/adminer/Dockerfile
POSTGRES 5432:5432 postgres:latest
WEBAPP 3000:80 build/pakage/web/Dockerfile.prod

Adminer is a GUI that allows us to manage your database by permetting to to create, edit, delete the different entities, tables, etc.

Makefile

TL;DR

make setup-env start logs

make help

Display informations about other commands.

make setup-env

Copy the sample environment files.

make start

Up the containers with full cache reset to avoid cache errors.

make stop

Down the containers.

make logs

Display and follow the logs.

make init-web

Install Dependencies and build the app.

make init

All previous actions, without down.

make lint

Lint the Go files using gofmt.