<?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: Stjepan</title>
    <description>The latest articles on DEV Community by Stjepan (@nikolicstjepan).</description>
    <link>https://dev.to/nikolicstjepan</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%2F38534%2Fa020ff4b-4af0-4707-bbb4-1a031ae200d1.jpg</url>
      <title>DEV Community: Stjepan</title>
      <link>https://dev.to/nikolicstjepan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nikolicstjepan"/>
    <language>en</language>
    <item>
      <title>How to Install Node.js from Source Code on GitHub</title>
      <dc:creator>Stjepan</dc:creator>
      <pubDate>Thu, 07 Nov 2024 15:44:26 +0000</pubDate>
      <link>https://dev.to/nikolicstjepan/how-to-install-nodejs-from-source-code-on-github-468j</link>
      <guid>https://dev.to/nikolicstjepan/how-to-install-nodejs-from-source-code-on-github-468j</guid>
      <description>&lt;p&gt;Recently, I needed to install a specific version of Node.js on a server that was locked down behind a strict firewall. The server only allowed access to GitHub and had the default apt build tools installed. &lt;/p&gt;

&lt;p&gt;I couldn’t use version managers like nvm or add external repositories to install Node.js via apt. Additionally, the default Node.js version available through apt was outdated and didn’t meet my requirements.&lt;/p&gt;

&lt;p&gt;Installing Node.js from source allows you to build the latest version or customize your build according to your needs. This guide provides step-by-step instructions for downloading, compiling, and installing Node.js from its GitHub repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Before you begin, ensure you have the following installed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Git: To clone the repository.&lt;/li&gt;
&lt;li&gt;Python 3: Required for the build process.&lt;/li&gt;
&lt;li&gt;C/C++ Compiler: Such as GCC or Clang on Unix systems, or Visual Studio on Windows.&lt;/li&gt;
&lt;li&gt;Build Tools: make or ninja for Unix systems.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Steps
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Install Build Dependencies
&lt;/h3&gt;

&lt;h4&gt;
  
  
  On macOS:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Install Homebrew if not already installed:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;-Install dependencies:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;brew install git python3 gcc make&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  On Linux (Debian/Ubuntu):
&lt;/h4&gt;

&lt;p&gt;&lt;code&gt;sudo apt-get update&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo apt-get install -y git python3 build-essential&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  On Windows:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Install Git for Windows.&lt;/li&gt;
&lt;li&gt;Install Python 3.&lt;/li&gt;
&lt;li&gt;Install Visual Studio Community with C++ development tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Clone the Node.js Repository
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;git clone https://github.com/nodejs/node.git&lt;/code&gt;&lt;br&gt;
&lt;code&gt;cd node&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Checkout a Specific Version (Optional)
&lt;/h3&gt;

&lt;p&gt;List available versions:&lt;/p&gt;

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

&lt;p&gt;Checkout a specific version (replace v16.6.0 with your desired version):&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git checkout v20.18.0&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Configure the Build
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;./configure&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For customization options, run:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;./configure --help&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Compile the Source Code
&lt;/h3&gt;

&lt;p&gt;On Unix Systems (macOS/Linux):&lt;/p&gt;

&lt;p&gt;Use make to build:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;make -j4&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Replace 4 with the number of cores in your CPU for faster compilation.&lt;/p&gt;

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

&lt;p&gt;Use the provided build script:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;vcbuild.bat&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For a 64-bit build:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;vcbuild.bat x64&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Install Node.js
&lt;/h3&gt;

&lt;p&gt;On Unix Systems:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo make install&lt;/code&gt;&lt;/p&gt;

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

&lt;p&gt;The build process creates an executable in the Release directory. You can add this directory to your PATH or move the executable to a preferred location.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Verify the Installation
&lt;/h3&gt;

&lt;p&gt;Check the installed Node.js and npm versions:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;node -v&lt;/code&gt;&lt;br&gt;
&lt;code&gt;npm -v&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Information
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Updating the Source Code&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To update your local repository with the latest changes:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git pull origin master&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cleaning Up Build Files&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before rebuilding, you may want to clean up previous build files:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;make clean&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ensure all dependencies are correctly installed.&lt;/li&gt;
&lt;li&gt;Refer to the Node.js Building Guide for more detailed instructions.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;You’ve successfully installed Node.js from the source code on GitHub. This approach gives you the flexibility to work with the latest features or customize your Node.js build.&lt;/p&gt;

</description>
      <category>node</category>
    </item>
    <item>
      <title>Log 2 - Building my first SaaS</title>
      <dc:creator>Stjepan</dc:creator>
      <pubDate>Thu, 24 Feb 2022 21:49:07 +0000</pubDate>
      <link>https://dev.to/nikolicstjepan/log-2-building-my-first-saas-4e63</link>
      <guid>https://dev.to/nikolicstjepan/log-2-building-my-first-saas-4e63</guid>
      <description>&lt;p&gt;Yesterday I decided to build a web app for seniors. Today I'm thinking about product ideas.&lt;/p&gt;

&lt;p&gt;Seniors like to talk about the past. They seem to enjoy remembering times when they were younger and back to when they were in their primes.&lt;/p&gt;

&lt;p&gt;I believe that there are many untold stories from the past, stories that could tell us more about our communities and our ancestors.&lt;br&gt;
I know that there are many content sharing platforms, but I have something more suitable in mind for this type of content.&lt;/p&gt;

&lt;p&gt;Social networks are great for sharing content, but the price you pay for using them (private data) is high, and there is the fact that you lose control and ownership of shared content as soon you post.&lt;/p&gt;

&lt;p&gt;Now I know that this is ambitious, and I don't stand a chance to do this globally, so maybe it would be better to start locally. My first goal is to find a local community (think: small village) and talk about this idea to see if they are interested.&lt;/p&gt;

&lt;p&gt;Wikipedia can tell you all the facts about any place, but could it tell you about their customs when they celebrate a wedding or when a baby is born? What about exciting stories that are not historically important but fun, engaging, and can tell a lot about that community?&lt;/p&gt;

&lt;p&gt;Not sure how this sounds to you but try to imagine a website where you can select the year from the past and see pictures, text, video or any form of media that tells stories from that year.&lt;/p&gt;

&lt;p&gt;Or you can select a family that has lived in this place for generations and see their stories through history. Content could be in categories. So, for example, you can see how wedding ceremonies developed through time.&lt;/p&gt;

&lt;p&gt;This is my side project, and it should be relatively easy to develop this product. I'm also thinking about open sourcing it so anyone can use it to create something similar for their local community.&lt;/p&gt;

&lt;p&gt;I have a lot more to think about, for example, how to monetize and motivate seniors to share their stories, but these problems are for some next log! :)&lt;/p&gt;

&lt;p&gt;I would love to hear what others think about this idea. It would help me a lot to get some input from others!&lt;/p&gt;

</description>
      <category>saas</category>
      <category>startup</category>
      <category>community</category>
    </item>
    <item>
      <title>Log 1 - Building my first SaaS</title>
      <dc:creator>Stjepan</dc:creator>
      <pubDate>Wed, 23 Feb 2022 08:47:04 +0000</pubDate>
      <link>https://dev.to/nikolicstjepan/day-1-building-my-first-saas-n61</link>
      <guid>https://dev.to/nikolicstjepan/day-1-building-my-first-saas-n61</guid>
      <description>&lt;p&gt;Today on my to-do list is to choose customers for my first SaaS product. &lt;/p&gt;

&lt;p&gt;While I keep my expectations low, I also want to use my skills to make someone happy.&lt;/p&gt;

&lt;p&gt;So I decided to choose a group of underserved and often ignored people. &lt;/p&gt;

&lt;p&gt;My customers will be...retired people! &lt;/p&gt;

&lt;p&gt;They have time and money. I know what you think; they are older and don't use the web that much. &lt;/p&gt;

&lt;p&gt;But I have seen with my own eyes how active they can be in Facebook groups when someone posts something that interests them!&lt;/p&gt;

&lt;p&gt;They are here, and they want to be part of the community as the rest of us.&lt;/p&gt;

&lt;p&gt;The goal of my first startup will be to make that happen!&lt;/p&gt;

&lt;p&gt;I have a target audience and goal; next on the to-do list is to develop some ideas!&lt;/p&gt;

&lt;p&gt;Do you have some ideas? Can you share and help me?&lt;/p&gt;

</description>
      <category>saas</category>
      <category>startup</category>
      <category>community</category>
    </item>
    <item>
      <title>How I can make this world better place using my programming skills?</title>
      <dc:creator>Stjepan</dc:creator>
      <pubDate>Mon, 24 Jun 2019 21:16:58 +0000</pubDate>
      <link>https://dev.to/nikolicstjepan/how-i-can-make-this-world-better-place-using-my-programming-skills-2d58</link>
      <guid>https://dev.to/nikolicstjepan/how-i-can-make-this-world-better-place-using-my-programming-skills-2d58</guid>
      <description>&lt;p&gt;It is a simple question, and I want to hear your advice.&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
  </channel>
</rss>
