<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Garyliew on Medium]]></title>
        <description><![CDATA[Stories by Garyliew on Medium]]></description>
        <link>https://medium.com/@garyliew050?source=rss-b3ba0b0e4c7a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Rs0iCwQdeRaHD6tL</url>
            <title>Stories by Garyliew on Medium</title>
            <link>https://medium.com/@garyliew050?source=rss-b3ba0b0e4c7a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 17:39:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@garyliew050/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[“My EasyStore Internship: A Monthly Retrospective”]]></title>
            <link>https://medium.com/@garyliew050/my-easystore-internship-a-monthly-retrospective-371b138206bd?source=rss-b3ba0b0e4c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/371b138206bd</guid>
            <category><![CDATA[vue-js-basic]]></category>
            <category><![CDATA[aws-sharing]]></category>
            <dc:creator><![CDATA[Garyliew]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 15:38:46 GMT</pubDate>
            <atom:updated>2023-12-12T02:34:13.100Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Section 1: Attend the AWS Foundation sharing organized by senior.</strong></h3><p>First, we understand the AWS services used at EasyStore. During the AWS Foundation sharing organized by senior, I gained valuable insights into how EasyStore utilizes various Amazon Web Services (AWS) to manage their website efficiently. The relationship between these services is integral to the seamless functioning of EasyStore’s online platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*X0wyGN-A7geWS5j43mriIA.png" /><figcaption>Services used in company</figcaption></figure><ul><li>Amazon EC2: provides virtual servers for hosting applications</li><li>Amazon S3: provides storage for data and objects</li><li>CloudFront: provides content delivery network (CDN) services</li><li>Route 53: provides domain name system (DNS) services</li><li>IAM: provides identity and access management services</li><li>CloudWatch: provides monitoring and logging services</li><li>API Gateway: provides a way to create, publish, and manage APIs</li><li>SQS: provides a message queue service for sending and receiving messages between services.</li></ul><p><strong>Section 1.1: Insights on Region Availability and Availability Zones</strong>.</p><p>AWS has a global infrastructure that is divided into regions, which are physical locations around the world where AWS clusters data centers. Each region consists of a minimum of three, isolated, and physically separate Availability Zones (AZs) within a geographic area. The multiple AZ design of every AWS Region offers advantages for customers, as each AZ has independent power, cooling, and physical security and is connected via redundant, ultra-low-latency networks. AWS customers focused on high availability can design their applications to run in multiple AZs to achieve even greater fault-tolerance. AWS regions are set on a map, not a country. The region concept is designed to provide access to the service that is nearest to the user. For example, Singapore is the nearest region to Malaysia. An Availability Zone (AZ) is a data center that is designed to be isolated from failures in other Availability Zones. AWS personnel build their own buildings, which house physical servers, and many engineers maintain the servers, which together form an AZ. One region needs many AZs for reliability and redundancy, to ensure that if one data center goes down, there are two others available for backup.</p><p><strong>Section 1.2: AWS Architecture Diagrams</strong></p><p>In this section, we can understand the AWS services and their relationship to each other using a military analogy.</p><p><strong>VPC: The Military Base</strong></p><p>Amazon Virtual Private Cloud (VPC) is a service that allows us to create a virtual network in the AWS cloud. We can think of VPC as a military base, which provides a secure environment for our applications and resources.</p><p><strong>Subnets: Different Departments</strong></p><p>We can create subnets within our VPC to partition our network into smaller, more manageable segments. Each subnet is like a different department within the military base, with its own set of resources and applications.</p><p><strong>Route Tables: The Maps</strong></p><p>Each subnet is associated with a route table that controls the routing for the subnet. We can think of route tables as the maps that guide us to each department within the military base. A route table contains a set of rules, called routes, that determine where network traffic from our subnet or gateway is directed. Each subnet in our VPC must be associated with a route table, which controls the routing for the subnet (subnet route table). We can make a subnet a public subnet by adding a route in our subnet route table to an internet gateway. To do this, create and attach an internet gateway to our VPC, and then add a route with a destination of 0.0.0.0/0 for IPv4 traffic or for IPv6 traffic, and a target of the internet gateway ID. A private subnet is a subnet that is associated with a route table that doesn’t have a route to an internet gateway.</p><p><strong>Internet Gateway: The Main Gate</strong></p><p>The internet gateway is like the main gate of the military base, which allows communication between the base and the outside world. It provides a way for our VPC to connect to the internet.</p><p><strong>NACLs and Security Groups: The Security Checkpoints</strong></p><p>Network ACLs (NACLs) and Security Groups are two different types of security mechanisms that we can use to control access to our VPC. NACLs are stateless and operate at the subnet level, while Security Groups are stateful and operate at the instance level. We can think of NACLs and Security Groups as the security checkpoints that control access to different parts of the military base.</p><p><strong>RDS and EC2: The Equipment and Vehicles</strong></p><p>Amazon RDS (Relational Database Service) is a managed database service that makes it easy to set up, operate, and scale a relational database in the cloud. Amazon EC2 (Elastic Compute Cloud) is a web service that provides resizable compute capacity in the cloud. We can think of RDS and EC2 as the different types of equipment and vehicles that are used by the military personnel.</p><p><strong>In conclusion</strong>, AWS services can be thought of as a military base, with different departments, security checkpoints, and equipment. Understanding the relationship between these services is essential for building secure and scalable applications in the cloud.</p><h3>Section 2: Attend the Vue.js sharing organized by senior.</h3><p>Vue.js is a JavaScript framework for building user interfaces. At its core, Vue.js is based on the concept of a Vue instance, which is the root of every Vue application. The process of declaring a new Vue instance is called Declaration. Once we have declared a new Vue instance, we can use Vue.js directives to apply reactive behavior to the DOM. One of the most important aspects of Vue.js is Rendering, which refers to the process of rendering the Vue instance’s template into the DOM.</p><p><strong>Section 2.1: Introduction</strong></p><p>Vue.js also provides powerful tools for working with data, including the ability to conditionally render elements based on the state of the Vue instance (Conditional) and the ability to loop over an array of data and render a template for each item in the array (Loop). These features make it easy to build dynamic and responsive user interfaces.</p><p><strong>Section 2.2: Vue.js directive</strong></p><p>Vue.js directives are special attributes that start with “v-” and are used to apply reactive behavior to the DOM. The <strong>v-html</strong> directive allows us to render HTML content as part of a template. The <strong>v-model</strong> directive allows us to bind form input values to data properties on the Vue instance. It provides a convenient way to create two-way data bindings between form inputs and Vue.js data. The<strong> v-bind</strong> directive allows us to bind an HTML attribute to a data property on the Vue instance. We can use it to dynamically set attributes like class, style, and src. Finally, the <strong>v-on</strong> directive allows us to attach event listeners to DOM elements. We can use it to listen for events like click, submit, and keyup.</p><ul><li><strong>v-html</strong>:</li></ul><pre>&lt;div v-html=&quot;html&quot;&gt;&lt;/div&gt;</pre><ul><li><strong>v-model</strong>:</li></ul><pre>&lt;input v-model=&quot;message&quot;&gt;</pre><ul><li><strong>v-bind</strong>:</li></ul><pre>&lt;div v-bind:id=&quot;dynamicId&quot;&gt;&lt;/div&gt;</pre><ul><li><strong>v-on</strong>:</li></ul><pre>&lt;button v-on:click=&quot;incrementCounter&quot;&gt;Button &lt;/button&gt;</pre><p>Section 2.3: vue.js instances</p><p>Vue.js instances are the building blocks of Vue.js applications. Each instance has its own set of data, methods, and lifecycle hooks. Each instance cannot repeat in a vue file. The Data property is used to define the properties that the Vue instance will observe and react to. The Methods property is used to define functions that can be called on the Vue instance. The Created lifecycle hook is called when the Vue instance is created, while the Mounted lifecycle hook is called when the Vue instance is mounted to the DOM. The Computed property is used to define a property that is calculated based on other properties on the Vue instance. Finally, the Watched property is used to watch for changes to other properties on the Vue instance.</p><p>Section 2.4: Vue.js components</p><p>Vue.js components are reusable and independent building blocks of a Vue.js application. They can be nested within each other to create complex user interfaces. Components can communicate with each other using props and emit.</p><p><strong>Props </strong>are custom attributes that can be registered on a component. They allow data to be passed from a parent component to a child component. Props are read-only, which means that the child component cannot modify the data passed to it via props. Props can be used to pass both static and dynamic data.</p><pre>&lt;template&gt;<br>  &lt;div&gt;<br>    &lt;h1&gt;{{ title }}&lt;/h1&gt;<br>    &lt;p&gt;{{ description }}&lt;/p&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>export default {<br>  props: {<br>    title: String,<br>    description: String<br>  }<br>}<br>&lt;/script&gt;</pre><p>the component has two props: title and description. Both props are of type String. The parent component can pass data to the child component using these props.</p><p><strong>Emit </strong>is a way for a child component to communicate with its parent component. The child component can emit an event, which the parent component can listen for and respond to. This allows the child component to pass data back up to the parent component.</p><pre>&lt;template&gt;<br>  &lt;div&gt;<br>    &lt;input v-model=&quot;message&quot;&gt;<br>    &lt;button @click=&quot;sendMessage&quot;&gt;Send Message&lt;/button&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>export default {<br>  data() {<br>    return {<br>      message: &#39;&#39;<br>    }<br>  },<br>  methods: {<br>    sendMessage() {<br>      this.$emit(&#39;message-sent&#39;, this.message)<br>    }<br>  }<br>}<br>&lt;/script&gt;</pre><p>The child component has an input field and a button. When the button is clicked, the child component emits a message-sent event and passes the message as a parameter. The parent component can listen for this event and respond to it.</p><p><strong>In summary of this framework</strong>, Vue.js’s simplicity lies in its alignment with logical thinking patterns, making it intuitive and easily understandable for developers. It&#39;s clear syntax and coherent structure empower developers to build powerful and dynamic user interfaces effortlessly.</p><h3>Section 3: Enhance the layout and functionality of star rating app review</h3><p>In my second internship task, I had the opportunity to focus on enhancing our star rating app’s UI layout and introducing the functionality for users to upload images. This task involved refining the visual interface for a more user-friendly experience and integrating a feature that allowed users to attach images to their reviews.</p><p><strong>Section 3.1: lessons learned</strong></p><p>Throughout my journey of enhancing our star rating app, several key learnings have shaped not only my technical skills but also my approach to problem-solving and project management.</p><p><strong>Importance of UI/UX:</strong></p><p>The meticulous UI review in Figma emphasized the significance of a user-centric design. It taught me that small changes in layout and visual elements can significantly impact the user experience, fostering engagement and usability.</p><p><strong>API Development and Integration:</strong></p><p>Developing APIs for image uploads demanded attention to detail in ensuring seamless data flow between the frontend and backend. The integration of AWS S3 for image storage was enlightening in understanding cloud-based solutions.</p><h3><strong>Section 4: Conclusion</strong></h3><p>The enriching sessions organized by EasyStore on AWS and Vue.js have significantly bolstered my understanding and application of crucial concepts, particularly in the realm of AWS S3 integration within the star rating app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=371b138206bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First month internship’s experiences in EasyStore company as a Software Engineer]]></title>
            <link>https://medium.com/@garyliew050/first-month-internships-experiences-in-easystore-company-as-a-software-engineer-9361cfd5d4fa?source=rss-b3ba0b0e4c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9361cfd5d4fa</guid>
            <dc:creator><![CDATA[Garyliew]]></dc:creator>
            <pubDate>Wed, 15 Nov 2023 02:24:04 GMT</pubDate>
            <atom:updated>2023-11-15T03:36:08.093Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c2lW3Z80_IeWxYkN.png" /></figure><h3>Section 1: Getting Started</h3><p>During my first week at EasyStore, I embarked on a journey of familiarizing myself with the tools crucial for future tasks and understanding the intricate development flow. The initial focus revolved around setting up essential systems and tools vital for the forthcoming projects. This included generating private and public keys via Putty, configuring the SFTP file system, setting up SourceTree, and establishing SSH keys in GitHub. A significant highlight was delving into the MySQL setup for database management, laying the groundwork for handling data effectively. Additionally, I undertook a quick UI task, aimed at acquainting myself with the company deployment flow. The deployment process, summarized succinctly as the Git Flow, entailed various steps: branching from master for hotfixes and from develop for new features, committing code, pushing branches to the repository, creating pull requests with assigned reviewers, utilizing Github Actions for staging and production workflows, merging branches into develop and master, deploying to staging and subsequently to production using Github Actions, and finally, ensuring thorough testing in the production environment to verify the integrity of the deployed features or fixes. This initial exposure provided a fundamental understanding of the tools and deployment processes critical for seamless development practices at EasyStore. Furthermore, this week marked the initiation of discussions with senior, focusing on formulating plans to enhance the Sales Pop app, outlining the potential improvements and drop down in notion.</p><h3>Section 2: Deep Dive into Development</h3><p>During the second week at EasyStore, my journey delved deeper into comprehensive learning and active involvement in pivotal projects. Daily scrum meetings continued to be the cornerstone of our collaboration, providing invaluable insights into backend programming structures, coding best practices, and deepening my understanding through a dedicated Ruby on Rails lesson. This week encapsulated an amalgamation of continued learning and hands-on engagement. Active participation in sprint role-play testing enriched my understanding of EasyStore website on functionality and user experience evaluation. Simultaneously, I began diving into the Sales Pop app’s merchant side layout, which presented an exciting opportunity to put my acquired knowledge into practice. This involved delving into the existing codebase of the Sales Pop app, understanding its intricacies, and familiarizing myself with the controller class, a blend of PHP Laravel and HTML. This hands-on experience provided valuable insights into the functionality and structure of the app, reinforcing my understanding of development frameworks. Lesson learnt from this week, always upload files via SFTP and perform a hard refresh by long pressing the reload button to see the effects of new edits. Often encountered issues where the code displayed the previous version, initially attributing it to coding problems, leading to unnecessary troubleshooting efforts. I found that the absence of a reliable SFTP system posed significant challenges. The dependency on the development server often led to disruptions as it frequently encountered downtimes, hampering our workflow. This was particularly evident when someone editing page — a situation prone to issues and delays. The inefficiency of the dev server compared to the option of working on localhost became apparent.</p><h3>Section 3: Exploring APIs and Endpoints</h3><p>During the third week at EasyStore, I dived into a pivotal aspect of development: harnessing data through APIs and endpoints. A significant revelation was understanding the structured approach to endpoints — where Stable.rb serves as the endpoint for the apps repository, while Storefront.rb corresponds to the SF repository. What fascinated me was the systematic naming convention for each endpoint; for instance, if an endpoint relates to customers, it follows the nomenclature of ‘customer_controller’ within the ‘stable’ directory. This insight highlighted the meticulous organization within the development framework, enabling streamlined data retrieval and management. Understanding the significance of endpoints and their associations with specific functionalities added depth to my grasp of backend systems and their crucial role in application functionality.</p><h3>Section 4 : Optimizing Cart Data Capture: Lessons Learned</h3><p>During the fourth week of my internship at EasyStore, in the process of capturing cart information, I initially adopted an approach that relied on observing the behavior of the orders table in the core database. Noticing that upon a user pressing ‘add to cart’ on the storefront page, the orders table registered a new row where the order_number was consistently set to 0. To retrieve cart information, I attempted to fetch data using this observation through the order.json?order_number=0 endpoint. However, this method had notable limitations. While it successfully captured the product when initially added to the cart, it posed a significant constraint — we could only capture the first instance of a product being added. Subsequent attempts to update or capture subsequent additions to the cart were ineffective, as orders were generated only once, hindering the ability to capture ongoing cart modifications. Additionally, after consulting with seniors, I received guidance to leverage the Subscribe event function within the Sales Pop app. This function was identified as a potent tool to capture crucial details — such as product specifics and user account IDs — when users interacted with the ‘add to cart’ button. By utilizing a combination of GET and POST methods, this data was efficiently stored within the core database. Furthermore, employing customer API calls based on the captured customer IDs from the Subscribe event function allowed us to filter and retrieve customer names, enhancing our ability to personalize user experiences. One of the noteworthy aspects I learned about during this time was the significance of webhooks. Understanding their functionality in capturing status changes automatically was enlightening. This capability proved to be a valuable asset, enabling automated actions in response to changes in order status, showcasing the efficiency and practicality of automated functions within the EasyStore system.</p><h3>Section 5 : short conclusion</h3><p>Throughout my internship at EasyStore, I’ve delved into diverse aspects of software engineering. From mastering essential tools and deployment methods to exploring APIs and refining data capture approaches, each week brought new insights and challenges. Engaging with the Sales Pop app and learning about webhooks highlighted the practical applications of development concepts. This experience not only enhanced my technical skills but also emphasized the value of adaptability and collaboration in a professional setting. Overall, it’s been a rewarding journey that’s prepared me for future endeavors in software engineering.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9361cfd5d4fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>