<?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: Alexander6</title>
    <description>The latest articles on DEV Community by Alexander6 (@alexander6).</description>
    <link>https://dev.to/alexander6</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%2F1106226%2Ffc07d242-63cb-4a74-bf56-d3c1960d8b8e.jpeg</url>
      <title>DEV Community: Alexander6</title>
      <link>https://dev.to/alexander6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alexander6"/>
    <language>en</language>
    <item>
      <title>The purpose of Edge functions?</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Mon, 12 Aug 2024 13:24:34 +0000</pubDate>
      <link>https://dev.to/alexander6/the-purpose-of-edge-functions-hkg</link>
      <guid>https://dev.to/alexander6/the-purpose-of-edge-functions-hkg</guid>
      <description>&lt;p&gt;Holy shit, I can't obersever  table changes using supabase's  edge functions. It means I have to launch a service by myself, so what is the purpose of edge functions? #supabase&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Create an App with EXPO (1)</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Thu, 13 Jun 2024 23:43:42 +0000</pubDate>
      <link>https://dev.to/alexander6/create-an-app-with-expo-1-28g9</link>
      <guid>https://dev.to/alexander6/create-an-app-with-expo-1-28g9</guid>
      <description>&lt;p&gt;Hi，guys，after finishing my fullstack project with Nest.j/Typeorm/Mysql/Aws/Vue3, I am going to start a new application with React Native. what is this app for? I don't know for now. the first function that comes to my mind is that it should support chatting and posting.&lt;/p&gt;

&lt;h3&gt;
  
  
  So let't start it.
&lt;/h3&gt;

&lt;p&gt;As my past experience, we'd better do anything from zero unless for a  studying purpose. After searching for many starter template, I decided to use &lt;a href="https://starter.obytes.com/overview/"&gt;this starter bio&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;As for the node package manager,I very recommend using &lt;code&gt;pnpm&lt;/code&gt; instead of &lt;code&gt;npm&lt;/code&gt; or &lt;code&gt;yarn&lt;/code&gt;.for the reason, you can just google it.&lt;strong&gt;&lt;em&gt;but&lt;/em&gt;&lt;/strong&gt; pay attention here, sometimes the project maybe failed when running 'pnpm install' or 'pnpm dev'. in that times you should fix errors accourding to console outputs, and you have to change back to &lt;code&gt;npm&lt;/code&gt; to resolve that problem. it's confusing but work.&lt;/p&gt;

&lt;p&gt;And there are also many unexpected problems when using biotemplate like &lt;a href="https://starter.obytes.com/overview/"&gt;obytes&lt;/a&gt;, because it has combined so many libs, so you may have to deal with dependencies installing error. &lt;/p&gt;

&lt;p&gt;Here is one error I met when running &lt;code&gt;pnpm ios&lt;/code&gt;, it will exec &lt;code&gt;pod install&lt;/code&gt; ,and the MMKV used by react-native-mmkv blocked my way.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkjtmzao56gd2wveu2i6m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkjtmzao56gd2wveu2i6m.png" alt="Image description" width="800" height="1020"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;error: 11397 bytes of body are still expected&lt;br&gt;
fetch-pack: unexpected disconnect while reading sideband packet&lt;br&gt;
fatal: early EOF&lt;/code&gt; this error is often when installing a javascript dependency whose link is in this pattern: "&lt;a href="https://github.com/xxxx/dependency.git"&gt;https://github.com/xxxx/dependency.git&lt;/a&gt;". &lt;/p&gt;

&lt;p&gt;ChatGPT told me that I can change the protocol from &lt;code&gt;https&lt;/code&gt; to &lt;code&gt;git&lt;/code&gt;.But this MMKV lib is called by &lt;code&gt;react-native-mmkv&lt;/code&gt;, I can't just change it's link. Here is the solution &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;first ,change the global git config by running this command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git config --global url."git@github.com:".insteadOf "https://github.com/"&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;check the command runs successfully,and the URL rewrite rule has been added correctly:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git config --global --get-regexp url&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;you will see an output similar to this&lt;/p&gt;

&lt;p&gt;&lt;code&gt;url.git@github.com:.insteadof https://github.com/&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  After doing this, I tried &lt;code&gt;pnpm ios&lt;/code&gt;, wating for the installation
&lt;/h3&gt;

&lt;p&gt;Fine， I stuck here for 1 hour&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkbqrnta7dop3513mc4fx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkbqrnta7dop3513mc4fx.png" alt="Image description" width="800" height="1375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;it looks like a problem of my network, after changing a WIFI, the installation finished and successfully run in iOS simulator.&lt;/p&gt;

&lt;p&gt;Now, we have some basic features&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Login Page&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feacas7np4oor3ffrfxd1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feacas7np4oor3ffrfxd1.png" alt="login page" width="600" height="1022"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;post list &amp;amp; tabs&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj6805rq8qpnb2bdf6cyf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj6805rq8qpnb2bdf6cyf.png" alt="post list &amp;amp; tabs" width="608" height="1076"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;issue post&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4956l9hbbpe3yd3wycin.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4956l9hbbpe3yd3wycin.png" alt="issue post" width="614" height="1074"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;we can modify the interface and add new tabs according our specific needs.&lt;/p&gt;

&lt;p&gt;I will summarize main features about the application.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Rename all files and directories in the current folder</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Mon, 20 May 2024 01:24:09 +0000</pubDate>
      <link>https://dev.to/alexander6/rename-all-files-and-directories-in-the-current-folder-1l41</link>
      <guid>https://dev.to/alexander6/rename-all-files-and-directories-in-the-current-folder-1l41</guid>
      <description>&lt;p&gt;This command is created by ChatGPT, it will recursively go through all files and directories in the current directory, change every "Dicexxxx" into "Ringxxxxx"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash

# Recursive function to handle files and directories
rename_files_and_directories() {
  local dir=$1
  cd "$dir"

  # First handle files
  for file in *; do
    if [[ -f $file &amp;amp;&amp;amp; $file == *Dice* ]]; then
      mv "$file" "${file//Dice/Ring}"
    fi
  done

  # Then handle subdirectories
  for subdir in *; do
    if [[ -d $subdir &amp;amp;&amp;amp; $subdir == *Dice* ]]; then
      mv "$subdir" "${subdir//Dice/Ring}"
      subdir="${subdir//Dice/Ring}"
    fi
    if [[ -d $subdir ]]; then
      rename_files_and_directories "$subdir"
    fi
  done
  cd ..
}

# Call the recursive function starting from the current directory
rename_files_and_directories "$(pwd)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>A confusing problem of the Mysql timestamp</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Wed, 15 Nov 2023 01:29:10 +0000</pubDate>
      <link>https://dev.to/alexander6/a-confusing-problem-of-the-mysql-timestamp-301i</link>
      <guid>https://dev.to/alexander6/a-confusing-problem-of-the-mysql-timestamp-301i</guid>
      <description>&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;when I synced data using Navicat from local to RDS, I found the SQL query results with &lt;code&gt;order by create_time DESC&lt;/code&gt; was &lt;strong&gt;incorrect&lt;/strong&gt;.&lt;br&gt;
I guessed that may be relative to the SQL client's time_zone setup, cause I have met such a problem before when I work as a Frontend Engineer. &lt;br&gt;
So I decided to dig into this issue and get the proper resolution.&lt;/p&gt;
&lt;h2&gt;
  
  
  Firstly
&lt;/h2&gt;

&lt;p&gt;, look at the time_zone setup of your Mysql client using this command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;show variables like '%time_zone%'.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  result of my local Mysql client
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Az0QG6h2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/en4mvgup4kbxzu1qhmru.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Az0QG6h2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/en4mvgup4kbxzu1qhmru.png" alt="Image description" width="388" height="142"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  result of RDS
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5_6Vu2q6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s6pj8hjrlbczrdx8p05t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5_6Vu2q6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s6pj8hjrlbczrdx8p05t.png" alt="Image description" width="418" height="146"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The time_zone setup is absolutely different!. Let's make a query by &lt;code&gt;SELECT create_time FROM order_deposits WHERE id=37;&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  result of local
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--V0yDvKHg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4gnmy540k4xbwgf5jsym.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--V0yDvKHg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4gnmy540k4xbwgf5jsym.png" alt="Image description" width="726" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  result of RDS
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VdbThrKT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jd9cq69w34tk5k96ewmv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VdbThrKT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jd9cq69w34tk5k96ewmv.png" alt="Image description" width="688" height="466"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The result of this query is absolutely the same.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Problems while setting up Nginx on AWS EC2</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Wed, 18 Oct 2023 02:05:28 +0000</pubDate>
      <link>https://dev.to/alexander6/problems-while-setting-up-nginx-on-aws-ec2-2e22</link>
      <guid>https://dev.to/alexander6/problems-while-setting-up-nginx-on-aws-ec2-2e22</guid>
      <description>&lt;h2&gt;
  
  
  &lt;code&gt;Error: listen EACCES: permission denied 0.0.0.0:81&lt;/code&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;error img: 
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GcfkIbSb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/crkqinwcreafomdnjv8z.png" alt="Image description" width="718" height="249"&gt;
&lt;/li&gt;
&lt;li&gt;after a search, I found the reason is that,&lt;a href="https://stackoverflow.com/questions/51020596/amazon-ec2-error-listen-eacces-0-0-0-080"&gt; "EC2 doesn't allow users to run a process that listens on low ports (below 1024) without root privileges."&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Nginx's user must be the one that you login via SSH, normally it would be &lt;code&gt;ec2-user&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jrvYzLVC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22t3zel4ej03xnqkb5xd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jrvYzLVC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22t3zel4ej03xnqkb5xd.png" alt="Image description" width="504" height="122"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>(help)Deploy Nest.js Application to Vercel</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Sat, 30 Sep 2023 11:27:23 +0000</pubDate>
      <link>https://dev.to/alexander6/helpdeploy-nestjs-application-to-vercel-4j91</link>
      <guid>https://dev.to/alexander6/helpdeploy-nestjs-application-to-vercel-4j91</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Such a puzzle trip. &lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you are also trapped in the issue that deploying Nest.js App to Vercel, you can just refer to this &lt;a href="https://www.youtube.com/watch?v=YvwSgm22VGE"&gt;Video&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I have searched and tried many other articles for a whole day, and all of them didn't help a little, and I also looked through Vercel's documents 2-3 times, I am still in the puzzle now.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Even if I successfully deployed it, &lt;strong&gt;I also don't know what this configuration means&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--idS_V7_d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g1a6fjsvpt7i3pax2sl1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--idS_V7_d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g1a6fjsvpt7i3pax2sl1.png" alt="Image description" width="800" height="564"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;is anyone know how can I get a deep understanding of how Vercel works?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;why putting &lt;code&gt;main.ts&lt;/code&gt; file here, does it mean that in the production, it directly executes the ts file instead of running the compiled main.js?

&lt;ul&gt;
&lt;li&gt;if the answer is yes, it seems we don't need to run &lt;code&gt;nest build&lt;/code&gt; in Vercel.&lt;/li&gt;
&lt;li&gt;if the answer is no, what Vercel did to &lt;code&gt;main.ts&lt;/code&gt; then?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>javascript</category>
      <category>nestjs</category>
      <category>vercel</category>
    </item>
    <item>
      <title>Set up Prod and Dev environments of Database</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Thu, 28 Sep 2023 12:53:23 +0000</pubDate>
      <link>https://dev.to/alexander6/set-up-prod-and-dev-environments-of-database-53ca</link>
      <guid>https://dev.to/alexander6/set-up-prod-and-dev-environments-of-database-53ca</guid>
      <description>&lt;ul&gt;
&lt;li&gt;These days I have finished the primary logic of the backend and run it successfully. I launched a local Postgres instance via Docker, and the Nest project writes and reads data from it using Prisma. all things run smoothly locally.&lt;/li&gt;
&lt;li&gt;But about 2 days ago, I tried to deploy the whole project. As for the database, I chose ** Supabase **. And the Nest project, I want to deploy it on Vercel. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How to sync my database migration to Supabase ?&lt;/strong&gt; &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What is the command like?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  These issues are worth documenting
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xdDOrzdA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t4ydhpx5q3zoewy1rdnh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xdDOrzdA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t4ydhpx5q3zoewy1rdnh.png" alt="Image description" width="800" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>3rd day: set up Axios &amp; React-Query</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Mon, 18 Sep 2023 12:14:15 +0000</pubDate>
      <link>https://dev.to/alexander6/3rd-day-set-up-axios-react-query-1057</link>
      <guid>https://dev.to/alexander6/3rd-day-set-up-axios-react-query-1057</guid>
      <description>&lt;h3&gt;
  
  
  Today
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;have created a record into database through Axios and React-Query. 

&lt;ul&gt;
&lt;li&gt;Because I have already been using Axios for many years, there are no challenges to integrating it. &lt;/li&gt;
&lt;li&gt;The document of React-Query is very &lt;strong&gt;&lt;em&gt;clear and practical&lt;/em&gt;&lt;/strong&gt;, so it is also very easy to set up it.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Problems
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;no technical problems today, it's time to focus on the functionalities.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What to do next
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Collect all opened tabs, and save them to the database&lt;/li&gt;
&lt;li&gt;Create a SPA project to show data collected by the extension. &lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>2nd day of my development</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Sun, 17 Sep 2023 12:48:45 +0000</pubDate>
      <link>https://dev.to/alexander6/2nd-day-of-my-development-2mf0</link>
      <guid>https://dev.to/alexander6/2nd-day-of-my-development-2mf0</guid>
      <description>&lt;h3&gt;
  
  
  Today:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;just duplicated a previous project using Nest&amp;amp;Prisma, did some modifications, and set up a local database through Docker
, successfully launched the first API to create a record.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Problems:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;before, I had used Sqlite because it is easy to learn and use, but in this project, I think it's better to use PostgreSQL, as I am using Prisma, so for many situations, I can just use functions provided by Prisma, instead of learning new acknowledgment of PostgreSQL now.&lt;/li&gt;
&lt;li&gt;there was also another thought that came up to me. if you are going to write a simple API such as creating a record, you have to code in controller, service, and dto. I heard that Ruby on Rails is more efficient, but I don't know if it has code recommendations and official plugins for PostgreSQL&lt;/li&gt;
&lt;li&gt;for now, I think it's better to use Nest.js, I can improve my skills in the backend and database through this project soon.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Tasks for tomorrow:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;setup Axios and React-Query in my frontend project&lt;/li&gt;
&lt;li&gt;post and fetch data from the backend&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>The first day of my solo project</title>
      <dc:creator>Alexander6</dc:creator>
      <pubDate>Sat, 16 Sep 2023 13:37:02 +0000</pubDate>
      <link>https://dev.to/alexander6/the-first-day-of-my-solo-project-22a7</link>
      <guid>https://dev.to/alexander6/the-first-day-of-my-solo-project-22a7</guid>
      <description>&lt;p&gt;I am going to create a Chrome extension where people can share their tabs and comments with the same link in real time. &lt;br&gt;
Here is the first-day record of my development.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sep 16:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Completed:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;completed basic setup of the whole project, intergrated TailwindCSS and ChakraUI&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Problems:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;as ts-loader can't compile a class with private keyword, so I change the ts-loader into babel-loader, and used babel-loader's plugin to compile ts file&lt;/li&gt;
&lt;li&gt;webpack is so slow, because I have been using vite for a long time, maybe someday I should change webpack5 to vite&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  upcoming tasks:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;implement the function of "recommend my tabs", especially the server part,&lt;/li&gt;
&lt;li&gt;the server part consists of SQL and backend logic&lt;/li&gt;
&lt;li&gt;and the deployment flow of the backend service&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>extensions</category>
      <category>javascript</category>
      <category>react</category>
    </item>
  </channel>
</rss>
