MCPcopy Index your code
hub / github.com/techschool/simplebank

github.com/techschool/simplebank @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,000 symbols 9,714 edges 92 files 111 documented · 6% updated 14mo ago★ 6,50010 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Simple Bank

This repository contains the codes of the Backend Master Class course by TECH SCHOOL.

Backend master class

You can also find it on Udemy at this link.

And don't hesitate to join Tech School's Discord group to chat directly with me and other students.

In this course, you will learn step-by-step how to design, develop and deploy a backend web service from scratch. I believe the best way to learn programming is to build a real application. Therefore, throughout the course, you will learn how to build a backend web service for a simple bank. It will provide APIs for the frontend to do the following things:

  • Create and manage bank accounts.
  • Record all balance changes to each of the accounts.
  • Perform a money transfer between 2 accounts.

The programming language we will use to develop the service is Golang, but the course is not just about coding in Go. You will learn a lot of different topics regarding backend web development. They are presented in 6 sections:

  1. In the 1st section, you will learn deeply about how to design the database, generate codes to talk to the DB in a consistent and reliable way using transactions, understand the DB isolation levels, and how to use it correctly in production. Besides the database, you will also learn how to use docker for local development, how to use Git to manage your codes, and how to use GitHub Action to run unit tests automatically.

  2. In the 2nd section, you will learn how to build a set of RESTful HTTP APIs using Gin - one of the most popular Golang frameworks for building web services. This includes everything from loading app configs, mocking DB for more robust unit tests, handling errors, authenticating users, and securing the APIs with JWT and PASETO access tokens.

  3. In the 3rd section, you will learn how to build your app with Docker and deploy it to a production Kubernetes cluster on AWS. The lectures are very detailed with a step-by-step guide, from how to build a minimal docker image, set up a free-tier AWS account, create a production database, store and retrieve production secrets, create a Kubernetes cluster with EKS, use GitHub Action to automatically build and deploy the image to the EKS cluster, buy a domain name and route the traffics to the service, secure the connection with HTTPS and auto-renew TLS certificate from Let's Encrypt.

  4. In the 4th section, we will discuss several advanced backend topics such as managing user sessions, building gRPC APIs, using gRPC gateway to serve both gRPC and HTTP requests at the same time, embedding Swagger documentation as part of the backend service, partially updating a record using optional parameters, and writing structured logger HTTP middlewares and gRPC interceptors.

  5. Then the 5th section will introduce you to asynchronous processing in Golang using background workers and Redis as its message queue. We'll also learn how to create and send emails to users via Gmail SMTP server. Along the way, we'll learn more about writing unit tests for our gRPC services that might involve mocking multiple dependencies at once.

  6. The final section 6th concludes the course with lectures about how to improve the stability and security of the server. We'll keep updating dependency packages to the latest version, use Cookies to make the refresh token more secure, and learn how to gracefully shut down the server to protect the processing resources. As this part is still a work in progress, we will keep making and uploading new videos about new topics in the future. So please come back here to check them out from time to time.

This course is designed with a lot of details, so that everyone, even with very little programming experience can understand and do it by themselves. I strongly believe that after the course, you would be able to work much more confidently and effectively on your projects.

Backend course videos (Golang)

Section 1: Working with database [Postgres]

Section 2: Building RESTful HTTP JSON API [Gin]

Section 3: Deploying the application to production [Kubernetes + AWS]

Section 4: Advanced Backend Topics [Sessions + gRPC]

Section 5: Asynchronous processing with background workers [Asynq + Redis]

Extension points exported contracts — how you extend this code

Store (Interface)
Store defines all functions to execute db queries and transactions [3 implementers]
db/sqlc/store.go
Maker (Interface)
Maker is an interface for managing tokens [2 implementers]
token/maker.go
TaskDistributor (Interface)
(no doc) [3 implementers]
worker/distributor.go
TaskProcessor (Interface)
(no doc) [1 implementers]
worker/processor.go
EmailSender (Interface)
(no doc) [1 implementers]
mail/sender.go
User (Interface)
(no doc)
frontend/src/types/user.ts
Querier (Interface)
(no doc) [3 implementers]
db/sqlc/querier.go
AuthState (Interface)
(no doc)
frontend/src/types/auth_state.ts

Core symbols most depended-on inside this repo

n
called by 2831
doc/swagger/swagger-ui-bundle.js
n
called by 2831
doc/swagger/swagger-ui-es-bundle.js
r
called by 1549
doc/swagger/swagger-ui-standalone-preset.js
V
called by 778
doc/swagger/swagger-ui.js
r
called by 751
doc/swagger/swagger-ui-es-bundle-core.js
n
called by 615
doc/swagger/swagger-ui.js
o
called by 500
doc/swagger/swagger-ui-bundle.js
o
called by 500
doc/swagger/swagger-ui-es-bundle.js

Shape

Function 1,452
Method 415
Struct 74
Class 46
Interface 12
TypeAlias 1

Languages

TypeScript76%
Go24%

Modules by API surface

doc/swagger/swagger-ui-es-bundle.js510 symbols
doc/swagger/swagger-ui-bundle.js510 symbols
doc/swagger/swagger-ui-standalone-preset.js253 symbols
doc/swagger/swagger-ui.js128 symbols
doc/swagger/swagger-ui-es-bundle-core.js123 symbols
db/mock/store.go50 symbols
pb/service_simple_bank_grpc.pb.go30 symbols
pb/rpc_login_user.pb.go24 symbols
pb/rpc_update_user.pb.go21 symbols
pb/rpc_create_user.pb.go21 symbols
db/sqlc/querier.go21 symbols
pb/rpc_verify_email.pb.go19 symbols

Dependencies from manifests, versioned

github.com/aead/chacha20v0.0.0-2018070915024 · 1×
github.com/aead/chacha20poly1305v0.0.0-2020112414562 · 1×
github.com/aead/poly1305v0.0.0-2018071714583 · 1×
github.com/cespare/xxhash/v2v2.1.2 · 1×
github.com/dgryski/go-rendezvousv0.0.0-2020082301473 · 1×
github.com/gin-contrib/ssev0.1.0 · 1×
github.com/go-playground/localesv0.14.0 · 1×
github.com/go-playground/universal-translatorv0.18.0 · 1×

Datastores touched

simple_bankDatabase · 1 repos

For agents

$ claude mcp add simplebank \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact