<?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: Tony Zheng</title>
    <description>The latest articles on DEV Community by Tony Zheng (@letsworktogether).</description>
    <link>https://dev.to/letsworktogether</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%2F554883%2Ffb3ceb1a-06d2-4997-a99d-f867ea72ea2c.jpg</url>
      <title>DEV Community: Tony Zheng</title>
      <link>https://dev.to/letsworktogether</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/letsworktogether"/>
    <language>en</language>
    <item>
      <title>RDS while connection error: no pg_hba.conf entry for host</title>
      <dc:creator>Tony Zheng</dc:creator>
      <pubDate>Tue, 30 Apr 2024 19:24:43 +0000</pubDate>
      <link>https://dev.to/letsworktogether/rds-while-connection-error-no-pghbaconf-entry-for-host-36l8</link>
      <guid>https://dev.to/letsworktogether/rds-while-connection-error-no-pghbaconf-entry-for-host-36l8</guid>
      <description>&lt;h2&gt;
  
  
  Create a New Parameter Group:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open the Amazon RDS console at &lt;a href="https://console.aws.amazon.com/rds/"&gt;https://console.aws.amazon.com/rds/&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;In the navigation pane, choose "Parameter groups".&lt;/li&gt;
&lt;li&gt;Click "Create parameter group" at the top right of the page.&lt;/li&gt;
&lt;li&gt;In the "Parameter group family" dropdown, select "postgres15".&lt;/li&gt;
&lt;li&gt;In the "Group name" field, enter a name for the new parameter group.&lt;/li&gt;
&lt;li&gt;In the "Description" field, enter a description for the new parameter group.&lt;/li&gt;
&lt;li&gt;Click "Create" at the bottom right of the page.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Modify the rds.force_ssl Parameter of your new Parameter Group:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the list of parameter groups, click on the name of the new parameter group you just created.&lt;/li&gt;
&lt;li&gt;In the "Filter parameters" box, type rds.force_ssl and press Enter.&lt;/li&gt;
&lt;li&gt;You should see the rds.force_ssl parameter. Click "Edit parameters".&lt;/li&gt;
&lt;li&gt;Change the value of rds.force_ssl from 1 to 0, then click "Save changes".&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Associate Your RDS Instance with the New Parameter Group:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the navigation pane, choose "Databases".&lt;/li&gt;
&lt;li&gt;Click on the name of your RDS instance.&lt;/li&gt;
&lt;li&gt;Click "Modify" at the top right of the page.&lt;/li&gt;
&lt;li&gt;In the "Database options" section, find the "DB parameter group" setting and select the new parameter group you created from the dropdown menu.&lt;/li&gt;
&lt;li&gt;Scroll down and click "Continue".&lt;/li&gt;
&lt;li&gt;Review the summary of modifications and click "Modify DB Instance".&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Reboote Your RDS Instance:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the navigation pane, choose "Databases".&lt;/li&gt;
&lt;li&gt;Click on the name of your RDS instance.&lt;/li&gt;
&lt;li&gt;Click "Actions" at the top right of the page, then "Reboot".&lt;/li&gt;
&lt;li&gt;Confirm that you want to reboot the instance.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;By following these steps, you should be able to successfully modify the rds.force_ssl parameter in your Amazon RDS instance. And hopefully the connection issue would be resolved.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Add Github Eslint Checker Action</title>
      <dc:creator>Tony Zheng</dc:creator>
      <pubDate>Wed, 18 Jan 2023 15:45:19 +0000</pubDate>
      <link>https://dev.to/letsworktogether/add-github-eslint-checker-action-240e</link>
      <guid>https://dev.to/letsworktogether/add-github-eslint-checker-action-240e</guid>
      <description>&lt;p&gt;Add &lt;code&gt;.github/workflows/eslint.yml&lt;/code&gt; file&lt;/p&gt;

&lt;p&gt;Add this content&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name: Lint
on:
  push:
    branches:
      - '*'
  pull_request:
    branches:
      - master
  workflow_dispatch:
jobs:
  ESlinter_JS:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repository
        uses: actions/checkout@master
      - uses: actions/setup-node@v3
        with:
          node-version: '16.14.1'
      - name: Install Dependencies
        run: npm install

      - name: Run ESLint
        run: npm run eslint
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>github</category>
    </item>
    <item>
      <title>Add Eslint, Prettier, Husky, Lint-staged to Vue Project</title>
      <dc:creator>Tony Zheng</dc:creator>
      <pubDate>Tue, 17 Jan 2023 15:00:39 +0000</pubDate>
      <link>https://dev.to/letsworktogether/add-eslint-prettier-husky-lint-staged-to-vue-project-44b6</link>
      <guid>https://dev.to/letsworktogether/add-eslint-prettier-husky-lint-staged-to-vue-project-44b6</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. Install packages&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install husky lint-staged eslint prettier --save-dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. eslint configuration&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm init @eslint/config
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. lint-staged Configuration&lt;/strong&gt;&lt;br&gt;
Add this to package.json&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  ...
  "lint-staged": {
    "src/**/*.{js,vue,html,css}": "prettier --write",
    "src/**/*.{js,vue}": "eslint --fix"
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;4. husky configuration&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx husky-init &amp;amp;&amp;amp; npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Update &lt;code&gt;.husky/pre-commit&lt;/code&gt; file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>mcp</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
