<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrej Hucik on Medium]]></title>
        <description><![CDATA[Stories by Andrej Hucik on Medium]]></description>
        <link>https://medium.com/@ado.hucik?source=rss-fd5af5a1d988------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wyxkS_kmcgkRtF5Wi1884A.jpeg</url>
            <title>Stories by Andrej Hucik on Medium</title>
            <link>https://medium.com/@ado.hucik?source=rss-fd5af5a1d988------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:10:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ado.hucik/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Create a React.js Project with Next.js and dotenv for Environment Variables]]></title>
            <link>https://medium.com/@ado.hucik/how-to-create-a-react-js-project-with-next-js-and-dotenv-for-environment-variables-9356d3b7cf41?source=rss-fd5af5a1d988------2</link>
            <guid isPermaLink="false">https://medium.com/p/9356d3b7cf41</guid>
            <dc:creator><![CDATA[Andrej Hucik]]></dc:creator>
            <pubDate>Thu, 05 Sep 2024 07:46:47 GMT</pubDate>
            <atom:updated>2024-09-05T07:46:47.267Z</atom:updated>
            <content:encoded><![CDATA[<p>When building modern web applications, handling environment variables securely is a crucial aspect of managing different configurations across development, staging, and production environments. Next.js simplifies the process of working with React.js, while dotenv can help streamline the management of environment variables.</p><p>In this tutorial, we’ll walk through setting up a new React.js project with Next.js and how to create and use a single environment variable using dotenv.</p><h4>Table of Contents</h4><ol><li>Why Next.js and dotenv?</li><li>Step-by-Step Guide</li></ol><ul><li>Installing Node.js</li><li>Setting Up a New Next.js Project</li><li>Installing dotenv</li><li>Creating the .env.local File</li><li>Accessing Environment Variables in Your Code</li><li>Running the Project</li></ul><p>3. Key Considerations for Environment Variables</p><h3>Why Next.js and dotenv?</h3><p>Next.js is one of the most popular React frameworks, offering excellent server-side rendering (SSR) capabilities, static site generation (SSG), and a powerful developer experience. It comes with a number of built-in features, including support for environment variables.</p><p>Although Next.js already provides environment variable handling, using dotenv can give you more control over managing those variables, especially if you want to extend the configuration or need additional flexibility.</p><p>Now, let’s dive into how you can quickly get started with Next.js and environment variables.</p><h3>Step-by-Step Guide</h3><h4>1. Installing Node.js</h4><p>First, you need Node.js installed on your machine. Node.js is a JavaScript runtime that allows you to execute JavaScript code outside the browser, and it includes npm (Node Package Manager) to manage dependencies.</p><p>You can verify if Node.js is installed by running:</p><pre>node -v</pre><p>If it’s not installed, you can download and install it from the official website: <a href="https://nodejs.org/">Node.js</a>.</p><h4>2. Setting Up a New Next.js Project</h4><p>Next, let’s scaffold a new Next.js project. The easiest way is to use the create-next-app command, which automatically sets up a Next.js project with all the necessary configuration:</p><pre>npx create-next-app@latest my-nextjs-project<br>cd my-nextjs-project</pre><p>This command creates a new directory named my-nextjs-project (you can change the name) and installs all dependencies needed for Next.js. Once installed, you can navigate into the project folder.</p><h4>3. Installing dotenv</h4><p>While Next.js handles basic environment variable management, installing dotenv is still useful, especially if you plan to manage more complex configurations.</p><p>Run the following command to install dotenv:</p><pre>npm install dotenv</pre><blockquote><em>dotenv helps you load environment variables from a </em><em>.env file into your Node.js application.</em></blockquote><h4>4. Creating the .env.local File</h4><p>Next.js supports different environment files depending on your build environment (development, production, etc.). For this guide, we’ll use the .env.local file, which is specific to local development.</p><p>Create an .env.local file in the root of your project using your terminal or file explorer:bashKopírov kód</p><pre>touch .env.local</pre><p>Inside this file, define your environment variables. In Next.js, any environment variable intended to be used in the browser <strong>must</strong> start with the NEXT_PUBLIC_ prefix.</p><p>For example, define an API URL as follows:</p><pre>NEXT_PUBLIC_API_URL=https://api.example.com</pre><p>This ensures that the variable NEXT_PUBLIC_API_URL will be accessible in the browser.</p><h4>5. Accessing Environment Variables in Your Code</h4><p>Once your environment variable is set in the .env.local file, you can access it inside your Next.js code using process.env.</p><p>Let’s demonstrate this by modifying the pages/index.js file:</p><pre>const HomePage = () =&gt; {<br>  const apiUrl = process.env.NEXT_PUBLIC_API_URL;</pre><pre>  return (<br>    &lt;div&gt;<br>      &lt;h1&gt;Welcome to my Next.js Project!&lt;/h1&gt;<br>      &lt;p&gt;The API URL is: {apiUrl}&lt;/p&gt;<br>    &lt;/div&gt;<br>  );<br>};</pre><pre>export default HomePage;</pre><p>In the example above, we’re accessing the NEXT_PUBLIC_API_URL variable and displaying it on the homepage.</p><h4>6. Running the Project</h4><p>Now that everything is set up, run your Next.js project in development mode by executing:</p><pre>npm run dev</pre><p>Open your browser and navigate to http://localhost:3000. You should see the homepage displaying the value of your environment variable.</p><h3>Key Considerations for Environment Variables</h3><p><strong>Client-Side vs. Server-Side Variables</strong></p><ul><li>Any environment variable that you want to expose to the browser must be prefixed with NEXT_PUBLIC_. Without this prefix, the variable will only be accessible on the server-side.</li></ul><p><strong>Environment-Specific Files</strong></p><ul><li>Next.js allows for multiple environment files based on the environment (.env.local, .env.development, .env.production). This allows you to have environment-specific variables without hardcoding values.</li></ul><h3>Conclusion</h3><p>Managing environment variables is essential for building scalable and secure applications, especially when deploying across different environments. By leveraging Next.js’s built-in support for environment variables and dotenv for configuration management, you can streamline the development process.</p><p>In this guide, we’ve walked through setting up a new React.js project with Next.js and handling environment variables using dotenv. This setup will help you manage your configurations efficiently and securely as your application grows.</p><p>If you have any issues dont hesistate to contact me on <a href="https://www.linkedin.com/in/andrej-hucik/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9356d3b7cf41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide to Launching an AWS EC2 Instance in 2024]]></title>
            <link>https://medium.com/@ado.hucik/step-by-step-guide-to-launching-an-aws-ec2-instance-in-2024-dab9186043aa?source=rss-fd5af5a1d988------2</link>
            <guid isPermaLink="false">https://medium.com/p/dab9186043aa</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Andrej Hucik]]></dc:creator>
            <pubDate>Wed, 04 Sep 2024 13:06:06 GMT</pubDate>
            <atom:updated>2024-09-04T13:07:26.404Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong> Amazon Web Services (AWS) Elastic Compute Cloud (EC2) is a cloud service that provides scalable compute capacity. EC2 allows you to launch virtual servers to host applications, websites, and other services. In this guide, I will walk you through the process of launching an EC2 instance on AWS.</p><p>Whether you’re new to AWS or looking to set up a quick cloud server for a project, this tutorial covers the basics and provides insights into creating an EC2 instance.</p><h3>Prerequisites:</h3><p>Before we start, you’ll need:</p><ul><li>An AWS account (Sign up at <a href="https://aws.amazon.com/">aws.amazon.com</a> if you don’t have one).</li><li>Basic understanding of cloud computing concepts is a plus.</li></ul><h3>Step 1: Log into AWS Console</h3><p>Once you’ve signed up for AWS and logged in, head over to the <strong>AWS Management Console</strong>.</p><ol><li>In the search bar at the top, type <strong>EC2</strong> and click on the service from the drop-down list.</li><li>This will bring you to the EC2 Dashboard, where you can manage your instances, volumes, and other related services.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gRSF13eCsN-arGW5uTVXaA.gif" /></figure><h3>Step 2: Launch a New EC2 Instance</h3><ol><li>On the EC2 Dashboard, click on <strong>Launch Instance</strong> to begin creating your virtual server.</li><li><strong>Name Your Instance</strong> — Give your instance a name so you can easily identify it later (e.g., “My First EC2”).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8d2TATtnshm4LH-_EOEV4w.gif" /></figure><h3>Step 3: Choose an Amazon Machine Image (AMI)</h3><p>An Amazon Machine Image (AMI) is a template that contains the operating system (OS) and required software.</p><ol><li>Select the OS for your instance. If you’re just getting started, you can choose the free tier-eligible <strong>Ubuntu</strong> AMIs.</li><li>Click <strong>Select</strong> to choose your AMI.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-WlSfAMgjYUMXO3SR_Cm2g.gif" /></figure><h3>Step 4: Choose an Instance Type</h3><p>AWS offers various instance types based on the compute, memory, and storage capacity needed for your application.</p><ol><li>For beginners, the <strong>t2.micro</strong> instance type (free tier-eligible) is sufficient. It offers 1 vCPU and 1 GB of memory.</li><li>Click <strong>Next</strong> to configure the instance details.</li></ol><h3>Step 5: Configure Instance Details</h3><p>For most beginner projects, you can leave the default settings here. However, there are a few options worth noting:</p><ol><li><strong>Number of Instances</strong>: By default, it’s set to 1. If you need multiple instances, adjust this value.</li><li><strong>Network</strong>: You can leave it as default unless you’re working in a custom VPC (Virtual Private Cloud).</li><li><strong>Auto-assign Public IP</strong>: Make sure this is enabled, especially if you plan to access your instance over the internet.</li></ol><p>Click <strong>Next</strong> to move to the storage configuration.</p><h3>Step 6: Add Storage</h3><p>By default, AWS offers an 8 GB General Purpose SSD (gp2) root volume for the EC2 instance, which is sufficient for most beginners.</p><ol><li>If needed, you can increase this size or add additional storage volumes.</li><li>Click <strong>Next</strong> to add tags.</li></ol><h3>Step 7: Add Tags (Optional)</h3><p>Tags are key-value pairs used to organize and manage your instances. For now, you can skip this step unless you need tags for specific management purposes.</p><p>Click <strong>Next</strong> to configure security groups.</p><h3>Step 8: Configure Security Group</h3><p>Security groups act as virtual firewalls, controlling inbound and outbound traffic to your instance.</p><ol><li>Choose to <strong>Create a new security group</strong>.</li><li><strong>Add Rules</strong>:</li></ol><ul><li><strong>SSH (port 22)</strong>: This is required to connect to your instance via SSH. Set the Source to <strong>My IP</strong> to restrict SSH access to your current IP address.</li><li><strong>HTTP/HTTPS (port 80/443)</strong>: We plan to host a web application so allow HTTP and HTTPS traffic.</li></ul><p>Click <strong>Review and Launch</strong> once you’ve added the necessary rules.</p><h3>Step 9: Review and Launch</h3><p>Review the configuration for your instance. If everything looks good, click <strong>Launch</strong>.</p><p>You will be prompted to select an existing key pair or create a new one. A key pair is used for SSH access to your instance.</p><ol><li>If you don’t already have a key pair, choose <strong>Create a new key pair</strong>, give it a name, and download the .pem file. <strong>Store this file securely</strong> as you won’t be able to download it again.</li><li>Click <strong>Launch Instance</strong>.</li></ol><h3>Step 10: Access Your EC2 Instance</h3><p>Once your instance is launched, you can access it via SSH using the key pair.</p><ol><li>On the <strong>EC2 Dashboard</strong>, select your instance and click on <strong>Connect</strong>.</li><li>Copy the SSH command provided (it will look something like this):</li></ol><ul><li>ssh -i &quot;your-key.pem&quot; ec2-user@your-ec2-public-ip</li></ul><ol><li>Open a terminal and paste the SSH command, making sure the path to your .pem file is correct. This will allow you to securely access your EC2 instance from the terminal.</li></ol><h3>Conclusion:</h3><p>You have successfully launched an AWS EC2 instance! You can now install software, deploy applications, or use this instance as a server for your project. EC2 is flexible and scalable, making it perfect for hosting various types of applications.</p><p><strong>Next Steps:</strong></p><ul><li>Install software like Node.js, Nginx, or Apache on your instance.</li><li>Secure your EC2 instance by managing security group rules and enabling additional security measures.</li><li>Explore other AWS services such as RDS (Relational Database Service) or S3 (Simple Storage Service) to complement your EC2 deployment.</li></ul><p>Let me know in the comments if you have any questions or run into any issues while setting up your EC2 instance. Or you can contact me on <a href="https://www.linkedin.com/in/andrej-hucik/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dab9186043aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fed Up with Switching AWS Roles? Here’s How to Manage Them Effortlessly!”.]]></title>
            <link>https://medium.com/@ado.hucik/fed-up-with-switching-aws-roles-heres-how-to-manage-them-effortlessly-1e3762e4c68d?source=rss-fd5af5a1d988------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e3762e4c68d</guid>
            <category><![CDATA[extension]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[chrome]]></category>
            <dc:creator><![CDATA[Andrej Hucik]]></dc:creator>
            <pubDate>Wed, 14 Aug 2024 14:32:54 GMT</pubDate>
            <atom:updated>2024-08-14T14:32:54.097Z</atom:updated>
            <content:encoded><![CDATA[<p>The AWS Extend Switch Roles Chrome Extension 😊 simplifies the process of managing multiple AWS accounts. It allows you to effortlessly switch between different roles across various AWS environments. In this guide, I’ll walk you through the installation and configuration of this handy extension using a sample setup with two organizations. By the end, you’ll be able to switch roles in your AWS Management Console with just a few clicks! 🚀</p><h3>Step 1: Install the Extension</h3><h3>Go to the Chrome Web Store 🌐:</h3><ul><li>Open your Chrome browser and visit the <a href="https://chromewebstore.google.com/detail/aws-extend-switch-roles/jpmkfafbacpgapdghgdpembnojdlgkdl?hl=en&amp;pli=1">AWS Extend Switch Roles extension page</a>.</li></ul><h3>Add to Chrome ➕:</h3><ul><li>Click on the “Add to Chrome” button and confirm by selecting “Add Extension.”</li></ul><h3>Access the Extension 🔍:</h3><ul><li>After installation, you’ll find the extension icon in your Chrome toolbar.</li></ul><h3>Step 2: Configure Your AWS Roles 🛠️</h3><h3>Opening the Configuration Page</h3><ul><li>Click on the AWS Extend Switch Roles extension icon in the toolbar. This will open the configuration page where you can manage your AWS accounts.</li></ul><h3>Editing the Configuration File ✍️</h3><ul><li>The extension uses a format similar to the ~/.aws/config file, which will be familiar to those who have used the AWS CLI.</li><li>You can either import your existing configuration or manually add entries. Here’s how to set it up.</li></ul><h3>Sample Configuration for Two Organizations 🏢🏢</h3><p>Let’s assume you are managing roles across two organizations. Below is a sample configuration file for these organizations. Replace the placeholders with actual values from your AWS environment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBJxOnQQp9FsLd7ndXqRBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9KFYTrIaX5aJIUTtLX6NZg.png" /></figure><pre><br><br>[Organization1-Account1]<br>aws_account_id = 123456789012<br>role_name = Admin<br>region = us-west-2<br>aws_account_alias = Org1-Account1</pre><pre>[Organization1-Account2]<br>aws_account_id = 210987654321<br>role_name = Developer<br>region = us-west-1<br>aws_account_alias = Org1-Account2</pre><pre>[Organization2-Account1]<br>aws_account_id = 987654321098<br>role_name = ReadOnly<br>region = eu-central-1<br>aws_account_alias = Org2-Account1</pre><pre>[Organization2-Account2]<br>aws_account_id = 876543210987<br>role_name = PowerUser<br>region = eu-west-1<br>aws_account_alias = Org2-Account2</pre><h3>What Each Field Means 🔍:</h3><ul><li><strong>aws_account_id</strong>: The 12-digit AWS account ID.</li><li><strong>role_name</strong>: The IAM role you want to assume in the account.</li><li><strong>region</strong>: The default region when you switch to this role.</li><li><strong>aws_account_alias</strong>: An alias for easier identification of the account.</li></ul><h3>Saving the Configuration 💾</h3><p>Once you’ve entered your configuration:</p><ul><li>Click the “Save” button on the configuration page.</li><li>The roles will now be available in your AWS Management Console.</li></ul><h3>Step 3: Using the Extension ⚡</h3><h3>Switching Roles</h3><ul><li><strong>Log in to AWS</strong>: Open your AWS Management Console.</li><li><strong>Select Role</strong>: Click on your account name in the top-right corner. You should see a list of roles based on your configuration. Click on the role you wish to assume.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*GwVyQGiIq-sYOQp8wExyuw.png" /></figure><h3>Customizing the Experience 🎨</h3><ul><li><strong>Button Appearance</strong>: You can customize the color of the role buttons by changing the hex color code in the configuration file (e.g., #ff5733).</li><li><strong>Additional Settings</strong>: On the configuration page, you can adjust settings like hiding account IDs, showing only matching roles, and choosing between light and dark visual modes.</li></ul><h3>Troubleshooting 🛠️</h3><ul><li><strong>Roles Not Appearing</strong>: Ensure your AWS account ID, role name, and region are correctly entered.</li><li><strong>Assumption Issues</strong>: Verify that your IAM roles have the necessary permissions and that your user account has the right to assume these roles.</li><li><strong>Sync Issues</strong>: If using Chrome’s sync storage, make sure your browser’s sync function is enabled.</li></ul><h3>Conclusion 🎉</h3><p>With the AWS Extend Switch Roles extension, managing multiple AWS accounts has never been easier. By following the steps above, you can configure the extension to switch between different roles across various organizations seamlessly. This tool not only saves time ⏳ but also enhances your productivity when working in the AWS Management Console.</p><p>For more details or to explore advanced configurations, visit the extension’s page on the Chrome Web Store.</p><p>Feel free to reach out to me if you need help! 💬 <a href="https://www.linkedin.com/in/andrej-hucik/">Connect with me on LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e3762e4c68d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web3 Frontend(Angular) Deployment: www.Fleek .co vs www.dAppling.network ]]></title>
            <link>https://medium.com/@ado.hucik/web3-frontend-angular-deployment-www-fleek-co-vs-www-dappling-network-c787ca0452e2?source=rss-fd5af5a1d988------2</link>
            <guid isPermaLink="false">https://medium.com/p/c787ca0452e2</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Andrej Hucik]]></dc:creator>
            <pubDate>Fri, 07 Jul 2023 13:21:33 GMT</pubDate>
            <atom:updated>2023-07-07T13:21:33.384Z</atom:updated>
            <content:encoded><![CDATA[<h3>Web3 Frontend(Angular) Deployment: www.Fleek .co 🚀vs <a href="http://www.dappling.network/">www.dAppling.network</a> 🌐</h3><p>Fleek and dAppling are both dynamic platforms that cater to decentralized applications (dApps) and provide Web3 infrastructure for developers and users. 🏗️🚀</p><p>Fleek offers a comprehensive set of tools 🧰 for developers looking to create and launch their Web3 dApps. These include a user interface (UI), a command-line interface (CLI), a software development kit (SDK), and a GraphQL API. The platform provides services like IPFS hosting 🗂️, IPFS storage, ENS and IPNS (Domain Management), and dedicated IPFS gateways &amp; IPFS APIs.</p><p>Fleek uses IPFS for file storage, offering more secure 🔒 and cost-effective 💰 solutions for both users and network operators. The Fleek Network CDN uses IPFS to offer edge computing services, utilizing the closest nodes to the end user whenever it is serving data. Fleek also supports blockchain-based domain naming systems such as ENS (Ethereum Name Service) and HNS (Handshake).</p><p>It’s also chain-agnostic, allowing for compatibility with multiple blockchain networks 🌐 including Ethereum, Polygon, Cosmos, Fuel, BNB Chain, Polkadot, Solana, and ImmutableX. However, Fleek is a relatively new entrant in the blockchain space, having launched in 2019, and it relies on third-party networks like Filecoin and the Internet Computer instead of operating a native IPFS protocol​. 🆕🎯</p><p>dAppling, on the other hand, offers a simpler solution 😌 for hosting decentralized Web3 frontends, helping to prevent specific frontend attacks. Its key features include enhanced security 🛡️, verifiable deployments ✅, decentralized deployments 🔄, performant frontends 🚀, and smart contract-controlled frontends. They offer a service where developers provide their code and dAppling deploys their applications on Web3 infrastructure. 👨‍💻🌐</p><h3>PRICING 🏷️</h3><p>Fleek.co 🌐</p><ul><li>Free 🎉: This tier includes IPFS Hosting &amp; Storage (up to 500MB), IPFS API Requests (up to 50,000), CDN Bandwidth (up to 100GB), CDN Requests (up to 1 million), and Dedicated IPFS Gateways (Ethereum, IC). The cost for this plan is $0.00, completely free!</li><li>Pay as You Grow 📈: This tier includes everything in the Free plan, with additional costs for overages. The costs are $0.015 per GB for IPFS Hosting &amp; Storage and CDN Bandwidth, and $0.015 per 10k for IPFS API Requests and CDN Requests.</li><li>Pro 💼: The Pro plan costs $20 per month and includes everything in the Pay as You Grow plan, with higher limits. It allows for up to 1TB for IPFS Hosting &amp; Storage, up to 1 million IPFS API Requests, up to 2TB for CDN Bandwidth, and up to 10 million CDN Requests. The cost for overages is the same as the Pay as You Grow plan.</li><li>Business 🏢: The Business plan costs $200 per month and includes everything in the Pro plan, with even higher limits. It allows for up to 10TB for IPFS Hosting &amp; Storage, up to 10 million IPFS API Requests, up to 20TB for CDN Bandwidth, and up to 100 million CDN Requests. The cost for overages is $0.01 per GB for IPFS Hosting &amp; Storage and CDN Bandwidth, and $0.01 per 10k for IPFS API Requests and CDN Requests.</li></ul><p>Dappling 🌐 1️⃣: It’s still in beta and it is free 🎉! Enjoy while it lasts!</p><h3>Pros and Cons 🤔</h3><p>Fleek.co 🌐</p><p><strong>Pros</strong>:</p><ol><li>Easy to build websites and apps on the open web, which is permissionless, trustless, censorship-resistant, and free of centralized gatekeepers​​ 👍🌍.</li><li>Provides an open interface for hosting and storing on the Open Web, using protocols that power trustless and decentralized alternatives to the current web’s centralized infrastructure services​​ 🛠️.</li><li>Users can upload, store, and fetch files from IPFS in a user-friendly manner with UI, API, and CLI interfaces 📁🚀. It also includes S3 &amp; Minio compatibility, built-in pinning orchestration, compression, image resizing, and global CDN​.</li><li>Simple and fast deployment to IPFS​​ 🚀.</li><li>Supports crypto and credit card payments​​ 💳💰.</li><li>Offers seamless ENS domain management​​ 🔀.</li><li>Automatically archives and backs up hosted sites, apps, and stored files to Filecoin, providing a redundant backup layer​​ 💾.</li><li>Provides a Hosting CLI for deploying from the terminal, pushing sites from the local machine, and custom workflows like GitHub Actions for deploys 🖥️👩‍💻.</li><li>Compatible with almost all sites and popular frameworks​(doesn’t support Vue or Angular but it’s easy to set up) 🌍🔄.</li><li>Utilizes a revolutionary edge network combining distributed p2p technologies (IPFS) and edge computing for fast load times at a fraction of the cost​1​ 💡.</li><li>Offers 24/7 customer support​​ 👩‍💼.</li><li>Provides learning resources and expert assistance for getting started with using Fleek, deploying your first site, and storing files on IPFS​​ 📘👩‍🏫.</li></ol><p><strong>Cons</strong>:</p><ol><li>Given its use of emerging web technologies like IPFS, there may be a learning curve for developers who are used to traditional web development platforms 📚.</li><li>The reliance on decentralized networks could potentially result in slower speeds or higher latency in certain situations, although Fleek’s edge network is designed to mitigate this ⏱️.</li></ol><p>Dappling 🌐</p><p><strong>Pros</strong>:</p><ol><li>Provides a simple solution for hosting decentralized Web3 frontends​​ 🌐🔀.</li><li>Aims to create an environment that nurtures the growth of dApps and promotes the adoption of decentralized technology​​ 🌱.</li><li>Offers a suite of features to help build and manage dApps in an easy-to-use manner​​ 🧰.</li></ol><p><strong>Cons</strong>:</p><ol><li>As with Fleek, there could be a learning curve for developers not familiar with decentralized technologies and Web3 🎓.</li><li>The specifics of Dappling’s offerings are not as detailed in the sources I found, which might make it harder for users to fully understand what they’re getting 😕.</li><li>Without direct access to the Dappling website, it’s harder to fully assess its features, support, and user experience 😯.</li><li>Compatible only with Nextjs and React (Other frameworks need to be set up manually) ⚙️.</li></ol><h3>Deployment: 🚀</h3><p>Dappling: 🌐</p><p>1️⃣: At first, you click New Project Button 🆕🖱️</p><p>2️⃣: You connect your GitHub account (this is the only possibility) 🔗👤</p><p>3️⃣: After you select your project 📂✅</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xl_cnwT0k8T04pi6RbPqYw.png" /></figure><p>4️⃣: Then you select your framework</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KNyTJOHxAlOFMUkNa2KPmw.png" /></figure><p>💻 I tested the Angular Framework so I chose ‘Other’ 🅾️</p><p>5️⃣: This is my configuration for an Angular project, it was pretty easy 😊⚙️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l54Td55uLwvJgKYqGWqtDQ.png" /></figure><p>6️⃣: You just click ‘Deploy’ 🖱️➡️🚀</p><p>7️⃣: At the end, you can see Preview, and DNS links 🌐🔗</p><p>Fleek.co: 🌐</p><p>1️⃣: Click ‘Add new site’ 🆕➕</p><p>2️⃣: Then you connect with GitHub and choose a project 🔗👤📂</p><p>3️⃣: Then you choose the protocol where you want to deploy. I would recommend IPFS (Interplanetary File System) 📡 I tried both but I had no luck with ICMP (Internet computer) so I used IPFS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FcSXXdtcCP-wRoCvelpTQ.png" /></figure><p>4️⃣: We choose the framework (there are more possibilities but still no Angular or Vue) and chose ‘Other’ 🅾️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*GPqlaq3JRriZB3TwHNIyIg.png" /></figure><p>5️⃣: Then fill basic build settings, there is also the possibility of using ENV variables, on the other hand, Dappling doesn’t have this option 📋⚙️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q4D7PgKr7kKN2mfX77FEsQ.png" /></figure><p>6️⃣: Now you click ‘Deploy’ 🖱️➡️🚀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A89q0k57zLRs4djp69xfOQ.png" /></figure><h3>Final Thoughts 💭</h3><p>Dappling is in beta, so it has more limited options but it seems to me that it’s a little faster ⏩, but there missing environment variables options and it is pretty limiting ❌.</p><p>If you want follow me on <a href="https://www.linkedin.com/in/andrej-hucik/">LinkedIN</a> 💻.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c787ca0452e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google analytics 4 with angular 15 standalone components from HTM]]></title>
            <link>https://medium.com/@ado.hucik/google-analytics-4-with-angular-15-standalone-components-from-htm-366c2a51ee3d?source=rss-fd5af5a1d988------2</link>
            <guid isPermaLink="false">https://medium.com/p/366c2a51ee3d</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[google-analytics-4]]></category>
            <dc:creator><![CDATA[Andrej Hucik]]></dc:creator>
            <pubDate>Fri, 12 May 2023 12:34:34 GMT</pubDate>
            <atom:updated>2023-05-18T08:34:03.956Z</atom:updated>
            <content:encoded><![CDATA[<h3>Google analytics 4 with angular 15 standalone components HTML</h3><h3>What is google analytics 4 📊</h3><p>Google Analytics 4, often abbreviated as GA4, is the latest version of Google’s web analytics service. It was designed to provide a more complete understanding of how users interact with your online content across different devices and platforms.</p><p>GA4 uses an event-based model of tracking, meaning it focuses more on the actions that users take on your site or app rather than just the pages they visit. It allows for more detailed and customizable tracking of user behavior.</p><h3>Angular Standalone components 🅰️</h3><p>Standalone components provide a simplified way to build Angular applications. Standalone components, directives, and pipes aim to streamline the authoring experience by reducing the need for <a href="https://angular.io/api/core/NgModule">NgModule</a>s. Existing applications can optionally and incrementally adopt the new standalone style without any breaking changes.</p><h3>Implementation 🛠️</h3><ol><li>Begin by installing the npm package into your project. You can find it at: <a href="https://npm.io/package/@kattoshi/ngx-ga4">https://npm.io/package/@kattoshi/ngx-ga4</a>. npm i <a href="http://twitter.com/kattoshi/ngx-ga4">@kattoshi/ngx-ga4</a></li><li>Next, import the NgxGa4Module into your app.module and configure it with your Measurement ID. NgxGa4Module.forRoot({measurementId: ‘measurementId’}),</li><li>Sign in to your Google Analytics account.</li><li>Click “Admin” at the lower left corner of the page.</li><li>In the “Account” column, use the drop-down menu to select the account that contains the property you want.</li><li>In the “Property” column, use the drop-down menu to select the property you want.</li><li>In the “Property” column, click “Data Streams”.</li><li>Select the appropriate data stream (Web, iOS app, Android app).</li><li>Your Measurement ID is listed there. It should start with “G-” followed by a series of numbers and letters.</li><li>Next, import the NgxGa4Module into your app.module and configure it with your Measurement ID.</li></ol><pre>import { Component, OnInit } from &#39;@angular/core&#39;;<br>import { NgxGa4Module } from &#39;@kattoshi/ngx-ga4&#39;;<br><br>@Component({<br>  selector: &#39;app-about-us&#39;,<br>  templateUrl: &#39;./about-us.component.html&#39;,<br>  styleUrls: [&#39;./about-us.component.css&#39;],<br>  imports: [<br>    NgxGa4Module<br>  ],<br>  standalone: true<br>})<br>export class AboutUsComponent implements OnInit {<br><br>  constructor() { }<br><br>  ngOnInit(): void {<br>  }<br><br>}</pre><p>10. Finally, in your HTML template, add the following code to track events:</p><pre>&lt;button gtagEvent trackOn=&quot;click&quot; action=&quot;standaloneTrue&quot;&gt;test ga4&lt;/button&gt;</pre><p>Now, you can observe the real-time events in the Google Analytics admin dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0b51zElpE5qKjG1Ydk8HrA.png" /></figure><p>You can find whole code in github <a href="https://gitlab.com/ado.hucik/test-ga4/-/blob/main/src/app/about-us/about-us.component.html">https://gitlab.com/ado.hucik/test-ga4/-/blob/main/src/app/about-us/about-us.component.html</a></p><h3>Conclusion</h3><p>I hope this tutorial will help you to implement google analytics 4 into angular application. Also you can follow me on L<a href="https://www.linkedin.com/in/andrej-hucik/">inked</a>IN.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=366c2a51ee3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>