<?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 KC Koh on Medium]]></title>
        <description><![CDATA[Stories by KC Koh on Medium]]></description>
        <link>https://medium.com/@kckoh?source=rss-9a31c9f4b702------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oRafVjbTABlRVras7tRJoA.jpeg</url>
            <title>Stories by KC Koh on Medium</title>
            <link>https://medium.com/@kckoh?source=rss-9a31c9f4b702------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:57:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kckoh/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[DeepBlue: Fish Classifying website]]></title>
            <link>https://medium.com/@kckoh/deepblue-fish-classifying-website-433acd69a751?source=rss-9a31c9f4b702------2</link>
            <guid isPermaLink="false">https://medium.com/p/433acd69a751</guid>
            <dc:creator><![CDATA[KC Koh]]></dc:creator>
            <pubDate>Sat, 04 Feb 2023 02:07:52 GMT</pubDate>
            <atom:updated>2023-02-07T09:48:34.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*6zan4SI_oKguKVuOd0yBgQ.jpeg" /></figure><p>This project is part of [S<em>ilicon Valley Winter22 Bootcamp</em>]</p><p>Github: <a href="https://github.com/SVTeamJ/DeepBlue">https://github.com/SVTeamJ/DeepBlue</a></p><p>Are you a fish enthusiast looking to learn more about the different types of fish in the ocean? DeepBlue is a website that utilizes machine learning to classify other fish species accurately.</p><p>With DeepBlue, you can upload a photo of a fish, and our machine-learning algorithm will give you its species name and some interesting facts about it.</p><p>Our website is designed for user-friendliness with an intuitive guide. As the user uploads the image, the user will be able to see the result on the page that shows all the fish information immediately. The data is retrieved from our trained database. DeepBlue has the potential to serve fishers, aquariums, researchers, and many more parties who need to identify fish species. Enough with the background; let’s dive into our journey of the project.</p><h3>Git Commit and Convention</h3><p>As the collaboration tools, we used git and GitHub for version control and slack for general communication. Our general workflow is the following:</p><ol><li>Assign tasks on Monday</li><li>Create issues and make the branch according to the convention issue names and issue numbers</li><li>Switch to the issue name with the issue numbers</li><li>Implement the task</li><li>Make the pull request to the development branch</li><li>Get reviews of the tasks</li><li>Push to the development branch</li></ol><p>We also tried to follow a consistent commit message pattern. We used the following format:</p><pre>&lt;type&gt;: &lt;description&gt;</pre><p>We chose these seven types for git commit:</p><ul><li><strong>feat</strong>: A new feature</li><li><strong>fix</strong>: A bug fix</li><li><strong>docs</strong>: Documentation only changes</li><li><strong>style</strong>: Changes to the styles such as space, formatting, and missing semi-colons</li><li><strong>refactor</strong>: A code change that neither fixes a bug nor adds a feature</li><li><strong>test</strong>: Adding tests</li><li><strong>chore</strong>: Changes to the build process or auxiliary tools and libraries such as documentation generation</li></ul><p>We kept the descriptions simple in the commit message because further descriptions and implementation details can be found on the issues we created.</p><h3>System Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V99bdNtqjtPkgOxi6blTmA.png" /></figure><h3>ERD</h3><p>Here is the picture of our ERD. Based on this ERD, we made models using SQLAlchemy, a python ORM(Object Relational Mapper) for communicating with the database. For the database, we used MySQL, a powerful and reliable open-source RDBMS(Relational Database Management System). SqlAlchemy provides an easier way to interact with the database, allowing us to create, update, and delete data from the database. With MySQL and Sqlalchemy, we can strongly interact with the database, ensuring our data is secure and consistent.</p><h3>Tech Stacks</h3><h3>Frontend</h3><p>We used react because of the following reasons:</p><ol><li><strong>Community Support</strong></li><li><strong>Reusable Components</strong></li><li><strong>Fast render with Virtual DOM</strong></li></ol><p><strong>Recoil</strong></p><p>We could have used reduce as a state management library but reduced all unnecessary rendering, but we chose to use recoil for the management library. One reason is that reduce is not optimized for React. Additionally, recoil keeps track of only changed components for rendering.</p><p><strong>React-query.</strong></p><p>React-query is great for diving server and client data. One big advantage of using react-query is that it is easy to bring data from the server, and it is convenient to update values and use cache, error handling and write asynchronous codes.</p><p><strong>Typescript</strong></p><p>Typescript is JavaScript for application-scale development. Type checking is one of the most significant features of TypeScript. We define types in Type-script and can reduce unexpected errors. We call this “static typing”. That is the reason why we chose TypeScript.</p><p><strong>Sass</strong></p><p>We used sass because Sass enables us to write responsive websites easily and uses variables for reusable components.</p><h3>Backend</h3><p>We chose FastAPI as an API framework because of the following reasons:</p><ul><li>Easy to learn and implement APIs</li><li>Fast development</li><li>Auto-generating documentation with swagger</li><li>Validations with Pydantic</li><li>Well-organized official documents</li></ul><p>And, We chose uvicorn as an ASGI server because it is light and compatible with FastAPI.</p><p>💡 <strong>ASGI? </strong>ASGI (Asynchronous Server Gateway Interface) is a specification for building asynchronous web applications such as web servers, frameworks, and clients. ASGI provides a single API abstraction for Python web applications and allows the application to be served by any ASGI-compliant web server without waiting for DB transactions and API; at the same time, the CPU could do other jobs in the meanwhile.</p><h3>Swagger</h3><p>Swagger is a powerful open-source framework for creating and documenting APIs. It uses a language-agnostic interface to define an API&#39;s structure and automate documentation generation. Swagger provides an easy way to interact with the backend and test endpoints. It also allows us to view the structure of our API in a graphical representation and easily generate code samples in several programming languages. We chose this tool because it is fast, efficient, and provides an easy way to document our API.</p><p>We have the following APIs:</p><ul><li>signup, login, logout</li><li>upload images to ai servers</li><li>create and get the fish history</li><li>charts information</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JXgMUSeG0ukZCJiJyW8qFw.png" /></figure><h3>AI</h3><p>We used pre-trained models from five different fish. We used AI models from YOLO v5; once the users upload the image, the AI models return the fish information, which is mapped to our fish database and returns the fish information through our API. Since it takes time to process the requests for the AI server, we decided to add celery for non-blocking, which reduces the AI requests time. On top of that, RabbitMQ is added so that it ensures the credibility of our AI responses.</p><h3>DevOps</h3><p>We used dockers, in which we containerize each component so that it can be run on multiple operating systems. On top of dockers, we used Amazon EC6 for deployments, an Amazon Web Services (AWS) service that provides scalable computing capacity in the cloud. We figured AWS would be the perfect fit since AWS offers free tiers. We used Amazon S6 for storing uploaded fish images. S6 stores data as objects, which are organized into buckets.</p><p>To make the deployment easy and smooth, we chose to implement github action as CI/CD.</p><p><strong>CI/CD?</strong> It stands for Continuous Integration and Continuous Delivery. CI/CD is the practice of continuously integrating code changes into a version control system and then delivering those changes to the production environment, usually through automated processes. We used GitHub Actions for our CI/CD pipeline.</p><h3>TAKEAWAY</h3><ul><li>HyeonJeong: In this DeepBlue project, i was responsible for docker settings and AI parts. As a leader for this project, everything was new to me. I joined as a teammate for past projects. I was simply following instructions in the previous project. Through the project, i experienced allocating tasks to teammates and learned to take care of the overall team ambience. However, it was difficult to do what i wanted to do, but i learned to cope with my teammates and environments. It was a great opportunity to experience the end-end project and understand the general flow of a team project.</li><li>KC: It was my first time doing the project with a group. Overall experience was great because I got to make an end-end project from ideation to deployment with people from different backgrounds. What I realized over the six weeks was the perspectives of learning. The team project makes me reimagine how I should approach learning. So how should one learn to code? In fact, it is very simple… you just need to start coding. We were taught to learn from the bottom-up approach alone. However, I realized that this approach was inefficient. The best way to learn is to start making one thing and learn the necessary skills you need so that you do not spend time on learning things that are potentially useless.</li><li>Heejung Kim: From the start, I did not think that I could finish something like this in one month. As the project progressed, the project began to form the structure. Additionally, I gained confidence as I learned coding knowledge. Before this project, I knew nothing about coding, but the project has taught me what to do to become a developer and think about what I should do in future. I will do many more projects, but this project, DeepBlue, will always be the most memorable.</li><li>gunwoo Kim: At first, coding was not what I imagined. I was shocked because the overall process was completely different from when I studied alone. Moreover, I had zero knowledge of coding, so I was very confused at first and did not find any joy there. Nevertheless, as I gained more knowledge and the project was slowly finishing up, i experienced great joy and achievement compared to when i had studied programming languages alone. It was a shame that i could not contribute a lot due to my lack of knowledge, but this project expanded my knowledge and sparked my interest for coding. I believe DeepBlue will be my milestone for the future coding journey.</li><li>JongYun: The biggest takeaway from this project was the joy of coding. During the project, I felt great joy in implementing code from the ideas. Another joy was the communication between teammates for the purpose of finishing the project. Before this project started, I was unsure of my career path in coding. Through this project, I realized the fact that I liked to code and had the certainty that I could pursue this career without doubts.</li><li>min joo Kim: Frankly speaking, I thought coding was too difficult to learn. However, I developed my programming skills and experienced what it was like to work in a team. New people in a new environment helped me learn many things.</li><li>seunghwan : First, I realized the role of the team members is as important as the role of the team leader. I learned that active ownership of the project led to the success of the team project. Secondly, I felt that the user experience would be bad if the development was carried out from the developer’s perspective. For example, there was a time that I thought of when I proceeded with the development. However, I changed the function from my point of view in the middle; as a result, the output was not as satisfactory. Lastly, the project sets me how i ought to study for what I lack.</li></ul><h3>Demo Videos</h3><p>Home Page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*NzkbaXG0mKD6kIAHDhcaNw.gif" /></figure><p>Chart Page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*cwLXF12AFERlvYldtID99Q.gif" /></figure><p>Login/Sigup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*VnhSGcymLnQRGpwfD2oe7Q.gif" /></figure><p>Thank you so much for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=433acd69a751" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>