Table of Contents
This system is using for DOT - Golang Developer.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
-
I use macOS Catalina 10.15.7
❯ uname -a Darwin 192.168.1.25 19.6.0 Darwin Kernel Version 19.6.0:
-
And then you need to install Golang
-
After that check the installation and Golang version it must be above than 1.11 because we need the Golang Modules
> go version go version go1.19.2 darwin/amd64
- Clone the repo
git clone https://github.com/jadahbakar/dot-golang-pg-144.git
- Install Pg with Docker
make up
- Config pgpass
echo "localhost:5144:dot-golang:dot-golang:dot-golang*144" >> ~/.pgpass
- Restore db
make restore
-
Clone the repo
git clone https://github.com/jadahbakar/dot-golang.git
-
Install Modules packages
go mod tidy
or
go mod download
-
Run it (it will create docker images and container with autoreload)
go run main.go
-
Add dot-golang.com on /etc/hosts
sudo echo "127.0.0.1 dot-golang.com" >> /etc/hosts
-
Clone the repo
git clone https://github.com/jadahbakar/dot-golang.git
-
Run it (it will create docker images and container with autoreload)
make devel-up
-
It will show on console:
-
Stop
make devel-down
or
CTRL + C
.
├── README.md
├── assets
│ └── images
├── config.env
├── docker
│ └── development
├── domain
│ ├── bayar
│ └── siswa
├── go.mod
├── go.sum
├── log
│ ├── dot-golang
│ └── fiber.log
├── main.go
├── makefile
├── repository
│ └── postgres
├── tmp
│ ├── build-errors.log
│ └── main
└── util
├── config
├── engine
├── greet
├── logger
└── response
17 directories, 10 files