GithubHelp home page GithubHelp logo

dot-golang's Introduction


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

dot-golang's People

Watchers

Dedy S avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.