Open in app

Sign in

Write

Sign in

haRies Efrika
haRies Efrika

18 Followers

Home

About

Jul 30

Go E2E Tutorial Part 8 (END): Miscellaneous To Do

In this final chapter we will discuss about several things not fully covered in our tutorial such as: machine to machine communication, configuration, external dependencies (like sentry and datadog), and graceful shutdown . The files are hosted here for your reference: https://github.com/hariesef/myschool Link to previous chapter: https://hariesef.medium.com/go-e2e-tutorial-part-7-unit-testing-with-mongodb-mock-mtest-e32511961925

Go

5 min read

Go E2E Tutorial Part 8 (END): Miscellaneous To Do
Go E2E Tutorial Part 8 (END): Miscellaneous To Do
Go

5 min read


Jul 30

Go E2E Tutorial Part 7: Unit Testing with MongoDB Mock (mtest)

Previously we have learned using online mongoDB for unit test. Now we will be mocking it. The files are hosted here for your reference: https://github.com/hariesef/myschool Link to previous chapter: https://hariesef.medium.com/go-e2e-tutorial-part-6-service-creation-with-mongodb-d5422ac6c6ee In previous chapter we created Account service that uses two repositories: User and Token. We have shown how to unit…

Go Tutorial

4 min read

Go Tutorial

4 min read


Jul 30

Go E2E Tutorial Part 6: Service Creation with MongoDB

In this part we will be learning on how to create Service layer, that will utilize repositories connected to MongoDB. The files are hosted here for your reference: https://github.com/hariesef/myschool Link to previous chapter: https://hariesef.medium.com/go-e2e-tutorial-part-5-unit-test-with-sql-mock-and-gomock-c53f4bf2d72f For tutorial purpose we will be creating a service called Account service. If we go back…

Go Tutorial

7 min read

Go E2E Tutorial Part 6: Service Creation with MongoDB
Go E2E Tutorial Part 6: Service Creation with MongoDB
Go Tutorial

7 min read


Jul 30

Go E2E Tutorial Part 5: Unit Test with SQL Mock and GoMock

In this part we will be learning on how to test GORM implementation, but using SQL Mock instead of real database. We will also learn how to test layer separation using GoMock. The files are hosted here for your reference: https://github.com/hariesef/myschool Link to previous chapter: https://hariesef.medium.com/go-e2e-tutorial-part-4-twirp-rpc-c7bd8eeae925 In previous chapter we…

Go Tutorial

6 min read

Go E2E Tutorial Part 5: Unit Test with SQL Mock and GoMock
Go E2E Tutorial Part 5: Unit Test with SQL Mock and GoMock
Go Tutorial

6 min read


Jul 30

Go E2E Tutorial Part 4: Twirp RPC

In this part we will be learning on how to setup and serve REST API using Twirp. The files are hosted here for your reference: https://github.com/hariesef/myschool Link to previous chapter: https://hariesef.medium.com/go-e2e-tutorial-part-3-unit-testing-with-ginkgo-and-gomega-for-gorm-implementation-sqlite-473b5bb0a625 Previously we have implemented model and repo of Student. Now for learning purposes we want to serve these repo…

Go Tutorial

7 min read

Go E2E Tutorial Part 4: Twirp RPC
Go E2E Tutorial Part 4: Twirp RPC
Go Tutorial

7 min read


Jul 30

Go E2E Tutorial Part 3: Unit Testing with Ginkgo and Gomega for GORM Implementation (SQLite)

In this part we will be learning on how to do unit test using Gingko/Gomega, on SQLite implementation served by GORM. The files are hosted here for your reference: https://github.com/hariesef/myschool Check here for the previous part of tutorial: https://hariesef.medium.com/go-e2e-tutorial-part-2-models-and-implementation-via-gorm-19ac6f9104e6 Introduction of Ginkgo and Gomega Ginkgo is unit testing framework for Go, while Gomega is matcher/…

Go Tutorial

5 min read

Go E2E Tutorial Part 3: Unit Testing with Ginkgo and Gomega for GORM Implementation (SQLite)
Go E2E Tutorial Part 3: Unit Testing with Ginkgo and Gomega for GORM Implementation (SQLite)
Go Tutorial

5 min read


Jul 30

Go E2E Tutorial Part 2: Models and Implementation via GORM

In this part we will be discussing about how to create a model interface and implement it with GORM SQL DB Framework. The files are hosted here for your reference: https://github.com/hariesef/myschool Link to previous part of tutorial: https://hariesef.medium.com/go-e2e-tutorial-part-1-clean-architecture-and-folder-structure-4ae6c486867c Data Model Let us start with a very simple example. If I want to…

Go

8 min read

Go E2E Tutorial Part 2: Models and Implementation via GORM
Go E2E Tutorial Part 2: Models and Implementation via GORM
Go

8 min read


Jul 30

Go E2E tutorial Part 1: Clean Architecture and Folder Structure

In this part we will be discussing about the of pattern how the files and folders are structured in order to achieve clean and SOLID architecture. You might have heard about this blog from 2012: https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html If I may simplify the points, here are the requirements to achieve clean architecture: …

Go

5 min read

Go E2E tutorial Part 1: Clean Architecture and Folder Structure
Go E2E tutorial Part 1: Clean Architecture and Folder Structure
Go

5 min read


Mar 2

Proof of Concept: battery status after 17 months of use

If you have seen my previous article about prolonging battery life, now it is time to prove the result. Please visit here if you have not read it yet https://hariesef.medium.com/saving-ubuntu-laptop-battery-life-d4500a5a1611 So I have been applying the tips I wrote there, both in my office laptop (Thinkpad X1) as well the…

3 min read

Proof of Concept: battery status after 17 months of use
Proof of Concept: battery status after 17 months of use

3 min read


Mar 2

Life on a Treadmill

Well, this is not a metaphor. Literally how we should treat treadmill as part of our life. Sport and exercise. Two words that are easy to say, easy to execute, but very difficult to commit. We can plan, oh this weekend I will wake up early, wear my sport suit…

4 min read

Life on a Treadmill
Life on a Treadmill

4 min read

haRies Efrika

haRies Efrika

18 Followers

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams