<?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 Jasminum on Medium]]></title>
        <description><![CDATA[Stories by Jasminum on Medium]]></description>
        <link>https://medium.com/@a01095567997?source=rss-6217488c496a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZVEfCHMG6JI8lwg7q8NLMA.jpeg</url>
            <title>Stories by Jasminum on Medium</title>
            <link>https://medium.com/@a01095567997?source=rss-6217488c496a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:26:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@a01095567997/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[Tailwind is not a good way to manage CSS in React Native.]]></title>
            <link>https://medium.com/@a01095567997/tailwind-is-not-a-good-way-to-manage-css-in-react-native-c81172c18f26?source=rss-6217488c496a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c81172c18f26</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Jasminum]]></dc:creator>
            <pubDate>Wed, 13 Mar 2024 07:00:47 GMT</pubDate>
            <atom:updated>2024-03-13T07:00:47.207Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*Vuu-hA5uZyV7G2kQUabmcA.png" /></figure><p>Tailwind is not an optimal library for managing CSS solely within React Native.</p><p>In my opinion, Tailwind is an indispensable CSS management library for the web. With its ease of customization, maintenance, and convenient component creation, it significantly reduces development time. Its advantages also extend to simplified implementation of responsive design, among other benefits.</p><p>Additionally, even the drawback of potentially longer page load times when using Next.js server-side rendering can be mitigated. However, in the context of app development, Tailwind doesn’t seem to be as beneficial. Unlike the web, there are many styles that don’t apply, and styles beyond alignment cannot be defined in parent tags for child tags.</p><p>This not only prevents centralized style management but also unnecessarily lengthens the code, negating the advantage of improved maintenance.</p><p>Here are the web and app code. Both are simple examples that display text on the screen.</p><pre>&lt;form className=${&#39;text-20 font-normal p-5 mx-auto max-w-[1200px]&#39;}&gt;<br>  &lt;p className=${&#39;font-bold&#39;}&gt;hello world1&lt;/p&gt;<br>  &lt;p&gt;hello world2&lt;/p&gt;<br>  &lt;p&gt;hello world3&lt;/p&gt;<br>  &lt;p&gt;hello world4&lt;/p&gt;<br>&lt;/form&gt;</pre><pre>&lt;View className=${&#39;p-5 mx-auto max-w-[1200px]&#39;}&gt;<br>  &lt;Text className=${&#39;text-20 font-bold&#39;}&gt;hello world1&lt;/p&gt;<br>  &lt;Text className=${&#39;text-20 font-bold&#39;}&gt;hello world2&lt;/p&gt;<br>  &lt;Text className=${&#39;text-20 font-bold&#39;}&gt;hello world3&lt;/p&gt;<br>  &lt;Text className=${&#39;text-20 font-bold&#39;}&gt;hello world4&lt;/p&gt;<br>&lt;/form&gt;</pre><p>In contrast to web development, in app development, one must apply Tailwind CSS separately to each individual tag. This approach has a high likelihood of resulting in code that is not conducive to productivity and maintenance, as mentioned earlier.</p><p>Upon reviewing several articles, many individuals argue that using basic styles rather than CSS libraries in React Native leads to greater convenience in code writing.</p><p>While I haven’t extensively used React Native, the fact that such thoughts arise already suggests that it might be wise to remove Tailwind and opt for CSS components like MUI, Mantine, or Shadcn sooner rather than later. This switch could potentially be more helpful.</p><p>While I don’t intend this to be a direct criticism of Tailwind (or Nativewind), it’s worth noting the structural hurdles within React Native that I’ve observed during my limited experience with it. These include:</p><ul><li>Despite its reputation as a cross-platform solution, React Native often demands platform-specific configurations.</li><li>Implementing animations can prove to be quite intricate.</li><li>Debugging can be a challenge due to the framework’s inherent complexities.</li><li>There’s a noticeable scarcity of comprehensive external libraries, accompanied by compatibility concerns.</li></ul><p>These factors collectively contribute to a development experience that falls short of ideal. Perhaps exploring alternative methodologies or addressing these underlying issues within the React Native ecosystem could be worthwhile pursuits.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c81172c18f26" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[code review : rate-limit service]]></title>
            <link>https://medium.com/@a01095567997/code-review-rate-limit-service-79a1dae3c94f?source=rss-6217488c496a------2</link>
            <guid isPermaLink="false">https://medium.com/p/79a1dae3c94f</guid>
            <category><![CDATA[rate-limiting]]></category>
            <category><![CDATA[refactoring]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[code-review]]></category>
            <dc:creator><![CDATA[Jasminum]]></dc:creator>
            <pubDate>Sun, 25 Feb 2024 08:20:06 GMT</pubDate>
            <atom:updated>2024-02-25T08:21:31.672Z</atom:updated>
            <content:encoded><![CDATA[<h3>code review : rate-limit service</h3><p>In my previous post, I discussed rete limiting and identified several areas for improvement during that process. Now, I would like to address those points and delve into potential enhancements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*ghY0UrXYZ8cBCiZv1321og.png" /></figure><pre><br>async check(key: string) {<br>        try {<br>            await connectRedis();<br>            const now = Date.now();<br>            const keyName = `${this.prefix}:${key}`;<br>            const tokenRedis = await redis.get(keyName);<br>            if (!tokenRedis) {<br>                await redis.set(keyName, JSON.stringify({<br>                    createdAt: now,<br>                    count: 1,<br>                    limit: this.limit,<br>                    interval: this.Interval,<br>                    fireImmediately: this.fireImmediately<br>                }));<br>            }<br>            const tokenJson = JSON.parse(tokenRedis || &#39;{}&#39;);<br>            const tokenTime = tokenJson.createdAt || 0;<br><br>            if (now - tokenTime &gt; this.Interval) {<br>                await redis.set(keyName, JSON.stringify({<br>                        createdAt: now,<br>                        count: 1,<br>                        limit: this.limit,<br>                        interval: this.Interval,<br>                        fireImmediately: this.fireImmediately<br>                    },<br>                ));<br>                await redis.expire(keyName, this.Interval / 1000);<br>                return true;<br>            }<br>            if (tokenJson.count &lt; this.limit) {<br>                await redis.set(keyName, JSON.stringify({...tokenJson, count: tokenJson.count + 1}));<br>                return true;<br>            }<br>            return false;<br>        } catch (e) {<br>            console.log(&#39;rate limiter error&#39;, e);<br>            return false;<br>        }<br>    }</pre><p>my data was stored by Json Type, createdAt, limit….. however, these are do not need to be stored</p><p>To conclude, it is not necessary to simplify the code to this extent.</p><pre>import { connectRedis, redis } from &#39;@/lib/redis&#39;;<br><br>export class RateLimiter {<br>  key: string;<br>  prefix: string;<br>  Interval: number;<br>  limit: number;<br><br>  constructor(key: string, limit = 250, interval = 60 * 60) {<br>    this.prefix = &#39;ratelimit&#39;;<br>    this.key = key;<br>    this.limit = limit;<br>    this.Interval = interval;<br>  }<br><br>  async check() {<br>    try {<br>      await connectRedis();<br>      const keyName = `${this.prefix}:${this.key}`;<br>      const tokenRedis = await redis.get(keyName);<br>      if (!tokenRedis) {<br>        await redis.set(keyName, JSON.stringify(1));<br>        await redis.expire(keyName, this.Interval);<br>        return true;<br>      }<br>      if (+tokenRedis &gt;= this.limit) {<br>        return false;<br>      }<br>      await redis.incr(keyName);<br>      return true;<br>    } catch (e) {<br>      console.log(&#39;rate limiter error&#39;, e);<br>      return false;<br>    }<br>  }<br>}</pre><p>If you look at the <a href="https://redis.com/glossary/rate-limiting/">official Redis website</a>, it suggests implementing it using the incr function.</p><p>so, you don’t need to stored data by Json.</p><p>Let’s consider some advantages of writing it this way:</p><ol><li>The size of data stored in Redis decreases. Upon verification, it is evident that the size reduced from 100 to 200 bytes to around 70 bytes.</li><li>The code becomes much more concise, making it easier to understand compared to before.</li></ol><p>In my opinion, these are the main benefits, and while it may not be perfect, I believe it’s a rather commendable code improvement.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79a1dae3c94f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Custom Redis Rate-Limiting]]></title>
            <link>https://medium.com/@a01095567997/implementing-custom-redis-rate-limiting-cf88e36a8c34?source=rss-6217488c496a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf88e36a8c34</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[api-protection]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[rate-limiting]]></category>
            <dc:creator><![CDATA[Jasminum]]></dc:creator>
            <pubDate>Tue, 20 Feb 2024 11:54:49 GMT</pubDate>
            <atom:updated>2024-02-20T12:02:10.471Z</atom:updated>
            <content:encoded><![CDATA[<p>When you create an API for registering data, there’s a risk that hackers or other attackers could repeatedly submit fake or spam data tens, hundreds, or even thousands of times. This could potentially overload your database and result in a substantial increase in costs due to excessive usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*geyVEl3T4ZDpDfHsT8X5SQ.jpeg" /></figure><p>So, many companies implement various methods to prevent attacks on API access. Today, I’d like to introduce the concept of rate limiting and a very simple logic I’ve implemented for it<strong>.</strong></p><h3><strong>What is RateLimit?</strong></h3><p>This is a very simple concept to prevent multiple connections from the same IP or ID. In Next.js <a href="https://nextjs.org/docs/app/building-your-application/routing/middleware">middleware</a> or any other route server, it checks the connection count and either accepts or denies the connection.</p><p>In my company, we utilize a service to send text or social messages at a rate of 0.0052 dollars per message. Without implementing rate limiting, we would be susceptible to spending tens or hundreds of dollars due to potential attacks by hackers or malicious actors.</p><p>Consequently, this could lead to serious consequences such as termination of my employment.</p><h3>Custom RateLimit</h3><p>This is a very, very simple rate-limiting example I made using Redis, so it may not be a perfect service and could have various issues</p><pre>export type RateLimiterOpts = {<br>    fireImmediately?: boolean;<br>    prefix?: string;<br>};</pre><pre>export class RateLimiter {<br>    // Prefix for keys used in Redis to store rate limit data.<br>    prefix: string;<br><br>    // Time interval (in milliseconds) within which the rate limit applies.<br>    Interval: number;<br><br>    // Maximum number of API calls allowed within the specified interval.<br>    limit: number;<br><br>    // Determines whether to allow immediate execution of API calls or wait until the next interval.<br>    fireImmediately: boolean | undefined;<br><br>    constructor(Interval?: number, limit?: number, opts?: RateLimiterOpts) {<br>        this.prefix = opts?.prefix || &#39;rate-limiter&#39;;<br>        this.Interval = Interval || 60 * 60 * 1000;<br>        this.limit = limit || 250;<br>        this.fireImmediately = opts?.fireImmediately || true;<br>    }<br>}</pre><pre>async check(key: string) {<br>        try {<br>            await connectRedis();<br>            const now = Date.now();<br>            const keyName = `${this.prefix}:${key}`;<br>            const tokenRedis = await redis.get(keyName);<br>            if (!tokenRedis) {<br>                await redis.set(keyName, JSON.stringify({<br>                    createdAt: now,<br>                    count: 1,<br>                    limit: this.limit,<br>                    interval: this.Interval,<br>                    fireImmediately: this.fireImmediately<br>                }));<br>            }<br>            const tokenJson = JSON.parse(tokenRedis || &#39;{}&#39;);<br>            const tokenTime = tokenJson.createdAt || 0;<br><br>            if (now - tokenTime &gt; this.Interval) {<br>                await redis.set(keyName, JSON.stringify({<br>                        createdAt: now,<br>                        count: 1,<br>                        limit: this.limit,<br>                        interval: this.Interval,<br>                        fireImmediately: this.fireImmediately<br>                    },<br>                ));<br>                await redis.expire(keyName, this.Interval / 1000);<br>                return true;<br>            }<br>            if (tokenJson.count &lt; this.limit) {<br>                await redis.set(keyName, JSON.stringify({...tokenJson, count: tokenJson.count + 1}));<br>                return true;<br>            }<br>            return false;<br>        } catch (e) {<br>            console.log(&#39;rate limiter error&#39;, e);<br>            return false;<br>        }<br>    }</pre><h3>usage example</h3><pre>export async function POST(request: NextRequest) {<br>   const rateLimiter = new RateLimiter(<br>        60 * 60 * 1000,<br>        10,<br>        {prefix: &#39;your-verification&#39;}<br>    );<br>    const rateLimiterRes = await rateLimiter.check(&#39;${IP or orther unique data}&#39;);<br>    if (!rateLimiterRes) {<br>        return NextResponse.json(&quot;Too many request&quot;, {status: 429});<br>    }<br><br>    ... process your api<br>}</pre><p>It seems like you can expand and create additional options or services as you wish. This code is performing the very basic functionality of rate limiting. When you look at other people’s GitHub repositories, you’ll notice a much wider range of elements. Frankly, I didn’t fully understand them either.</p><p>I believe this code isn’t too complex, so it should be easily understandable.</p><p>If there are any parts that are unclear or incorrect, feel free to ask questions or provide feedback as usual.</p><p>Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf88e36a8c34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The way of Publishing FastAPI with AWS EC2 + Docker + nginx (3)]]></title>
            <link>https://medium.com/@a01095567997/the-way-of-publishing-fastapi-with-aws-ec2-docker-nginx-3-860846208be8?source=rss-6217488c496a------2</link>
            <guid isPermaLink="false">https://medium.com/p/860846208be8</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[fastapi]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Jasminum]]></dc:creator>
            <pubDate>Sat, 17 Feb 2024 13:07:33 GMT</pubDate>
            <atom:updated>2024-02-17T13:07:33.336Z</atom:updated>
            <content:encoded><![CDATA[<p>Finally, here comes the last posting. It took me about three days to complete this process. Honestly, there wasn’t much to it, but I spent a lot of time searching for unfamiliar concepts and procedures, debugging errors, and feeling like I wasted time due to my own laziness.</p><p>If you completed the installation of Docker and Docker-compose last time, now it’s time to create a configuration file for the FastAPI project.</p><p>To run Docker inside your EC2, you’ll need Dockerfile and docker-compose.yml files. <a href="http://To run Docker inside your EC2, you&#39;ll need Dockerfile and docker-compose.yml files. Here are the instructions for setting up a Dockerfile to run FastAPI.">Here</a> are the instructions for setting up a Dockerfile to run FastAPI.</p><p>This is my project structure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*M20FoWH8wsSrRQoBo867sQ.png" /></figure><p>You need 2 Dockerfiles, one for nginx and the other for FastAPI, which are executed in the docker-compose.yml</p><ol><li>app/Dockerfile</li></ol><p>Looking at the configuration code, you can see that necessary files are copied to Docker and it’s being raised, running on port 8000.</p><pre><br>FROM python:3.12<br><br>WORKDIR /code<br><br>COPY ../requirements.txt /code/requirements.txt<br><br>RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt<br>RUN pip install uvicorn<br><br>COPY ./app /code/app<br><br>CMD [&quot;uvicorn&quot;, &quot;app.main:app&quot;, &quot;--host&quot;, &quot;0.0.0.0&quot;, &quot;--port&quot;, &quot;8000&quot;]nginx/Dockerfile<br></pre><p>2.nginx/Dockerfile</p><pre>FROM nginx:alpine<br><br>COPY nginx.conf /etc/nginx/nginx.conf</pre><p>3. nginx.conf</p><p>I’ve configured it so that incoming traffic through nginx on port 80 is redirected to port 8000.</p><pre>events {}<br><br>http {<br>    upstream fastapi {<br>        server app:80;<br>    }<br><br>    server {<br>        listen 80;<br><br>        location / {<br>            proxy_pass http://app:8000;<br>            proxy_set_header Host $host;<br>            proxy_set_header X-Real-IP $remote_addr;<br>            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>            proxy_set_header X-Forwarded-Proto $scheme;<br>        }<br>    }<br>}</pre><p>4. docker-compose.yml</p><p>Finally, I’ve set up docker-compose.yml to run nginx and FastAPI.</p><pre>version: &#39;3&#39;<br><br>services:<br>  app:<br>    build:<br>      context: .<br>      dockerfile: app/Dockerfile<br>    ports:<br>      - &quot;8000:80&quot;<br>    restart: unless-stopped<br><br>  nginx:<br>    build: ./nginx<br>    ports:<br>      - &quot;80:80&quot;<br>    depends_on:<br>      - app<br>    restart: unless-stopped</pre><p>Now, you just need to upload the project to your EC2 and execute it! Let’s explore how to upload the project.</p><p>I connected to my EC2 using FileZilla and synced the project.</p><p><a href="https://filezilla-project.org/">FileZilla</a></p><p>Here is the download link for FileZilla. After downloading and executing it, you will see the following interface. Please click on the circled area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*834td2BBVeyNdXxbTL3Mkw.png" /></figure><p>Then, click the “New” button to add a new configuration.</p><ol><li>Select “SFTP” for the protocol.</li><li>Enter your EC2 public address in the “Host” field.</li><li>For the logon type, choose “Key file” and enter your pem key address.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*TnRGcvfOBz2ioLa6oxhnJA.png" /></figure><p>After connecting, you can drag and drop your project to upload it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0LVO7i4RCux7zyC1MzHNeA.png" /></figure><p>Now, please access your EC2 console and navigate to your security group. Add a rule to allow access from anywhere for port 80, and for port 8000, enter your Elastic IP address. (Actually, it seems like you could open all ports, but just to be safe.)<br><br>Also, I recommend that you keep port 80 open only for specific IPs that you use to access the API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bQGShUHKSMoHVm0ChiwF6w.png" /></figure><p>Finally, log in to your EC2 instance, navigate to the directory where your project is located, and then run docker-compose up --build -d to execute the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*scX_43SPRjdGQwN9nBrMZw.png" /></figure><p>After that, enter docker ps -a to check if everything is running properly. If it is, you can try accessing it to ensure the connection is successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*02YTO5yTnnbeVd3O3Ut4Tw.png" /></figure><p>If you encounter any errors or issues, they are most likely related to configuration files or path settings. If you let me know about the issues in the comments, I’ll do my best to help you out with what I know.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=860846208be8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The way of Publishing FastAPI with AWS EC2 + Docker + nginx (2)]]></title>
            <link>https://medium.com/@a01095567997/the-way-of-publishing-fastapi-with-aws-ec2-docker-nginx-2-e6f8a45f5af6?source=rss-6217488c496a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6f8a45f5af6</guid>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Jasminum]]></dc:creator>
            <pubDate>Wed, 07 Feb 2024 14:29:32 GMT</pubDate>
            <atom:updated>2024-02-07T14:29:32.402Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, we will explore how to access an EC2 instance created in the previous posting via SSH, and install Docker along with Docker Compose.</p><ol><li>First, select the desired instance from the AWS instance console, then click the “Connect” button.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHSBHEC3GfGPLC31GU6Ufw.png" /></figure><p>2. Open the SSH console and paste the following command after clicking the copy button. Then press Enter to connect</p><p><em>If you are unsure how to access the SSH console, please refer to the </em><a href="https://www.howtogeek.com/311287/how-to-connect-to-an-ssh-server-from-windows-macos-or-linux/"><em>link</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*tI5Cub9J3CVJ5de_IHfD0A.png" /></figure><p>Initially, you may not be able to connect directly.</p><p>For macOS, you can resolve this by using the chmod 400 keyname.pem command. However, for Windows, you will need to follow the steps below.</p><pre>icacls.exe keyname.pem /reset<br>processed file: keyname.pem<br>Successfully processed 1 files; Failed processing 0 files<br><br>icacls.exe keyname.pem /grant:r %USERNAME%:R<br>processed file: keyname.pem<br>Successfully processed 1 files; Failed processing 0 files<br><br>icacls.exe keyname.pem /inheritance:r<br>processed file: keyname.pem<br>Successfully processed 1 files; Failed processing 0 files</pre><p>After following these steps, you should be able to reconnect successfully.</p><p>3. Installation docker , docker-compose</p><p>docker</p><pre>//Update pakage<br>sudo apt update<br>//Install packages related to HTTPS<br>sudo apt install apt-transport-https ca-certificates curl software-properties-common<br>//Setting up GPG keys for accessing the Docker repository<br>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg - dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg<br>//Registering the Docker repository<br>sudo add-apt-repository &quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable&quot;<br>//Updating again<br>sudo apt update<br>//Install docker<br>sudo apt install docker-ce<br>//Check version<br>docker - version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*52T5ITmOFFUaYjZhHpOAPw.png" /></figure><p>If the version is displayed correctly, the installation has been successfully completed.</p><p>docker-compose</p><blockquote>Docker Compose is a tool that allows you to define and run multi-container Docker applications.</blockquote><pre>//Install the latest version<br>//If you want to install a specific version, simply replace &quot;latest&quot; with the version number you desire.<br>sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose<br>//Setting permissions.<br>sudo chmod +x usr/local/bin/docker-compose<br>//Check version<br>docker-compose --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*OXqQLcj-F0-cZGZD6Hl1nA.png" /></figure><p>We have completed the installation up to this point. Originally, I thought of downloading the Nginx image in Docker, making modifications within it, and carrying out a series of tasks. However, today, after researching and practicing various methods, I’ve come to believe that creating Docker and Docker Compose files within the project, along with an Nginx configuration file, to deploy the project is a better approach. I intend to proceed with this method in the next post as the final step.</p><p>If there are any areas where my explanation was lacking, or if you have encountered any confusion or errors, feel free to leave a comment. I’ll do my best to address it within my knowledge. Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6f8a45f5af6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The way of Publishing FastAPI with AWS EC2 + Docker + nginx (1)]]></title>
            <link>https://medium.com/@a01095567997/the-way-of-publishing-fastapi-with-aws-ec2-docker-nginx-1-31dccbb7d67f?source=rss-6217488c496a------2</link>
            <guid isPermaLink="false">https://medium.com/p/31dccbb7d67f</guid>
            <category><![CDATA[fastapi]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <dc:creator><![CDATA[Jasminum]]></dc:creator>
            <pubDate>Tue, 06 Feb 2024 16:06:40 GMT</pubDate>
            <atom:updated>2024-02-06T16:06:40.246Z</atom:updated>
            <content:encoded><![CDATA[<p>I often find myself feeling apprehensive about my proficiency in cloud services and deployment-related fields. In fact, I consider these areas to be my weaknesses. I tend to feel intimidated by the complexities associated with cloud services and deployment processes.</p><p>So, I wanted to share and guide others through the methods I’ve personally taken. These may not be perfect solutions, and I’m open to advice or anything you’d like to share with me! Feel free to leave a comment anytime!</p><p>*I apologize, but due to the region being set to Korea, the captures are only available in Korean. Thank you for your understanding.</p><ol><li>Accessing the EC2 console. and start instance*<br>* In fact, I haven’t fully grasped the concept, but simply understanding it as ‘renting a computer’ seems sufficient</li><li>set your instance name, Os, image and Creating a key pair, which should never be lost under any circumstances.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*hFadbq_xipSWG-1zlVpfjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*-A5LQ1vp2PfFl_fxn1Z-UQ.png" /></figure><p>and start instance<br>3. make elastic IP and allocate <br>* The reason for assigning an Elastic IP is to provide a fixed IP address, as instances have a high chance of getting a different IP address when they are turned off and on again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*omUJq0OoybqZRXyKJUDDsw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*3q7HrSEr4yFgBP72n5NClg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*XmjpvdA6tcFpcjto-kTOtg.png" /></figure><p>By doing this, your instance is now completed!</p><p>“In the following steps, I’ll SSH into the instance to install Docker and begin the deployment process in earnest</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31dccbb7d67f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I’ve done and what I need to do.]]></title>
            <link>https://medium.com/@a01095567997/what-ive-done-and-what-i-need-to-do-916b5f857329?source=rss-6217488c496a------2</link>
            <guid isPermaLink="false">https://medium.com/p/916b5f857329</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[fullstack-development]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[professional-development]]></category>
            <category><![CDATA[learningthroughchallenges]]></category>
            <dc:creator><![CDATA[Jasminum]]></dc:creator>
            <pubDate>Tue, 06 Feb 2024 14:53:46 GMT</pubDate>
            <atom:updated>2024-02-06T14:53:46.296Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, I’m a Korean developer who has been coding for about a year.”</p><p>I’m not proficient in coding or English, but I aspire to become a better version of myself every day. In my company, I was responsible for working on full-stack development tasks.</p><p>I’ve learned a lot over the past year, but I recently realized that I still have a long way to go. At some point, I asked my boss how I could become better at coding.</p><p>My boss, who always seeks diverse experiences, said to me, ‘Find various cases and apply them to your situation or issues, and then iterate on them.’ So, I intend to establish some rules for myself.</p><ol><li>When facing an issue, document the issue and the resolution process on my blog</li><li>When encounter a new concept, apply it to my projects</li><li>Meet diverse individuals, listen to their perspectives, compare them with my own, Cultivates a breadth of thought</li></ol><p>These rules may not seem grandiose, but I believe that by adhering to them, I can certainly grow beyond where I am now.</p><p>This blog will serve as a marker of my growth journey.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=916b5f857329" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>