A Simple Bank Web Service implemented in Go, HTTP & GRPC, PostgreSQL, Docker, Kubernetes, GitHub Actions CI

Overview

simple-bank

ci-test

Based on this Backend Master Class by TECH SCHOOL: https://youtube.com/playlist?list=PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE

Requirements Installation

docker pull postgres:alpine

docker run --name postgres -p 5433:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=secret -d postgres:alpine

docker exec -it postgres psql -U root

\q

docker logs postgres

go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/[email protected]

migrate create -ext sql -dir db/migration -seq init_schema

docker exec -it postgres /bin/sh

createdb --username=root --owner=root simple_bank

psql simple_bank

\q

dropdb simple_bank

exit

docker exec -it postgres createdb --username=root --owner=root simple_bank

docker exec -it postgres psql -U root simple_bank

docker stop postgres

docker rm postgres

make postgres

make createdb

migrate -path db/migration -database "postgresql://root:[email protected]:5433/simple_bank?sslmode=disable" -verbose up

go install github.com/kyleconroy/sqlc/cmd/[email protected]

docker pull kjconroy/sqlc

docker run --rm -v ${pwd}:/src -w /src kjconroy/sqlc generate

go get github.com/lib/pq

go get github.com/stretchr/testify

Run it

# check out the Makefile
You might also like...
FreeDesktop.org (xdg) Specs implemented in Go

xdg Package xdg provides access to the FreeDesktop.org (XDG) specs. Documentation Documentation is available via godoc. Here are direct links to the d

Go specs implemented as a scripting language in Rust.

Goscript A script language like Python or Lua written in Rust, with exactly the same syntax as Go's. The Goal Runs most pure Go code, probably add som

Let's Go is task sharing app implemented in golang.

Let's Go - A sample GO app Overview Let's Go is an HTTP server. It has various apis to play with. It is a small app that can group users of a company

libFFM-gp: Pure Golang implemented library for FM (factorization machines)

libFFM-gp: Pure Golang implemented library for FM (factorization machines)

Seekable ZSTD compression format implemented in Golang.

ZSTD seekable compression format implementation in Go Seekable ZSTD compression format implemented in Golang. This library provides a random access re

HTTP service to generate PDF from Json requests

pdfgen HTTP service to generate PDF from Json requests Install and run The recommended method is to use the docker container by mounting your template

An HTTP service for customizing import path of your Go packages.

Go Packages A self-host HTTP service that allow customizing your Go package import paths. Features Reports. Badges. I18N. Preview I launch up a free H

An in-memory, key-value store HTTP API service

This is an in-memory key-value store HTTP API service, with the following endpoints: /get/{key} : GET method. Returns the value of a previously set ke

Http web frame with Go Programming Language

Http web frame with Go Programming Language

Owner
Tien La
The world is on fire
Tien La
http-theft-bank-LiujJian created by GitHub Classroom

http-theft-bank-start-template 木犀银行抢劫游戏模版 hope this can help you http-theft-bank-start-template To begin with Tips 附录 http URL http 工作流程 http 协议方法 HTT

null 0 Dec 2, 2021
Bank-End Master Class [ Golang, Postges, Docker ]

Simple Bank This repository contains the codes of the Backend master class course by TECH SCHOOL. In this backend master class, we’re going to learn e

anousone worlakoumman 0 Dec 14, 2021
Simplebank - A simple bank with golang

Simple-Bank The service that we’re going to build is a simple bank. It will prov

Sandeep 1 Feb 1, 2022
generate my_github status using GitHub Actions

generate my_github status using GitHub Actions

yihong 96 Sep 21, 2022
Auto-updating F-Droid repo using GitHub Actions

fdroid This repository hosts an F-Droid repo for my apps. This allows you to install and update apps very easily. How to use At first, you should inst

Philipp 9 Nov 6, 2022
grpc + grpc gateway demo

grpc + grpc gateway demo

null 0 Nov 5, 2021
Terraform Provider for PGP Actions

Terraform Provider PGP Warning: Use of this provider will result in secrets being in terraform state in PLAIN TEXT (aka NOT ENCRYPTED). You've been wa

Erik Kristensen 9 Sep 30, 2022
Example hello-world service uses go-fx-grpc-starter boilerplate code

About Example hello-world service uses https://github.com/srlk/go-fx-grpc-starter boilerplate code. Implementation A hello world grpc service is creat

null 0 Nov 14, 2021
A challenge in Go. A simple backend responding to API calls reading/writing data from to PostgreSQL db.

Go Challenge The challenge has been executed in two different steps. Steps 1 Hour tag: 1 hour: As the challenge required, the tag is a snapshot of wha

Sergio Maria Matone 0 Dec 4, 2021
import csv into existing table postgresql or cockroachdb

import csv into existing table postgresql or cockroachdb

null 0 Nov 1, 2021