<?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: Djamel Bougouffa</title>
    <description>The latest articles on DEV Community by Djamel Bougouffa (@strawbang).</description>
    <link>https://dev.to/strawbang</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%2F1028973%2F88627db9-f3d6-450a-b846-03af8fbbc0ed.jpg</url>
      <title>DEV Community: Djamel Bougouffa</title>
      <link>https://dev.to/strawbang</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/strawbang"/>
    <language>en</language>
    <item>
      <title>Building a Blazing-Fast Portfolio with Astro and Deploying with Netlify</title>
      <dc:creator>Djamel Bougouffa</dc:creator>
      <pubDate>Mon, 24 Jul 2023 07:40:08 +0000</pubDate>
      <link>https://dev.to/strawbang/building-a-blazing-fast-portfolio-with-astro-and-deploying-with-netlify-4ek0</link>
      <guid>https://dev.to/strawbang/building-a-blazing-fast-portfolio-with-astro-and-deploying-with-netlify-4ek0</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsgnrppxl605tx0rjqatx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsgnrppxl605tx0rjqatx.png" alt="Lighthouse about https:/djamel-bougouffa.com" width="800" height="776"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this article, we’ll explore how to create a lightning-fast portfolio using Astro with the Portfolio theme and then deploy it effortlessly using Netlify. With this powerful combination, you can quickly get your portfolio up and running to impress potential clients and employers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Astro?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Astro is a modern static site generator that combines the best features of traditional static site generators with the power of contemporary frameworks. Its unique approach compiles your website into a fully optimized JavaScript application, resulting in exceptional performance and a seamless user experience. Additionally, Astro supports popular frameworks like React, Vue, and Svelte, allowing developers to create complex web applications with ease.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Introducing the Portfolio Theme&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This theme includes essential features such as project sections. It provides an excellent foundation for you to showcase your work and achievements effectively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Getting Started with Astro and the Portfolio Theme&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Follow these steps to create your fast portfolio using Astro and the Portfolio theme:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Set up your development environment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ensure you have Node.js and npm installed on your system. You can check their presence by running the following commands in your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;node -v
npm -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Create a new Astro project with template portfolio&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open your terminal and create a new Astro project by running the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm create astro@latest -- --template portfolio
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3: Customize your portfolio&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Replace the default content in the src directory with your own projects, images, and information. You can easily modify the Portfolio theme's components and layouts to match your style and preferences.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Test your portfolio locally&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To view your portfolio locally, run the 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;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your portfolio should now be accessible at &lt;a href="http://localhost:3000" rel="noopener noreferrer"&gt;http://localhost:3000&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deploying with Netlify&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Netlify makes the deployment process incredibly simple, providing a seamless experience for deploying static sites. Follow these steps to deploy your Astro-powered portfolio with Netlify:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Create a Netlify account&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you don’t already have one, sign up for a free account on Netlify at &lt;a href="https://www.netlify.com/" rel="noopener noreferrer"&gt;https://www.netlify.com/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Install Netlify CLI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Install the Netlify CLI globally on your machine to interact with Netlify from the command line:&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 netlify-cli -g
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3: Build your portfolio&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before deploying, build your Astro project to generate the optimized files:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 4: Deploy to Netlify&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Navigate to your project directory in the terminal and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;netlify init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Follow the prompts to link your Netlify account and select the project you want to deploy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Deploy your portfolio&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Finally, deploy your portfolio with the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;netlify deploy — prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your portfolio will be automatically deployed to Netlify, and you will receive a unique URL where your blazing-fast portfolio can be accessed by anyone, anywhere.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Creating a fast and impressive portfolio has never been easier with Astro and the Portfolio theme. Astro’s performance-oriented approach and seamless integration with modern frameworks allow you to build a top-tier portfolio effortlessly. Additionally, deploying your portfolio with Netlify ensures that it is accessible to the world with just a few clicks. So, why wait? Create your dazzling portfolio with Astro and the Portfolio theme and showcase your skills to the global tech community today!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://djamel-bougouffa.com/" rel="noopener noreferrer"&gt;My portfolio&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/Strawbang/portfolio" rel="noopener noreferrer"&gt;Repository&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>astro</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
