<?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: SHARKZTECH</title>
    <description>The latest articles on DEV Community by SHARKZTECH (@sharkztech).</description>
    <link>https://dev.to/sharkztech</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%2F821667%2F5add5e22-625a-46a1-8f01-99a32c757825.jpeg</url>
      <title>DEV Community: SHARKZTECH</title>
      <link>https://dev.to/sharkztech</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sharkztech"/>
    <language>en</language>
    <item>
      <title>POS Laravel Inertia and React Fullstack Demo</title>
      <dc:creator>SHARKZTECH</dc:creator>
      <pubDate>Thu, 08 Aug 2024 12:05:50 +0000</pubDate>
      <link>https://dev.to/sharkztech/pos-laravel-inertia-and-react-fullstack-demo-4ipp</link>
      <guid>https://dev.to/sharkztech/pos-laravel-inertia-and-react-fullstack-demo-4ipp</guid>
      <description>&lt;p&gt;This video is the final version of a POS system I've developed with Laravel Inertia and React. You will see a live demo of the essential features of this system. Whether this is about the interoperability of Laravel and React or a desire to see a practical application of these technologies simply, this video provides an overall clear view. If this demo helps, don't forget to subscribe for many more project showcases and tutorials.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;a href="https://www.youtube.com/watch?si=MRU-kEhQzISHXoJW&amp;amp;v=rgpgkupyuWk&amp;amp;feature=youtu.be" rel="noopener noreferrer"&gt;
      youtube.com
    &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>laravel</category>
      <category>react</category>
      <category>fullstack</category>
      <category>pos</category>
    </item>
    <item>
      <title>create vite@latest Vs npx create-react-app</title>
      <dc:creator>SHARKZTECH</dc:creator>
      <pubDate>Wed, 15 Mar 2023 12:29:09 +0000</pubDate>
      <link>https://dev.to/sharkztech/create-vitelatest-vs-npx-create-react-app-2278</link>
      <guid>https://dev.to/sharkztech/create-vitelatest-vs-npx-create-react-app-2278</guid>
      <description>&lt;p&gt;When starting a new React project, one of the first decisions you'll need to make is how to set up your development environment. There are several tools available to help you get started, but two popular options are npx create-react-app and npm create &lt;a href="mailto:vite@latest"&gt;vite@latest&lt;/a&gt;. In this blog post, we'll explore the differences between these tools and help you decide which one is right for your project.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is npx create-react-app?
&lt;/h2&gt;

&lt;p&gt;npx create-react-app is a command-line interface (CLI) tool that sets up a new React project using the create-react-app package. This package provides a pre-configured environment with all the necessary dependencies to start building a React app, including a development server and optimized production build scripts. The focus of create-react-app is on simplicity, ease of use, and standardization, so it enforces a specific project structure and doesn't provide many configuration options.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advantages of using create-react-app
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; It's ease of use. With just one command, you can set up a fully functional React project without having to worry about configuring webpack, Babel, or other tools. This can save you a lot of time and effort, especially if you're new to React or web development in general.&lt;/li&gt;
&lt;li&gt;Standardization. Since many React projects use create-react-app, it can make it easier for developers to understand and contribute to your codebase. Additionally, the create-react-app team provides updates and security patches, so you can be confident that your project is using the latest and most secure dependencies.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Disadvantages of create-react-app
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;It enforces a specific project structure, it may not be the best option if you need more flexibility or customization. &lt;/li&gt;
&lt;li&gt;It can be more difficult to customize the build process, since create-react-app abstracts away many of the underlying tools.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What is npm create vite@latest?
&lt;/h2&gt;

&lt;p&gt;npm create vite@latest is a tool that sets up a new React project using the Vite bundler. Vite is a relatively new development server and build tool that aims to be fast and lightweight. Vite uses modern web standards such as ES modules and native browser features like import maps to provide a faster development experience than traditional bundlers like webpack. Vite also has a plugin system that allows for more customization of the build process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advantages of using Vite
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Performance. Since Vite uses modern web standards and native browser features, it can provide a faster development experience than tools like create-react-app.&lt;/li&gt;
&lt;li&gt;Vite's plugin system allows you to customize the build process more easily, which can be useful if you have specific requirements for your project.&lt;/li&gt;
&lt;li&gt;Flexibility. Unlike create-react-app, Vite doesn't enforce a specific project structure, so you can organize your code however you like. This can be useful if you have a more complex project or want to use a different file structure than the one enforced by create-react-app.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Disadvantages of Vite
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Since it's a relatively new tool, it may not be as widely adopted or supported as create-react-app. Additionally, since Vite is more flexible, it may require more configuration upfront to get started.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Which one should you choose?
&lt;/h2&gt;

&lt;p&gt;Both npx create-react-app and npm create vite@latest have their own advantages and disadvantages, so the choice between them will depend on your specific needs and preferences.&lt;/p&gt;

&lt;p&gt;If you're new to React or web development in general, or if you're looking for a simple and standardized environment, create-react-app is probably the best choice for you.On the other hand, if you want more control over the build process and need the latest web standards and performance optimizations, npm create vite@latest is a great option.&lt;/p&gt;

</description>
      <category>react</category>
      <category>vite</category>
      <category>beginners</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Hosting vite react app to github pages</title>
      <dc:creator>SHARKZTECH</dc:creator>
      <pubDate>Sat, 28 Jan 2023 09:21:45 +0000</pubDate>
      <link>https://dev.to/sharkztech/hosting-vite-react-app-to-github-pages-34g9</link>
      <guid>https://dev.to/sharkztech/hosting-vite-react-app-to-github-pages-34g9</guid>
      <description>&lt;p&gt;Hosting a Vite-powered React app on GitHub Pages is a great way to quickly and easily deploy your app to the web. Below is a guide of how to do that:&lt;br&gt;
step 1: install "gh-pages"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i gh-pages or yarn install gh-pages
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Github pages will help you automate the process of deployment&lt;br&gt;
step 2: add the following in your 'package.json' to configure it to use "gh-pages" in deployment&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;...
  "scripts": {
...
    "build": "vite build",
    "predeploy": "npm run build",
    "deploy": "gh-pages -d dist",
...
  },
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;step 3:add base in "vite.config.js" with github repository name as the value within slashes&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  base:"/repository_name/",
  plugins: [react()],
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;step 4: run &lt;code&gt;npn run build&lt;/code&gt;&lt;br&gt;
step 5: run &lt;code&gt;npm run deploy&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Please note that, the above steps are for static hosting. If you have a dynamic web application then you need to look for other hosting options such as AWS Amplify, Firebase Hosting, Heroku, etc.&lt;/p&gt;

</description>
      <category>java</category>
      <category>scala</category>
      <category>career</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
