<?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 Austin7L on Medium]]></title>
        <description><![CDATA[Stories by Austin7L on Medium]]></description>
        <link>https://medium.com/@austin7l?source=rss-5fe1db0ed87d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*55Zmg7pkOvXLKKgyBjrgBg.jpeg</url>
            <title>Stories by Austin7L on Medium</title>
            <link>https://medium.com/@austin7l?source=rss-5fe1db0ed87d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:34:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@austin7l/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[How to Use NVM Install and Switch Specific Node.js Versions on MacOS]]></title>
            <link>https://blog.stackademic.com/how-to-use-nvm-install-and-switch-specific-node-js-version-on-macos-909169fd7dcb?source=rss-5fe1db0ed87d------2</link>
            <guid isPermaLink="false">https://medium.com/p/909169fd7dcb</guid>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[nvm]]></category>
            <dc:creator><![CDATA[Austin7L]]></dc:creator>
            <pubDate>Thu, 25 Jan 2024 07:27:17 GMT</pubDate>
            <atom:updated>2024-01-29T05:29:59.452Z</atom:updated>
            <content:encoded><![CDATA[<h4>This article talks about using nvm to install and switch specific node versions on MacOS.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jw9V__6jYhm2amP74D_0lw.png" /></figure><h3>Introduce: What is NVM</h3><p>The NVM full name is Node Version Manager, and it is for managing node versions, you can use this tool to install specific versions of Node.js or switch node versions anytime.</p><h3>Step 1: Install NVM</h3><p>NVM advice users to use cURL to install or upgrade NVM.</p><p>curl -o- <a href="https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh">https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh</a> | bash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjUVET2dLhSAN7ShsVhn3A.png" /></figure><h3>Step 2: Setting NVM environment setting</h3><p>Default cURL install NVM will set ~/bashrc file, but the default MacOS is using zsh in the terminal, so we are going to use vi ~/.zshrc to modify the .zshrc file to use the code setting below.</p><pre>export NVM_DIR=&quot;$HOME/.nvm&quot;<br>[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh&quot;  # This loads nvm<br>[ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \. &quot;$NVM_DIR/bash_completion&quot;  # This loads nvm bash_completion</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0dSLXtv6yRUSqLhPI4PbA.png" /></figure><p>Open a new terminal and use nvm --veriosn to check can get the NVM version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*DHATAXDgl3A75xFoMQoe_A.png" /></figure><p>Use nvm ls-remote will show up which Node.js version you can install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*R5n7K-ytXd_5luWZEgHAdw.png" /></figure><p>Or you can use nvm ls-remote &lt;version&gt; for showing specific Node.js versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*UJobLgN0tOl6WeonNHp8iQ.png" /></figure><h3>Step 3: Install Node.js</h3><p>Using nvm install &lt;version&gt; to install the specific Node.js version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*WlI8wjkg7FPpn5Z6BxWFKA.png" /></figure><p>Using nvm ls the NVM current setting will show up, and you can see the default Node.js version is v18.19.0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*gz8UFOC3esrksIjiToZc2Q.png" /></figure><p>If you have several Node.js versions, you can use nvm use &lt;version&gt; or nvm use &lt;alias name&gt; to switch the version, in the current screen shot Node.js version is v18.19.0 and the alias name is default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*mBoqgdKZjSMDQcrG-tASDA.png" /></figure><p>If I want to use the v14.21.3 Node.js version and I use nvm use v14.21.3 to switch the node version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*Nk19rOH7LIgmU_6POY07Wg.png" /></figure><p>You can also set an alias name for specific versions and use nvm use &lt;alias name&gt; &lt;version&gt; to switch the version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*HTj9m1HErG4sB_2r49FUFQ.png" /></figure><h3>In Common Use NVM syntax :</h3><pre>nvm --version -&gt; check nvm version<br>nvm ls-remote -&gt; show node can install version list<br>nvm ls-tremote &lt;version&gt; -&gt; show node specific version list<br>nvm install &lt;version&gt; -&gt; install node specific node version<br>nvm ls -&gt; show up currently installed version<br>nvm use &lt;version&gt; -&gt; switch node version<br>nvm alias default &lt;version&gt; -&gt; set default node verison<br>nvm alias &lt;alias name&gt; &lt;version&gt; -&gt; set specific alias name for specific version<br>nvm -h -&gt; show up nvm help and can use commands</pre><h3>Uninstall NVM</h3><h4>cURL</h4><ol><li><strong>Delete related directories: <br></strong>rm -rf ~/.nvm <br>rm -rf ~/.npm<br>rm -rf ~/bower</li><li><strong>Delete ~/.zshrc nvm settings:<br></strong>vim ~/.zshrc<br>and delete the below syntax then save<br>export NVM_DIR=”$HOME/.nvm”<br>[ -s “$NVM_DIR/nvm.sh” ] &amp;&amp; \. “$NVM_DIR/nvm.sh” # This loads nvm<br>[ -s “$NVM_DIR/bash_completion” ] &amp;&amp; \. “$NVM_DIR/bash_completion” # This loads nvm bash</li><li><strong>Check uninstall successfully<br></strong>use nvm, node and npm and it will show not found to check it.</li></ol><h4>Homebrew</h4><ol><li><strong>Uninstall node</strong> :<br>use brew uninstall node to uninstall.</li><li><strong>Delete default Homebrew install node settings :<br></strong>rm -rf /usr/local/bin/node <br>rm -rf /usr/local/bin/npm <br>rm -rf /usr/local/bin/node_modules</li><li><strong>Check uninstall successfully : <br></strong>which node</li></ol><h3>References:</h3><ul><li><a href="https://medium.com/@toumasaya/node-js-%E7%92%B0%E5%A2%83%E8%A8%AD%E5%AE%9A-for-mac-a2628836feaf">Node.js 環境設定-for mac</a></li><li><a href="https://github.com/nvm-sh/nvm">GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions</a></li><li><a href="https://yimincai.net/2020/install-and-uninstall-nvm-on-macos/">macOS安裝與移除NVM</a></li></ul><h3>Stackademic</h3><p>Thank you for reading until the end. Before you go:</p><ul><li>Please consider <strong>clapping</strong> and <strong>following</strong> the writer! 👏</li><li>Follow us <a href="https://twitter.com/stackademichq"><strong>X</strong></a><strong> | </strong><a href="https://www.linkedin.com/company/stackademic"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://www.youtube.com/c/stackademic"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a></li><li>Visit our other platforms: <a href="https://plainenglish.io/"><strong>In Plain English</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=909169fd7dcb" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/how-to-use-nvm-install-and-switch-specific-node-js-version-on-macos-909169fd7dcb">How to Use NVM Install and Switch Specific Node.js Versions on MacOS</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Connect Next.js React Project with Firebase Realtime Database]]></title>
            <link>https://blog.stackademic.com/how-to-connect-nextjs-react-project-with-firebase-realtime-database-467af8063949?source=rss-5fe1db0ed87d------2</link>
            <guid isPermaLink="false">https://medium.com/p/467af8063949</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[firebaserealtimedatabase]]></category>
            <category><![CDATA[realtime-database]]></category>
            <dc:creator><![CDATA[Austin7L]]></dc:creator>
            <pubDate>Tue, 16 Jan 2024 06:29:14 GMT</pubDate>
            <atom:updated>2024-01-18T01:24:58.999Z</atom:updated>
            <content:encoded><![CDATA[<h4>This Story is telling about how to connect your existing React Project to Firebase Realtime Database</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WeAYzha32ZAYZAxw8XuLww.jpeg" /></figure><h3>Step 1 : Log in to Firebase and Go to console</h3><p>Go to the <a href="https://firebase.google.com/"><strong>Firebase</strong></a> page and log in to your Google account then click “ Go to console “ .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hrtMU3uFYfDdvhBv4Q4wHQ.png" /></figure><h3>Step 2 : Go to your firebase project</h3><p>At the console make sure you already created a Firebase Project.<br>If you haven’t created a Firebase Project yet, you can check the story below and follow <strong>Step 2 </strong>of Story to create it.<br><a href="https://medium.com/@austin7l/how-to-deploy-a-next-js-react-app-to-firebase-hosting-37d3e9563179"><em>[ </em><strong><em>Story Link </em></strong><em>]</em></a></p><p>I select my existing project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4k4pZdFIBJv5VtjfUm0coA.png" /></figure><h3>Step 3 : Create a Realtime Database</h3><p>In your project console panel choose “ All products “ , then you can see several products on Firebase that can be used in different situations, and now we choose “ Realtime Database “ .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tQgG1WrR-v1YsRTd-ntQbQ.png" /></figure><p>In the Realtime Database panel click Create Database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIcGTEVNpZdJlaM38_RBmw.png" /></figure><h3>Step 4 : Set up database</h3><p>Choosing your location is the setting where your Realtime Database data will be stored, and I choose Singapore on my side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKncnGJpG8iQkq7P9YMFaQ.png" /></figure><p>The security rules will affect that when your project connects to Firebase Realtime Database Permissions, default setting rules read and write permissions are denied, but you can modify them later, so I choose the default setting here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rM9FAooShsPWoh5SGdwQQ.png" /></figure><p>Now you have your Realtime Datebase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-VvG6RpFqat1YUhKxyKzBQ.png" /></figure><h3>Step 5 : Create a Web App for your Firebase Project</h3><p>In the Firebase console click “ Project settings “.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6WzbflqWUvdlFqTe3XRukQ.png" /></figure><p>Scroll down to click the web icon and click it to register the app.<br>Before you create it, please make sure you already have an existing NextJs React App Project or you can use npx create-next-app &lt;your-project-name&gt; to create it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IlFlvx2vL9QouAi86HXBCQ.png" /></figure><p>Insert your App nickname, and I already created the Firebase Hosting, it’s not a big deal to set up it now, but if you are interested can check the story link below.<br><a href="https://medium.com/p/37d3e9563179"><strong>[ Story Link ]</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZokWXvd_cLf59-gBlek4Q.png" /></figure><p>Run npm install firebase on your terminal, then copy the Config part to create a firebaseConfig.tsx file in your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IwvdSw8_CtGFKlYVpdJ4EA.png" /></figure><p>Create a firebaseConfig.tsx and paste the initialized Firebase Config.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OAF5qyuV_lGsSVBr6bg8Kw.png" /></figure><p>We need to add more lines to communicate with the Database.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f198d6a17274c419e86b960199970c79/href">https://medium.com/media/f198d6a17274c419e86b960199970c79/href</a></iframe><h3>Step 6 : Modify Database Rules</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eoYvEqm34Jk_YNf2pqqsbA.png" /></figure><p>After you publish your Rules you will see the red notice, and it is because everyone can read and write your Realtime Database if they have your Realtime Database address and Config.</p><p>There are a few ways to set more security rules for following the documentation, I just set to true here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4WAmp7fu8bLJ2wpqc1IFvg.png" /></figure><h4><strong>Congratulations :</strong></h4><p>You successfully send the data to the Firebase Realtime Database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hl0pSrVskVVkITg7Cv9Uow@2x.gif" /></figure><p>Here are my page.tsx codes.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4f15f144fdd6cdcd2007d2082704c950/href">https://medium.com/media/4f15f144fdd6cdcd2007d2082704c950/href</a></iframe><h3>References :</h3><ul><li>Firebase Realtime Database Web</li></ul><p><a href="https://firebase.google.com/docs/database/web/start">Installation &amp; Setup in JavaScript | Firebase Realtime Database</a></p><ul><li>Firebase Realtime Database Security Rules</li></ul><p><a href="https://firebase.google.com/docs/database/security">Understand Firebase Realtime Database Security Rules</a></p><ul><li>Tailwind CSS</li></ul><p><a href="https://tailwindui.com/components/application-ui/forms/form-layouts">Form Layouts - Official Tailwind CSS UI Components</a></p><h3>Stackademic</h3><p>Thank you for reading until the end. Before you go:</p><ul><li>Please consider <strong>clapping</strong> and <strong>following</strong> the writer! 👏</li><li>Follow us <a href="https://twitter.com/stackademichq"><strong>X</strong></a><strong> | </strong><a href="https://www.linkedin.com/company/stackademic"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://www.youtube.com/c/stackademic"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a></li><li>Visit our other platforms: <a href="https://plainenglish.io/"><strong>In Plain English</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=467af8063949" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/how-to-connect-nextjs-react-project-with-firebase-realtime-database-467af8063949">How to Connect Next.js React Project with Firebase Realtime Database</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy a Next.js React App to Firebase Hosting ?]]></title>
            <link>https://blog.stackademic.com/how-to-deploy-a-next-js-react-app-to-firebase-hosting-37d3e9563179?source=rss-5fe1db0ed87d------2</link>
            <guid isPermaLink="false">https://medium.com/p/37d3e9563179</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[firebasehosting]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Austin7L]]></dc:creator>
            <pubDate>Wed, 10 Jan 2024 03:42:02 GMT</pubDate>
            <atom:updated>2024-01-17T01:12:03.748Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Deploy a Next.js React App to Firebase Hosting ?</h3><h4>About Deploy Next.js React App to Firebase Hosting</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jvrVgtnLQkVgnLy6Gx20Yg.jpeg" /></figure><h3>Step 1 : Create Next.js React App</h3><p>First, Before you Deploy Firebase Hosting, please make sure you already have an existing React App Project or you can use the syntax below to create a Next.js React App.</p><p>npx create-next-app my-firebase-hosting-demo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dthiigaBVD9ezkVybHV6FQ.png" /></figure><p>Use your Google account to log in to the <a href="https://firebase.google.com/">Firebase</a> and follow Step 2 to continue.</p><h3>Step 2 : Create Firebase Project</h3><p>First, you need to create a Google account then click Go To Console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hrtMU3uFYfDdvhBv4Q4wHQ.png" /></figure><p>Second, click “ Add project ” to create a new project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lmJdGp0QFBR7-T2D_GWPw.png" /></figure><p>Third, complete the create a project step, and input your project name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XGWjmQGqXZcmQOakqLra_w.png" /></figure><p>Fourth, my project doesn’t need Google Analytics, disable google analytics for this project then the step will become Step 2 of 2, and click Create Project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*073XMHVWHwdJuFL7qqVp9w.png" /></figure><p>Now you already created a Firebase project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*C0W0ahznt8GaAQu6VDGVUw.png" /></figure><h3>Step 3 : Setting Firebase Hosting</h3><p>In your project console panel choose All products then you can see several products on Firebase that can be used in different situations, and now we choose Hosting for Deploy web apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cv-YXGd7djqvVQGSSMXDkA.png" /></figure><p>In the Hosting panel click “ Get started “.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*izJUPuLyc-YtthL5nohHQQ.png" /></figure><h3>Step 4 : Install Firebase and follow setup</h3><p>Installing Firebase Hosting command line tool</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iIydsx_qkee-ufprkZg9MQ.png" /></figure><p>npm install -g firebase-tools</p><p>After you install the Firebase CLI you run “ <strong>firebase</strong> “ and show “ <strong>bash: firebase: command not found</strong> “, run the syntax below and it will be fixed.</p><p>alias firebase=&quot;`npm config get prefix`/bin/firebase&quot;</p><p>Following Step 2 to initialize your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTZVGBII5SfPovyw2531oQ.png" /></figure><p>firebase login</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vM1dckYrRjUDXptb5SbqDw.png" /></figure><p>firebase init</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hS-PvCKxdyLw_kxGY3bTWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VZCvRGz7MOFO86Edvc_LUA.png" /></figure><h3>Step 5 : Deploy React App to Firebase Hosting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZMEJYF1RydgVEkYuxQ6Rog.png" /></figure><p>Use firebase deploy to deploy your project on Firebase Hosting, and you can see Deploy complete! Click the Hosting URL to visit your website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NXE1qCsOUyRtHdG9nXJAVw.png" /></figure><h3><strong>Congratulations :</strong></h3><p>You already deployed your website on Google Firebase Hosting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oMAjlXPIz_ccjf0bnYpugA.png" /></figure><h3>Reference :</h3><h4>StackOverflow</h4><ul><li><a href="https://stackoverflow.com/questions/23645220/firebase-tools-bash-firebase-command-not-found">firebase-tools &quot;-bash: firebase: command not found&quot;</a></li><li><a href="https://stackoverflow.com/questions/62824043/is-cloud-functions-in-firebase-free-or-not-cloud-functions-deployment-requires">Is Cloud Functions in Firebase Free or Not (Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan)</a></li></ul><h4>Firebase</h4><p><a href="https://firebase.google.com/docs/hosting/quickstart">Get started with Firebase Hosting</a></p><h3>Stackademic</h3><p>Thank you for reading until the end. Before you go:</p><ul><li>Please consider <strong>clapping</strong> and <strong>following</strong> the writer! 👏</li><li>Follow us <a href="https://twitter.com/stackademichq"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/stackademic"><strong>LinkedIn</strong></a><strong> |</strong> <a href="https://www.youtube.com/c/stackademic"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a></li><li>Visit our other platforms: <a href="https://plainenglish.io/"><strong>In Plain English</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37d3e9563179" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/how-to-deploy-a-next-js-react-app-to-firebase-hosting-37d3e9563179">How to Deploy a Next.js React App to Firebase Hosting ?</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build A Static Web By React With NextJs]]></title>
            <link>https://austin7l.medium.com/build-a-static-web-by-react-with-nextjs-fed011c51df8?source=rss-5fe1db0ed87d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fed011c51df8</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[bootstrap]]></category>
            <dc:creator><![CDATA[Austin7L]]></dc:creator>
            <pubDate>Thu, 07 Dec 2023 07:17:36 GMT</pubDate>
            <atom:updated>2023-12-07T14:16:00.895Z</atom:updated>
            <content:encoded><![CDATA[<h4>Create a static website to collect eyelash customer information</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FcH8NoVfuwBsitHXR0RNkw.png" /><figcaption>Using NextJs to build the project</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*w_3Y9SBHuUKxBWhRexp6uw.png" /><figcaption>使用npm run dev啟動伺服器</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rO4N7KMGr0KBL9JG05EahQ.png" /><figcaption>網頁開啟後為預設樣板模樣</figcaption></figure><p>為了後續可能使用不同電腦同時開發需求，以及版本管控，此處使用gitHub進行管理，請參考此篇<a href="https://austin7l.medium.com/how-to-create-a-github-repositories-4cc7610d1a51"><em>建置一個新的倉庫</em></a>，建制後接續下方步驟進行管理。</p><p>已建置好自己有倉庫( repository ) 後，我已有程式專案後才建立GitHub repository，因此我要將程式碼與倉庫進行關聯，會使用下圖部份進行。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*llcHA9Z8IuLe3YLNxcivng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aqGNZ_-pg4cDMwCKRCgyAA.png" /><figcaption>開啟 terminal 並確認目前於專案路徑下，並使用 GitHub 指令執行即可</figcaption></figure><p>此時重新整理 GitHub 倉庫頁面可以看到程式碼已成功。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*txZ-yqi44B13WPYt_T6H5g.png" /></figure><p>進入正題開發程式，此處 IDE 使用 Visual Studio Code ( VS Code ) 進行開發，首先可以看到整個專案的進入點是 page.tsx 打算從此處開始修改重新刻一個頁面。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8TPmqnHrQMhOszecn1Qbg.png" /></figure><p>預計整體開發方向如下：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gAFNHKlG1Dqyol_S69o3pg.png" /></figure><p>開始開發…<br>建立了雛形後再進行美化作業</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6kEfK8DQ7z1tCKcoDvi_tg.png" /></figure><p>為了使用 bootstrap 和 scss，使用下列指令安裝需要項目</p><p>yarn install bootstrap</p><p>yarn add scss</p><p>yarn add <a href="http://twitter.com/popperjs/core">@popperjs/core</a></p><p>先將基本資料區塊做了美化，其中使用了幾個 class<br>form-group<br>form-control<br>form-check form-check-inline<br>form-check-input</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FPHOz5NjZlSbKl2_gl7VVg.png" /><figcaption>套用 Bootstrap 後的樣子</figcaption></figure><p>接下來同意書需要有本人簽名區塊，這會是一大挑戰 …<br>研究了一番後先在原先網頁下方實現簡單簽名功能，確定功能可行後再進行畫面排版優化。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y28K4wSNSR-IWAgJWpRjMQ.png" /><figcaption>先實作可簽名區塊且提交後能產生縮圖</figcaption></figure><p>將簽名功能移置本人簽名後方，當點擊時開始簽名區塊進行簽名。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9r4fl7M4upbmEvYeAMWXtA.gif" /></figure><p>放置地方比較合理了，但是好像不夠美觀 …<br>於是嘗試了 bootstrap Modal 方式當點擊本人簽名後，產生出一個 focus 的 canvas。<br>當開啟簽名視窗，會將整個網頁 focus 在視窗中，除非點擊視窗按鈕關閉，否則點其他地方視窗不會被關閉。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dwnbCrPLhsdRkHYVn2mPsw.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fed011c51df8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a GitHub repositories]]></title>
            <link>https://austin7l.medium.com/how-to-create-a-github-repositories-4cc7610d1a51?source=rss-5fe1db0ed87d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cc7610d1a51</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[repositories]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Austin7L]]></dc:creator>
            <pubDate>Thu, 30 Nov 2023 02:52:21 GMT</pubDate>
            <atom:updated>2023-11-30T02:53:54.618Z</atom:updated>
            <content:encoded><![CDATA[<p>First, go to the <a href="https://github.com/">GitHub website</a> to create an account and log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*geOlKks7Lk6uCBgLpnolvA.png" /></figure><p>Second, choose the red part to create a repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KE3Bgv0Vd7_x7dl0mvkQzg.png" /></figure><p>or you can click your account photo to create it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*fRztpzs3dVOonRKZEJnZww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EEcEAO5BX3zScc1AwAtAUw.png" /></figure><p>Third, to key in the repository information, at the first repository you just need to focus on the red part at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EEcEAO5BX3zScc1AwAtAUw.png" /></figure><p>The first red part is about your repository name it will be your repository name and your repository link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zvWq-Z5-nwicPP0JhcdWBw.png" /></figure><p>The second red part is to make your repository public or private which means that the repository can be seen by another person or not.</p><p>Alright, and you’re done creating your own repository now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VIfrEgnoriVCOwjdH9w5GQ.png" /></figure><p>Then you might want to know how to let’s code to remote with the repository, let see this page to learn about it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cc7610d1a51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swift Cheat Sheet(Updat]]></title>
            <link>https://austin7l.medium.com/swift-cheat-sheet-updat-f9110c3b643b?source=rss-5fe1db0ed87d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9110c3b643b</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[uikit]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Austin7L]]></dc:creator>
            <pubDate>Wed, 11 Oct 2023 08:24:29 GMT</pubDate>
            <atom:updated>2023-10-11T08:24:29.973Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Swift Cheat Sheet(Updating)</strong></h3><h3>Data Types</h3><ol><li>String</li><li>Int ( Integer )</li><li>Float</li><li>Double</li><li>Bool ( Boolean )</li></ol><h3><em>Random methods</em></h3><pre>// Int.random(in: lower ... upper)<br>Int.random(in: 1 ... 5) // including Integer 1 to 5<br>Int.random(in: 1 ..&lt; 5) // including Integer 1 to 4<br><br>/* Also can use in Float<br>   Float.random(in: lower ... upper)<br>*/<br><br>/* Boolean use random generator<br>   Bool.random()<br>*/<br><br>/* Array for random element<br>   Array.randomElement()<br>   Array.shuffle() -&gt; for rerandom the array<br>*/<br></pre><h4>AutoLayout</h4><p><em>Add New Constraints </em>可設置背景圖完全擴展，使螢幕翻轉不影響。</p><p>若要置中，使用 <em>Add New Alignment Constraints</em>，並勾選 Horizontally in Container、Vertically in Container。</p><p>若水平置中，且與上方物件距離 30 pixel，則 Horizontally in Container 打勾，並於 <em>Add New Constraints </em>中選擇要對應的物件，並設置距離數值。</p><p>較複雜版面設置，需使用 UIView 去包裝多個元件，但 UIView 只是一個容器，無法確切知道你所需的佈局方向，故外層會需要使用 Stack View(Horizontally or Vertically) 去設置佈局方向。</p><h4><strong>Create a function</strong></h4><pre>// create a function<br>/*<br>  &lt;func keyWord&gt; &lt;funcName&gt;(&lt;parameterName&gt;: &lt;parameterDataType&gt; {<br>  }<br>*/<br>func getMilk(bottles: Int) {<br>  &lt;whatToDo&gt;<br>}<br><br>// call the function<br>/*<br>  &lt;methodName&gt;(&lt;parameter&gt;: &lt;argument&gt;)<br>*/<br>getMilk(bottles: 2)<br><br></pre><h4>Xcode常用快捷鍵</h4><pre>Esc : 提示程式碼段落<br>Ctrl + . : 正向循環程式碼提示<br>Shift + Ctrl + . : 反向循環程式碼提示<br>Ctrl + K : 刪除本行<br><br><br>Option + codeName : 顯示interface文件<br></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9110c3b643b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generate Personal Access Token on GitHub with Screen Shot]]></title>
            <link>https://austin7l.medium.com/setting-github-token-with-screen-shot-cf3b35e920ce?source=rss-5fe1db0ed87d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf3b35e920ce</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[token]]></category>
            <category><![CDATA[personal-access-tokens]]></category>
            <dc:creator><![CDATA[Austin7L]]></dc:creator>
            <pubDate>Wed, 20 Sep 2023 03:55:01 GMT</pubDate>
            <atom:updated>2024-01-17T01:42:49.903Z</atom:updated>
            <content:encoded><![CDATA[<h4>Talking about how to Generate your Personal Access Token on GitHub</h4><h3>Step 1 : Login to Your GitHub</h3><p>Click your profile image it will pop up a navigator bar and click “ Settings ”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*Ctfssl-WfSaPp4w37o1hUQ.png" /></figure><h3>Step 2 : Click Develpor settings</h3><p>In the Settings page, you can see there is a sidebar on your left, and scrolling to the end you can see The “ Developer settings “</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*Hwwcy7nOGyZNQ1A02RDmGw.png" /></figure><h3>Step 3 : Setting and Generate Tokens</h3><p>In the Developer settings page Click “ Personal Access tokens “ &gt; “ Tokens ( classic ) ”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOILD_vMosHqnAC__9bTdA.png" /></figure><p>Click “ Generate new token “ &gt; “Generate new token ( classic ).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YIhrngIUmM97afIYbNw2fg.png" /></figure><ul><li><strong>Note</strong> <strong>part :</strong> is for the description of what is this token used for.</li><li><strong>Expiration</strong> <strong>part :</strong> is for the token expiration day.</li><li><strong>Select scopes part : </strong>there are several settings under it, you just need to access the repo at all.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CiuCGSeNniiZsIM-QXOKQw.png" /></figure><h4>Congratulations:</h4><p>You already generate your Personal Access Token and click the double overlap square to copy the token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1pxWF9bAyRzvanMzzELLUQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf3b35e920ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[解決 GitHub 無法 push，出現403問題 ( Git Push To Repository Key Username and Password Error )]]></title>
            <link>https://austin7l.medium.com/git-push-to-repository-key-username-and-password-error-536001eb30a?source=rss-5fe1db0ed87d------2</link>
            <guid isPermaLink="false">https://medium.com/p/536001eb30a</guid>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[403]]></category>
            <category><![CDATA[push]]></category>
            <category><![CDATA[error]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Austin7L]]></dc:creator>
            <pubDate>Wed, 20 Sep 2023 03:24:39 GMT</pubDate>
            <atom:updated>2024-01-17T01:47:05.920Z</atom:updated>
            <content:encoded><![CDATA[<h4>介紹如何透過 GitHub Personal Access Tokens 解決 MacOS 無法 push 出現 403 問題</h4><p>前言：使用 MacOS 搭配 GitHub 推送 Code 至 Repository 遇上需輸入帳號密碼驗證，但輸入正常可登入 GitHub 帳密後卻始終出現<br>fatal: Authentication failed for ‘ https://github.com/&lt;userName&gt;/iOSAppDev.git/ &#39;</p><pre>MacBook-Pro:Development appdev$ git push -u origin main<br>Username for &#39;https://github.com&#39;: &lt;your github user name&gt;<br>Password for &#39;https://austin7l@github.com&#39;: &lt;your github user password&gt;<br>remote: Support for password authentication was removed on August 13, 2021.<br>remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.<br>fatal: Authentication failed for &#39;https://github.com/austin7l/iOSAppDev.git/&#39;</pre><h3>Step 1 : 確認 remote 是正確的</h3><pre>MacBook-Pro:Development appdev$ git remote -v<br>origin https://github.com/Austin7L/iOSAppDev.git (fetch)<br>origin https://github.com/Austin7L/iOSAppDev.git (push)</pre><h3>Step 2 : 建立 GitHub Personal Access Token</h3><blockquote>若需要 <a href="https://medium.com/@austin7l/setting-github-token-with-screen-shot-cf3b35e920ce">圖文並茂</a><em> </em>請點連結，以下以文字說明。</blockquote><ol><li>於 GitHub 介面點擊個人頭像後選擇 setting</li><li>setting 頁面選擇 Developer settings</li><li>於 Personal access tokens 選單中選到 Tokens ( classic )</li><li>建立 New token，點擊 Generate new token ( Generate new token ( classic ) )</li><li>輸入 Note、Expiration、Select repo scopes</li><li>點擊 Generate token，會自動產生一個 token</li><li>複製 Token 回到 Terminal 重新 Push</li><li>輸入 Username 和 Password，密碼使用剛複製的 Token</li></ol><pre>MacBook-Pro:Development appdev$ git push -u origin main<br>Username for &#39;https://github.com&#39;: &lt;your github user name&gt;<br>Password for &#39;https://Austin7L@github.com&#39;: &lt;paste the token what you create&gt;<br>Enumerating objects: 2, done.<br>Counting objects: 100% (2/2), done.<br>Delta compression using up to 4 threads<br>Compressing objects: 100% (2/2), done.<br>Writing objects: 100% (2/2), 249 bytes | 249.00 KiB/s, done.<br>Total 2 (delta 0), reused 0 (delta 0), pack-reused 0<br>To https://github.com/Austin7L/iOSAppDev.git<br> * [new branch]      main -&gt; main<br>Branch &#39;main&#39; set up to track remote branch &#39;main&#39; from &#39;origin&#39;.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=536001eb30a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>