Giter Club home page Giter Club logo

kora's Introduction

Kora

echo framework 기반의 go 스켈레톤 프로젝트입니다.

go 언어를 이용하여 backend api 서버를 빠르게 만들 수 있도록 하는 것이 목적입니다.

개발환경을 위한 설치프로그램 및 설정 (Mac OS X 기준)

  1. Docker Desktop

  2. Go

  3. Homebrew

  4. go-migrate

$ brew install golang-migrate
  1. sqlc
$ brew install sqlc

Makefile 구성

  • Postgresql Database 설치 (docker)
$ make postgresql
  • 데이터베이스 생성 / 삭제
# Makefile 에서 database 이름 수정필요
$ make createdb  # 생성
$ make dropdb    # 삭제
  • 마이그레이션 파일 생성
$ make migration
# 입력 프롬프트에서 마이그레이션 파일명 (ex, init_schema) 을 넣으면 자동으로 seq 부여
  • Migrate Up
$ make migrateup    # 전체 migration 파일을 일괄 적용할 때 사용
$ make migrateup1   # 최근 1개의 migration 파일만 적용할 때 사용
  • Migrate Down
$ make migratedown    # 전체 migration 파일을 일괄 적용할 때 사용
$ make migratedown1   # 최근 1개의 migration 파일만 적용할 때 사용
  • sqlc 를 이용한 코드 생성
$ make sqlc

프로그램 실행

  • 서버 구동
$ make server

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.