Skip to content

jadahbakar/dot-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


DOT - Backend


Table of Contents
  1. About The Project
  2. Getting Started
  3. Project structure

About The Project

This system is using for DOT - Golang Developer.

Built With

Getting Started

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.

Prerequisites

  • 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

Installation

PostgreSQL Database Installation

  1. Clone the repo
    git clone https://github.com/jadahbakar/dot-golang-pg-144.git
  2. Install Pg with Docker
    make up
  3. Config pgpass
    echo "localhost:5144:dot-golang:dot-golang:dot-golang*144" >> ~/.pgpass
  4. Restore db
    make restore

Manual Installation For Application

  1. Clone the repo

    git clone https://github.com/jadahbakar/dot-golang.git
  2. Install Modules packages

    go mod tidy

    or

    go mod download
  3. Run it (it will create docker images and container with autoreload)

    go run main.go

Docker

  1. Add dot-golang.com on /etc/hosts

    sudo echo "127.0.0.1 dot-golang.com" >> /etc/hosts
  2. Clone the repo

    git clone https://github.com/jadahbakar/dot-golang.git
  3. Run it (it will create docker images and container with autoreload)

    make devel-up
  4. It will show on console:

    running

  5. Stop

    make devel-down

    or

    CTRL + C

Project Structure

.
├── 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published