<?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: BasitJawad</title>
    <description>The latest articles on DEV Community by BasitJawad (@basitjawad).</description>
    <link>https://dev.to/basitjawad</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%2F1175232%2Ff5fd732d-1d37-44ce-901f-6967de2b76ea.png</url>
      <title>DEV Community: BasitJawad</title>
      <link>https://dev.to/basitjawad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/basitjawad"/>
    <language>en</language>
    <item>
      <title>GitHub 2FA Issue Solved</title>
      <dc:creator>BasitJawad</dc:creator>
      <pubDate>Mon, 10 Feb 2025 13:43:55 +0000</pubDate>
      <link>https://dev.to/basitjawad/github-2fa-issue-solved-31mm</link>
      <guid>https://dev.to/basitjawad/github-2fa-issue-solved-31mm</guid>
      <description>&lt;h3&gt;
  
  
  📌 &lt;strong&gt;GitHub 2FA Issue Solved – Fix "Two-Factor Code Verification Failed"&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;🚀 &lt;strong&gt;If you're unable to verify your GitHub 2FA (Two-Factor Authentication) code, the issue might be caused by incorrect time settings on your mobile device.&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
This guide will help you &lt;strong&gt;fix it in seconds!&lt;/strong&gt; ⏳  &lt;/p&gt;




&lt;h2&gt;
  
  
  ❌ &lt;strong&gt;Problem: GitHub 2FA Code Not Working&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;When setting up &lt;strong&gt;GitHub Two-Factor Authentication (2FA)&lt;/strong&gt;, you may see this error:  &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Two-factor code verification failed. Please try again."&lt;/em&gt;  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This happens when the &lt;strong&gt;time on your phone is out of sync&lt;/strong&gt; with GitHub’s servers. Since authenticator apps (Google Authenticator, Authy, Microsoft Authenticator) generate time-based one-time passwords (&lt;strong&gt;TOTP&lt;/strong&gt;), even a &lt;strong&gt;small time difference&lt;/strong&gt; can cause verification failures.  &lt;/p&gt;




&lt;h2&gt;
  
  
  ✅ &lt;strong&gt;Solution: Set Your Device Time to Automatic&lt;/strong&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;📱 On Android:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Settings&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Date &amp;amp; Time&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;Enable &lt;strong&gt;Set time automatically&lt;/strong&gt; or &lt;strong&gt;Use network-provided time&lt;/strong&gt;.
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;📱 On iPhone (iOS):&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Settings&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;General &amp;gt; Date &amp;amp; Time&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;Toggle &lt;strong&gt;Set Automatically&lt;/strong&gt; ON.
&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  🔄 &lt;strong&gt;Final Steps:&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Restart your phone&lt;/strong&gt; after updating the time settings.
&lt;/li&gt;
&lt;li&gt;Open your &lt;strong&gt;Authenticator app&lt;/strong&gt; and enter a &lt;strong&gt;newly generated 2FA code&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;It should now work perfectly! 🎉
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💡 &lt;strong&gt;Additional Tips:&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Save your &lt;strong&gt;GitHub recovery codes&lt;/strong&gt; in case you lose 2FA access.
&lt;/li&gt;
&lt;li&gt;If the issue persists, try &lt;strong&gt;removing and re-adding GitHub&lt;/strong&gt; in your authenticator app.
&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;Authy&lt;/strong&gt; instead of Google Authenticator to enable &lt;strong&gt;cloud backups&lt;/strong&gt;.
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🌟 &lt;strong&gt;Was This Helpful?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;If this guide helped you, consider &lt;strong&gt;starring ⭐ this repo&lt;/strong&gt; and sharing it with others! 🚀  &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>github</category>
      <category>opensource</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Vite Breeze (Automating React Project Structure Development With TailwindCSS)</title>
      <dc:creator>BasitJawad</dc:creator>
      <pubDate>Sun, 09 Feb 2025 10:46:24 +0000</pubDate>
      <link>https://dev.to/basitjawad/vite-breeze-automating-react-project-structure-development-with-tailwindcss-2eoe</link>
      <guid>https://dev.to/basitjawad/vite-breeze-automating-react-project-structure-development-with-tailwindcss-2eoe</guid>
      <description>&lt;h2&gt;
  
  
  Vite Breeze
&lt;/h2&gt;

&lt;p&gt;A simple CLI tool to quickly generate a React project using Vite, React Router, and a pre-configured context folder. It also sets up Tailwind CSS, along with auto-created &lt;code&gt;pages&lt;/code&gt; and &lt;code&gt;components&lt;/code&gt; folders.&lt;/p&gt;

&lt;h2&gt;
  
  
  Note
&lt;/h2&gt;

&lt;p&gt;Do not use ( &lt;strong&gt;npm i vite-breeze&lt;/strong&gt; ) as it will not work because its a Cli-tool not a package.&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 Installation
&lt;/h2&gt;

&lt;p&gt;Instead of installing globally, you can use &lt;code&gt;npx&lt;/code&gt; to run the CLI directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx vite-breeze
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why &lt;code&gt;npx&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;Using &lt;code&gt;npx vite-breeze&lt;/code&gt; is recommended because:&lt;/p&gt;

&lt;p&gt;✅ &lt;strong&gt;No Global Installation:&lt;/strong&gt; Avoids version conflicts.&lt;br&gt;
✅ &lt;strong&gt;Always Up-to-Date:&lt;/strong&gt; Ensures you're using the latest version.&lt;br&gt;
✅ &lt;strong&gt;Quick &amp;amp; Easy:&lt;/strong&gt; Runs instantly without installation.&lt;/p&gt;
&lt;h2&gt;
  
  
  🔧 Usage
&lt;/h2&gt;

&lt;p&gt;Once you run the command, you'll be prompted to enter a project name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;📛 Enter project name: my-react-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;vite-breeze&lt;/code&gt; will then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a new directory with the specified name.&lt;/li&gt;
&lt;li&gt;Initialize a new Vite React project.&lt;/li&gt;
&lt;li&gt;Install dependencies including React Router, Axios, and Tailwind CSS.&lt;/li&gt;
&lt;li&gt;Configure Tailwind CSS automatically.&lt;/li&gt;
&lt;li&gt;Create the following folder structure in &lt;code&gt;src/&lt;/code&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;context/&lt;/code&gt; - For React Context API files (&lt;code&gt;AppContext.js&lt;/code&gt; included).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;components/&lt;/code&gt; - For reusable components.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pages/&lt;/code&gt; - For page components.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  ✅ After setup, follow these steps:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;my-react-app
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  📌 Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;⚡ &lt;strong&gt;Vite-Powered&lt;/strong&gt;: Super-fast project setup.&lt;/li&gt;
&lt;li&gt;🎨 &lt;strong&gt;Tailwind CSS&lt;/strong&gt;: Pre-configured for styling.&lt;/li&gt;
&lt;li&gt;🌍 &lt;strong&gt;React Router&lt;/strong&gt;: Automatically installed.&lt;/li&gt;
&lt;li&gt;🛡️ &lt;strong&gt;Axios&lt;/strong&gt;: Automatically installed.&lt;/li&gt;
&lt;li&gt;🏗 &lt;strong&gt;Organized Structure&lt;/strong&gt;: Creates a clean project layout.&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;Context API Setup&lt;/strong&gt;: Adds a ready-to-use &lt;code&gt;AppContext.js&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🤝 Contributing
&lt;/h2&gt;

&lt;p&gt;Contributions are welcome! Open an issue or submit a pull request on &lt;a href="https://github.com/BasitJawad/React-Gen-Structure" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  📜 License
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Commercial License&lt;/strong&gt; (for companies, SaaS, and proprietary products).
Contact &lt;a href="mailto:muhbasit235@gmail.com"&gt;muhbasit235@gmail.com&lt;/a&gt; for details.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License Purchase&lt;/strong&gt; If you need a license visit this link: &lt;a href="https://basitwave1.gumroad.com/l/bkhhk" rel="noopener noreferrer"&gt;https://basitwave1.gumroad.com/l/bkhhk&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  👨‍💻 Author
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Basit Jawad
&lt;/h3&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Cli-Tool for Automating basic Folders Configuration for React based Project.</title>
      <dc:creator>BasitJawad</dc:creator>
      <pubDate>Sat, 01 Feb 2025 11:55:53 +0000</pubDate>
      <link>https://dev.to/basitjawad/cli-tool-for-automating-basic-folders-configuration-for-react-based-project-3jph</link>
      <guid>https://dev.to/basitjawad/cli-tool-for-automating-basic-folders-configuration-for-react-based-project-3jph</guid>
      <description>&lt;h2&gt;
  
  
  Generate-React-Structure
&lt;/h2&gt;

&lt;p&gt;A simple CLI tool to quickly generate a React project using Vite, React Router, and a pre-configured context folder, auto-creation of Page and Component folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Note
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Do not use

&lt;code&gt;npm i react-gen-structure&lt;/code&gt;

as it will not work because its a Cli-tool not a package.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;Instead of using &lt;code&gt;npm i react-gen-structure&lt;/code&gt;, you can use the following command to directly run the CLI tool without installation:&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-gen-structure
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why &lt;code&gt;npx&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;npx&lt;/code&gt; is a package runner that comes with npm.  It allows you to use packages without installing them globally. This is the recommended way to use &lt;code&gt;react-gen-structure&lt;/code&gt; because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No Global Installation:&lt;/strong&gt; Avoids potential conflicts with other globally installed packages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Latest Version:&lt;/strong&gt; Ensures you always use the latest version of &lt;code&gt;react-gen-structure&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Easy to Use:&lt;/strong&gt;  Simple and convenient way to run the CLI.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;p&gt;After running the &lt;code&gt;npx&lt;/code&gt; command, the CLI will prompt you to enter a project name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;📛 Enter project name: my-react-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;react-gen-structure&lt;/code&gt; will then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a new directory with the specified name.&lt;/li&gt;
&lt;li&gt;Initialize a new Vite React project within that directory.&lt;/li&gt;
&lt;li&gt;Install the necessary dependencies.&lt;/li&gt;
&lt;li&gt;Create the following folder structure within the &lt;code&gt;src&lt;/code&gt; directory:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;context&lt;/code&gt;: For React Context API files (a sample &lt;code&gt;AppContext.js&lt;/code&gt; is created).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;components&lt;/code&gt;: For reusable React components.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pages&lt;/code&gt;: For React page components.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Finally, you'll be provided with instructions on how to start your development server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✅ Project setup complete! Run:
   cd my-react-app
   npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vite:&lt;/strong&gt;  Uses Vite for fast and efficient development.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;React Router (Planned):&lt;/strong&gt; &lt;em&gt;Future versions will include React Router setup.&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context API:&lt;/strong&gt; Sets up a basic context folder and provides a sample &lt;code&gt;AppContext.js&lt;/code&gt; file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Organized Structure:&lt;/strong&gt; Creates a clean folder structure for your components and pages.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Contributing
&lt;/h2&gt;

&lt;p&gt;Contributions are welcome!  Please open an issue or submit a pull request.&lt;/p&gt;

&lt;h2&gt;
  
  
  License
&lt;/h2&gt;

&lt;p&gt;ISC&lt;/p&gt;

&lt;h2&gt;
  
  
  Author
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Basit Jawad
&lt;/h2&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Access Your Local Development Server on Any Device Using Vite</title>
      <dc:creator>BasitJawad</dc:creator>
      <pubDate>Tue, 16 Jul 2024 06:39:19 +0000</pubDate>
      <link>https://dev.to/basitjawad/how-to-access-your-local-development-server-on-any-device-using-vite-3j5p</link>
      <guid>https://dev.to/basitjawad/how-to-access-your-local-development-server-on-any-device-using-vite-3j5p</guid>
      <description>&lt;p&gt;*&lt;em&gt;Accessing your local development server on any device is essential for thorough testing and debugging. *&lt;/em&gt;&lt;br&gt;
Here’s a step-by-step guide on how to make your Vite server accessible from any device on your local network.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;1. Step 1: Configure Vite to Listen on All Network Interfaces&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;First, you need to configure your Vite development server to listen on all network interfaces. This allows other devices on your local network to access the server.&lt;/p&gt;

&lt;p&gt;Open your vite.config.js file and add the server configuration with the host set to 0.0.0.0:&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%2F5xi9mwcm2te4c6pjujn7.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%2F5xi9mwcm2te4c6pjujn7.png" alt="Configuration code in vite.config.js to set the server host to 0.0.0.0, making the Vite development server accessible on all network interfaces." width="800" height="286"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Step 2: Find Your Computer’s IP Address&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Next, you need to find your computer’s IP address on the local network. Here’s how you can do it:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open Command Prompt.&lt;br&gt;
Type ipconfig and press Enter.&lt;br&gt;
Look for the IPv4 Address under your active network connection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;macOS:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open Terminal.&lt;br&gt;
Type ifconfig and press Enter.&lt;br&gt;
Look for the inet address under your active network interface (usually en0 for Wi-Fi).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open Terminal.&lt;br&gt;
Type ifconfig or ip addr and press Enter.&lt;br&gt;
Look for the inet address under your active network interface.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Start Your Vite Development Server&lt;/strong&gt;&lt;br&gt;
Make sure your Vite development server is running. You can start it by running:&lt;/p&gt;

&lt;p&gt;npm run dev&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Step 4: Access the Server on Your Mobile Device&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Now, on your mobile device, open a web browser and enter your computer’s IP address followed by the port number your Vite server is running on. For example, if your computer’s IP address is 192.168.1.10 and the Vite server is running on port 5173, enter:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://192.168.*.*:5173" rel="noopener noreferrer"&gt;http://192.168.*.*:5173&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By following these steps, you can easily access your local Vite development server from any device on your local network, allowing you to test your website or web application on different devices and screen sizes.&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>webdev</category>
      <category>vite</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
