<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hyunjung</title>
    <description>The latest articles on DEV Community by Hyunjung (@blumenbluu).</description>
    <link>https://dev.to/blumenbluu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3827442%2Fd45a0ff9-df3b-4c22-a1db-75107260fe49.jpeg</url>
      <title>DEV Community: Hyunjung</title>
      <link>https://dev.to/blumenbluu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blumenbluu"/>
    <language>en</language>
    <item>
      <title>How to start FastAPI?</title>
      <dc:creator>Hyunjung</dc:creator>
      <pubDate>Sun, 12 Apr 2026 10:47:45 +0000</pubDate>
      <link>https://dev.to/blumenbluu/how-to-start-fastapi-jaf</link>
      <guid>https://dev.to/blumenbluu/how-to-start-fastapi-jaf</guid>
      <description>&lt;p&gt;I’m starting a new FastAPI project for my capstone, and I want to document the entire process so I can look back on it later.&lt;/p&gt;




&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.10+ installed&lt;/li&gt;
&lt;li&gt;Git installed and configured&lt;/li&gt;
&lt;li&gt;A GitHub account&lt;/li&gt;
&lt;li&gt;Basic terminal knowledge&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  1. Create your project folder
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir &lt;/span&gt;my-project
&lt;span class="nb"&gt;cd &lt;/span&gt;my-project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Set up a virtual environment
&lt;/h2&gt;

&lt;p&gt;Always use a virtual environment.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python &lt;span class="nt"&gt;-m&lt;/span&gt; venv venv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Activate it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# macOS / Linux&lt;/span&gt;
&lt;span class="nb"&gt;source &lt;/span&gt;venv/bin/activate

&lt;span class="c"&gt;# Windows (CMD)&lt;/span&gt;
venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\a&lt;/span&gt;ctivate.bat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your terminal prompt should now show &lt;code&gt;(venv)&lt;/code&gt; at the start.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Install FastAPI and Uvicorn
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;fastapi uvicorn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;uvicorn&lt;/code&gt; is the ASGI server that runs your FastAPI app.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Freeze your dependencies
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip freeze &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates a &lt;code&gt;requirements.txt&lt;/code&gt; file so anyone can reproduce your environment with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Create your first app
&lt;/h2&gt;

&lt;p&gt;Create a file called &lt;code&gt;main.py&lt;/code&gt; at the root of your project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;fastapi&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;FastAPI&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;FastAPI&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="nd"&gt;@app.get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;read_root&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;message&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello, FastAPI!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Run the dev server
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvicorn main:app &lt;span class="nt"&gt;--reload&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now open your browser and visit:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;http://127.0.0.1:8000&lt;/code&gt; — your root endpoint&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;http://127.0.0.1:8000/docs&lt;/code&gt; — auto-generated Swagger UI&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;FastAPI auto-generates interactive API docs from your code.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. Structure your project (optional but recommended)
&lt;/h2&gt;

&lt;p&gt;For a capstone or real project, a flat &lt;code&gt;main.py&lt;/code&gt; will get messy fast. Here's a minimal structure that scales well:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my-fastapi-project/
├── app/
│   ├── __init__.py
│   ├── main.py
│   └── models/
│       ├── __init__.py
├── requirements.txt
├── .gitignore
└── README.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Update your entry point to point to &lt;code&gt;app.main&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvicorn app.main:app &lt;span class="nt"&gt;--reload&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  8. Add a .gitignore
&lt;/h2&gt;

&lt;p&gt;Before committing anything, create a &lt;code&gt;.gitignore&lt;/code&gt; so you don't accidentally push your virtual environment or secrets:&lt;br&gt;
you can get text from gitignore.io&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Write a README.md
&lt;/h2&gt;

&lt;p&gt;just as you want~&lt;/p&gt;




&lt;h2&gt;
  
  
  10. Initialize Git and push to GitHub
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Create a repo on GitHub&lt;/li&gt;
&lt;li&gt;Connect and push&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is really easy and you can do it.&lt;/p&gt;




&lt;p&gt;Done! Your FastAPI project is now on GitHub.&lt;/p&gt;

</description>
      <category>api</category>
      <category>beginners</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>React Native App Development: Error I solved(2)</title>
      <dc:creator>Hyunjung</dc:creator>
      <pubDate>Tue, 17 Mar 2026 15:09:30 +0000</pubDate>
      <link>https://dev.to/blumenbluu/react-native-app-development-fixing-errors-part-2-4f9l</link>
      <guid>https://dev.to/blumenbluu/react-native-app-development-fixing-errors-part-2-4f9l</guid>
      <description>&lt;h3&gt;
  
  
  1. Install NDK
&lt;/h3&gt;

&lt;p&gt;To implement screen navigation, I installed &lt;code&gt;react-native-screens&lt;/code&gt; along with other related packages. However, I ran into a build error during the process.&lt;/p&gt;

&lt;p&gt;The root cause was that Android requires the NDK (Native Development Kit) to execute native code. Without a properly configured NDK, some native modules fail to build.&lt;/p&gt;

&lt;p&gt;After installing an NDK version compatible with my Gradle setup, the issue with &lt;code&gt;react-native-screens&lt;/code&gt; was successfully resolved.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Edit Environment Variables
&lt;/h3&gt;

&lt;p&gt;While downloading various packages and editing environment variables for my React Native project, I accidentally modified some user variables that were already set.&lt;/p&gt;

&lt;p&gt;After saving the changes, I couldn’t remember the original paths. As a result, I had to manually locate each one and restore them.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Error in MainActivity
&lt;/h3&gt;

&lt;p&gt;While fixing some errors, I learned that I needed to modify &lt;code&gt;MainActivity&lt;/code&gt;. I made the changes and tried to build the project again, but it failed.&lt;/p&gt;

&lt;p&gt;I realized I had made a mistake in the code, so I got help from Google and ChatGPT. After correcting the issue, I was able to implement a &lt;code&gt;MainActivity&lt;/code&gt; that worked properly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;package&lt;/span&gt; &lt;span class="nn"&gt;com.myreact&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;android.os.Bundle&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;com.facebook.react.ReactActivity&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;com.facebook.react.ReactActivityDelegate&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;com.facebook.react.defaults.DefaultReactActivityDelegate&lt;/span&gt;

&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MainActivity&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ReactActivity&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="cm"&gt;/**
     * Returns the name of the main component registered from JavaScript. This is used to schedule
     * rendering of the component.
     */&lt;/span&gt;
    &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;getMainComponentName&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"MyReact"&lt;/span&gt;

    &lt;span class="cm"&gt;/**
     * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
     * which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
     */&lt;/span&gt;
    &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;createReactActivityDelegate&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="nc"&gt;ReactActivityDelegate&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;
        &lt;span class="nc"&gt;DefaultReactActivityDelegate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mainComponentName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fabricEnabled&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onCreate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Bundle&lt;/span&gt;&lt;span class="p"&gt;?)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;onCreate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Installed the Gesture Handler Package (this is not error!)
&lt;/h3&gt;

</description>
      <category>reactnative</category>
      <category>react</category>
    </item>
    <item>
      <title>React Native App Development: Errors I Solved (1)</title>
      <dc:creator>Hyunjung</dc:creator>
      <pubDate>Mon, 16 Mar 2026 14:22:57 +0000</pubDate>
      <link>https://dev.to/blumenbluu/react-native-app-development-errors-i-solved-1-2job</link>
      <guid>https://dev.to/blumenbluu/react-native-app-development-errors-i-solved-1-2job</guid>
      <description>&lt;p&gt;React Native requires installing many packages, so versions are very important. Here are some issues I encountered and how I solved them while developing my app:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Java version must be 17&lt;/strong&gt;&lt;br&gt;
   I made sure my Java version matched the one required by my current project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Reinstall React Native&lt;/strong&gt;&lt;br&gt;
   Sometimes builds would fail during development. After some searching, I found that uninstalling and reinstalling &lt;code&gt;react-native-cli&lt;/code&gt; and &lt;code&gt;react-native&lt;/code&gt; often solves the issue:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   npm uninstall &lt;span class="nt"&gt;-g&lt;/span&gt; react-native-cli
   npm uninstall &lt;span class="nt"&gt;-g&lt;/span&gt; react-native
   npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; react-native-cli
   npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; react-native
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. Fixing &lt;code&gt;react-native-community/cli&lt;/code&gt; errors&lt;/strong&gt;&lt;br&gt;
   I ran into an error related to &lt;code&gt;react-native-community/cli&lt;/code&gt;, so I removed it from my system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Create a new project&lt;/strong&gt;&lt;br&gt;
   After resolving the above issues, I created a new React Native project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   npx react-native init MyReact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;5. Gradle error&lt;/strong&gt;&lt;br&gt;
   Initially, everything seemed fine, but I ran into Gradle errors. Some suggested downgrading Gradle from 8.6 to 8.5, but that didn’t fix it.&lt;br&gt;
   It turned out the problem was with Android Studio. The error mentioned it couldn’t find the Gradle from another project I wasn’t currently working on.&lt;br&gt;
   The solution was to open my current app project in Android Studio and run it once. After that, building with React Native worked perfectly.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>development</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
