<?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: Feven Seyfu</title>
    <description>The latest articles on DEV Community by Feven Seyfu (@fevenseyfu).</description>
    <link>https://dev.to/fevenseyfu</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%2F1248583%2Fa1d4f370-32a7-463d-86c3-7247cf92474c.png</url>
      <title>DEV Community: Feven Seyfu</title>
      <link>https://dev.to/fevenseyfu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fevenseyfu"/>
    <language>en</language>
    <item>
      <title>From Localhost to Live: Easy Deployment With Github Pages or Netlify</title>
      <dc:creator>Feven Seyfu</dc:creator>
      <pubDate>Thu, 01 Feb 2024 15:01:42 +0000</pubDate>
      <link>https://dev.to/fevenseyfu/from-localhost-to-live-easy-deployment-with-github-pages-or-netlify-42je</link>
      <guid>https://dev.to/fevenseyfu/from-localhost-to-live-easy-deployment-with-github-pages-or-netlify-42je</guid>
      <description>&lt;p&gt;Hi Dev's,&lt;/p&gt;

&lt;p&gt;If you've been following my first post, we've set up Git and GitHub, pushing our project successfully. Congratulations! If you missed our initial guide on these tools, you can catch up &lt;a href="https://dev.to/fevenseyfu/a-beginners-guide-to-git-github-49a3"&gt;here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;But now you want to show off your new acquired skills and share with family and friends.However you are not sure how to do that since not everyone can setup your project locally.&lt;/p&gt;

&lt;p&gt;I've got you covered; let's deploy your project and get you a live link so you can show off your new skills to family and friends.&lt;/p&gt;

&lt;p&gt;we will use 2 options to deploy your site for free,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Github Pages&lt;/li&gt;
&lt;li&gt;Netlify&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's get started,&lt;/p&gt;

&lt;h2&gt;
  
  
  1.Deploy with Github pages
&lt;/h2&gt;

&lt;p&gt;step 1: head to your project repository and navigate to the &lt;br&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%2Fskgkrfgn0qhkwwh3vhzi.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%2Fskgkrfgn0qhkwwh3vhzi.png" alt="Settings" width="111" height="26"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;step 2: From the left side bar scroll to pages &lt;br&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%2Fvcg1zkppjo940qy91s24.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%2Fvcg1zkppjo940qy91s24.png" alt="Screenshot of sidebar" width="262" height="317"&gt;&lt;/a&gt;&lt;br&gt;
step 3: deploy from a branch - select the branch you want to deploy&lt;br&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%2Fdtqdzpxakc76aaldfcvj.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%2Fdtqdzpxakc76aaldfcvj.png" alt="Select to deploy from a branch" width="425" height="302"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;step 4: enforce https to make your site is secure&lt;br&gt;
Congratulations! your site is up and running!&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%2Fdnhcfp0f44mhgjq0023o.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%2Fdnhcfp0f44mhgjq0023o.png" alt="Link to deployed site" width="605" height="146"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2.Deploy with Netlify
&lt;/h2&gt;

&lt;p&gt;Step 1: If you  don't have an account you need to  visit &lt;a href="https://www.netlify.com/"&gt;Netlify&lt;/a&gt; and sign up&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I recommend signing up with your github account to easily deploy from your repository&lt;/p&gt;
&lt;/blockquote&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%2F7l7w4gpevpixlcntadwd.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%2F7l7w4gpevpixlcntadwd.png" alt="screenshot of Signup link" width="537" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Navigate to add new site&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%2Fzjna0q1qkkup72dosun3.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%2Fzjna0q1qkkup72dosun3.png" alt="Screenshot to Deploy from repository" width="443" height="210"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;step 3: authorize Netlify to have access to Github&lt;br&gt;
step 4: select the repository you want to deploy if you can't see scroll down to add repo &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%2Fx04qc11vg2zo43we3nza.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%2Fx04qc11vg2zo43we3nza.png" alt="Screenshot of Link to add repo to deploy" width="462" height="70"&gt;&lt;/a&gt;&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%2Flr78zftuqdyhru33i8p1.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%2Flr78zftuqdyhru33i8p1.png" alt="Screenshot to show how to Select the repo to deploy" width="500" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;if you want to deploy from a different branch from the default&lt;br&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%2Fohcstw5yyjw3fglye91a.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%2Fohcstw5yyjw3fglye91a.png" alt="screenshot of link to change branch" width="533" height="156"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;step 5: For static site you don't need to configure so scroll down and  click on deploy site name&lt;/p&gt;

&lt;p&gt;step 6: it will deploy and generate a funny looking link for you that nobody can remember so let's change that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;click onsite configuration and change site name
&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%2Fwop4uppvqjy492tsqdrz.png" alt="how to change site name" width="471" height="221"&gt;
&lt;/li&gt;
&lt;li&gt;remove the existing and change to a name you prefer&lt;/li&gt;
&lt;/ul&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%2Fjo4hkssbdfdd0nlg12aq.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%2Fjo4hkssbdfdd0nlg12aq.png" alt="link to change site name" width="295" height="78"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: the netlify.app remains unless you have a custom domain name this will do.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Step 7: now you can go to the site and check if it works fine&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Congratulations! You've successfully deployed your site using either GitHub Pages or Netlify. Remember, if you encounter issues with images or icons , ensure that the file paths are adjusted appropriately, such as using '../' to navigate to the correct directories. Now that your site is live, share it with the world and continue your coding journey!&lt;/p&gt;

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

</description>
      <category>deployment</category>
      <category>webdev</category>
      <category>netlify</category>
      <category>githubpages</category>
    </item>
    <item>
      <title>A Beginner's Guide to Git, GitHub</title>
      <dc:creator>Feven Seyfu</dc:creator>
      <pubDate>Wed, 24 Jan 2024 16:07:18 +0000</pubDate>
      <link>https://dev.to/fevenseyfu/a-beginners-guide-to-git-github-49a3</link>
      <guid>https://dev.to/fevenseyfu/a-beginners-guide-to-git-github-49a3</guid>
      <description>&lt;p&gt;Git and GitHub have saved my forgetful self on multiple occasions. Yet, if you had asked me about them when I first started coding, my answer might have been different. For beginners on the coding journey, Git and GitHub can be intimidating. However, grasping version control and collaboration tools makes code management and sharing easier. Reflecting on my programming learning curve, one of my regrets is not diving into Git and GitHub earlier. This delay has led to the loss of some projects. Hence, I am writing this article to guide you on the basics and how to set up and use Git and GitHub effectively.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Git and Github?
&lt;/h2&gt;

&lt;p&gt;Although Git and GitHub may sound similar, they serve different purposes.Git is a version control system that tracks changes in your code by maintaining a  history of modification. So basically, if you have a working program and want to add a new feature, Git allows you to save your code history. This way, if you encounter issues with your changes, you can easily revert to a point where your code was functioning correctly..&lt;/p&gt;

&lt;p&gt;GitHub, on the other hand, is a platform that utilizes Git for collaborative coding, allowing multiple developers to work on projects concurrently.It is a web-based platform which allows you to host, share, and contribute to code repositories(project folders).&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting Up Git
&lt;/h2&gt;

&lt;p&gt;Before diving into Git commands, you need to set it up on your machine:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Installation&lt;/strong&gt;: Download and install Git from git-scm.com.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configuration&lt;/strong&gt;: Set your name and email using the following commands:
&lt;code&gt;
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Git Basics
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Repository (Repo)&lt;/strong&gt;: A Git repository is a storage space that contains your project's files and the history of changes. To create a new repository, use:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git init&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;2.** Cloning a Repository** : To copy an existing repository to your local machine, use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone repository_url
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Committing Changes&lt;/strong&gt;: After making changes, commit them(Committing in Git is like taking a snapshot of your project at a specific point in time) use the command:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
   git add .
   git commit -m "Your commit message"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Tip&lt;/strong&gt;: when committing, use  commit messages that are descriptive and meaningful. Read this &lt;a href="https://www.theodinproject.com/lessons/foundations-commit-messages"&gt;article&lt;/a&gt; for more. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Branching&lt;/strong&gt;: Create a new branch to work on a feature or bug fix:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   git branch -b  new_branch
   git checkout new_branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Tip&lt;/strong&gt;: replace new_branch with you preferred branch name&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Merging&lt;/strong&gt;: once done with your feature and happy with result merge/combine changes from one branch to another usually it will be main or any development branch:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; git checkout destination_branch
   git merge source_branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  GitHub Basics
&lt;/h2&gt;

&lt;p&gt;So far  we have worked on our project locally and tracked the changes with git but now we want to host our project online so that it can be accessible to everyone else in order to be able to collaborate, below are the steps we can take.I assume You already have a Github account if now visit &lt;a href="https://github.com/"&gt;github&lt;/a&gt; to register.&lt;/p&gt;

&lt;p&gt;1.** Repository Creation:** First thing is first visit GitHub, click "New" to create a new repository, and follow the instructions to insert name,description to your project and you can also setup a readme.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Cloning from GitHub:&lt;/strong&gt; If you want to work on an existing project you can copy the repository URL and use:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git clone repository_url.git&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; the URL has the format &lt;a href="https://github.com/username/repository_name.git"&gt;https://github.com/username/repository_name.git&lt;/a&gt; navigate to repository-&amp;gt;code(drop down) and copy link&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%2Fbq0c7qk92lnguy98u17w.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%2Fbq0c7qk92lnguy98u17w.png" alt="Image description" width="800" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pushing Changes to GitHub&lt;/strong&gt;:  once you have made your changes and committed in git you can push to github. When you push in Git, you are essentially uploading your local commits to the remote repository. This ensures that others can see the latest version of your project.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   git push origin branch_name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tip: please use descriptive branch names and explore more &lt;a href="https://gist.github.com/digitaljhelms/4287848"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;4.** Pull Requests:**Once you push your changes before merging to the main branch you need to create a pull request  explaining the changes which serves as a formal request for the repository maintainers to review the proposed changes before they are merged.&lt;/p&gt;

&lt;p&gt;Git and Github are essential tools for developers. With the basics covered, you can confidently manage your projects, collaborate with others, and contribute to open-source initiatives and Inspired explore more commands and collaborate with the vast developer community to enhance your skills.&lt;strong&gt;Happy coding!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>git</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
