Second Week of Internship at Tong Hin

I spent my second week working on the coding side of the Retail Business which was briefed to me last week.

I started off the week by setting up my workspace, SQL workspace and Source Tree. Moreover, I concentrated on learning how a test case is executed for an API, for example; how handlers work , repositories, entities, and also how to debug a test case. 

Next, I was given my first task to create an API with simple entities and test cases. I kicked off the API by creating entities with relevant fields and also their config file which helps mapping entities and their properties and relationships to a relational database. Once the fundamentals of the entities were created, I shifted my focus towards the commands and query aspect. Started it by defining repositories, updating the Database context file and adding dependency injection. 

Furthermore, I completed the Create and Delete commands with successful testing and made relevant commits. Moreover, I finished the Get query with test cases which was not until I had to fix some bugs in my Data Transfer Object (DTO) file. Lastly, I finalized data testing which tests the logic of your repository and started building logic for the Update command.

First Week of Internship at Tong Hin

I spent my first week at the company mostly concentrating on learning some softwares and understanding the fundamentals of the task I would be doing during this internship.

I started off the week by learning git immersion. Using Git I learned how to create repositories, commit changes, merge repositories, and push any changes made in the repositories using the git commands.

Next, I was briefed on the area I would be focusing on during the internship which is the API. After grasping the structure and the business rules provided to me I extracted out entities, fields and relations and came up with a Crow’s Foot Notation (CRD) of the business. Verification of payments was a challenge I faced while forming the CRD, as there are multiple means of payment with possibility of multiple transactions. However, after having some productive conversations with my supervisor I was able to finish it.

Lastly, I was introduced to the Stocks API code since I would be creating a API therefore going through the Stocks API would really help me understand the concepts and fundamentals of RESTful API and how to test it using Test Driven Development (TDD).