<?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: Alexander Obi Davids</title>
    <description>The latest articles on DEV Community by Alexander Obi Davids (@davidsalexande3).</description>
    <link>https://dev.to/davidsalexande3</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%2F831925%2F7e60744f-2ee9-4fa8-8c31-4b90f3036cb9.jpg</url>
      <title>DEV Community: Alexander Obi Davids</title>
      <link>https://dev.to/davidsalexande3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/davidsalexande3"/>
    <language>en</language>
    <item>
      <title>Dockerize your Next.js application on Spheron Compute</title>
      <dc:creator>Alexander Obi Davids</dc:creator>
      <pubDate>Fri, 30 Jun 2023 22:27:49 +0000</pubDate>
      <link>https://dev.to/davidsalexande3/dockerize-your-nextjs-application-on-spheron-compute-2l48</link>
      <guid>https://dev.to/davidsalexande3/dockerize-your-nextjs-application-on-spheron-compute-2l48</guid>
      <description>&lt;p&gt;&lt;strong&gt;Spheron&lt;/strong&gt; is a decentralized cloud storage platform that provides an all-in-one solution for building and deploying DApps. In this article, we will show you how to dockerize your Next.js application and deploy it on Spheron Compute.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Docker?
&lt;/h2&gt;

&lt;p&gt;Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Next.js?
&lt;/h2&gt;

&lt;p&gt;Next.js is a popular React-based framework for building server-rendered or statically-exported React applications. It provides features such as automatic code splitting, server-side rendering, and more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dockerizing your Next.js application
&lt;/h2&gt;

&lt;p&gt;To Dockerize your Next.js application, you need to create a Dockerfile in the root of your project directory. This file contains instructions for building a Docker image of your application. Here is an example Dockerfile for a Next.js application:&lt;/p&gt;

&lt;h3&gt;
  
  
  Use an official Node.js runtime as the base image
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;FROM node:alpine&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Set the working directory
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;WORKDIR /app&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Copy package.json and package-lock.json
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;COPY package*.json ./&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Install dependencies
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;RUN npm install&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Copy the rest of the files
&lt;/h3&gt;

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

&lt;h3&gt;
  
  
  Build the app
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;RUN npm run build&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Expose port 3000
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;EXPOSE 3000&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Start the app
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;CMD ["npm", "start"]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This Dockerfile uses the official Node.js runtime as the base image, sets the working directory to /app, copies the package.json and package-lock.json files, installs dependencies, copies the rest of the files, builds the app, exposes port 3000, and starts the app.&lt;/p&gt;

&lt;p&gt;Once you have created the Dockerfile, you can build the Docker image by running the following command in your terminal:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;docker build -t my-nextjs-app .&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
This command builds a Docker image with the tag my-nextjs-app using the Dockerfile in the current directory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploying your Next.js application on Spheron Compute
&lt;/h2&gt;

&lt;p&gt;Once you have Dockerized your Next.js application, you can deploy it on Spheron Compute. To do this, follow these steps:&lt;/p&gt;

&lt;p&gt;Go to the Compute section in Spheron.&lt;/p&gt;

&lt;p&gt;Create a new cluster by clicking on the “New Cluster” button.&lt;br&gt;
Click on the “Select from marketplace app” button for fast-track deployment.&lt;br&gt;
Select the IPFS template from the marketplace.&lt;br&gt;
Choose your instance plan and click on the “Deploy” button.&lt;br&gt;
Once your IPFS node is up and running, you can upload files to IPFS via WebUI or HTTP-Client, and access files using IPFS Gateway.&lt;/p&gt;

&lt;p&gt;That’s it! You have successfully dockerized your Next.js application and deployed it on Spheron Compute. With Spheron’s all-in-one solution, you can easily build and deploy DApps without having to worry about complicated infrastructure.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>WHAT ARE THE DIFFERENCES BETWEEN WEB3 AND WEB2?</title>
      <dc:creator>Alexander Obi Davids</dc:creator>
      <pubDate>Thu, 17 Mar 2022 03:51:31 +0000</pubDate>
      <link>https://dev.to/davidsalexande3/what-are-the-differences-between-web3-and-web2-kem</link>
      <guid>https://dev.to/davidsalexande3/what-are-the-differences-between-web3-and-web2-kem</guid>
      <description>&lt;p&gt;In the emerging technoverse of 21st century technology, one of the subtly ignored and sometimes less understood topics is the key differences between web 3.0 and web 2.0. To non-tech folks, web 2.0 and web 3.0 are just slightly different variants of the same internet or worldwide web. The internet, however, has been evolving over time and the latest version is web 3.0, which is an improvement over a prior version, web 2.0. Before web 2.0, the existing version of the worldwide web was web 1.0, but this version did not provide sufficient features for interaction with web content.  With the advent of web 2.0, some of the deficiencies of web 1.0 were corrected. Web 2.0, in turn had its own drawbacks which subsequently have been improved upon in web 3.0. &lt;/p&gt;

&lt;p&gt;Web 2.0 was the second generation of the worldwide web which greatly enhanced human interaction with web content. It enabled web designers to improve on the design of web pages and also facilitated dynamic web content. Web 2.0 also enhanced the use of APIs and witnessed the widespread adoption of technologies such as social media, Ecommerce, database-driven websites, computer networking, etc. These were facilitated by a faster and stronger internet. The internet was more robust and widespread in web 2.0 as a result of the improvements in interactivity, inter-connectivity and overall efficiency that were achieved. &lt;/p&gt;

&lt;p&gt;Although web 2.0 was quite advanced and provided a number of sophisticated features, the evolving demands of the workplace, business, and human interactions soon necessitated the introduction of several improvements to web 2.0 with new innovations. Web 2.0 was beset by lack of data integrity, too much centralization, and trust requirements. This gave rise to web 3.0. Web 3.0 has enabled the creation of trust-less networks and decentralized web platforms. In web 3.0, there is no need for centralized counterparties or facilitators. Web 3.0 enables internet users to own and exert greater control on their data. This is possible because there is greater privacy and security in web 3.0, especially with the advent of blockchains and cryptographic technologies. In web 3.0, there is also greater synergy between cryptographic algorithms and Artificial Intelligence. &lt;/p&gt;

&lt;p&gt;Even though Web 3.0 is still at a nascent stage in its development, there are a lot of ongoing training programs, awareness campaigns and publicity being targeted at promoting web 3.0 technologies and training developers in web3 technologies. In this regard, the efforts of Blockgames (&lt;a href="https://blockgames.gg/"&gt;https://blockgames.gg/&lt;/a&gt;), Nestcoin (&lt;a href="https://nestcoin.com/"&gt;https://nestcoin.com/&lt;/a&gt; ), and Zuriteam (&lt;a href="https://zuri.team/"&gt;https://zuri.team/&lt;/a&gt; ) are commendable as they have shown great commitment towards the training of blockchain developers in Africa. With other similar programs springing up all over the world, web 3.0 will soon supplant web 2.0 leaving little or no relics.&lt;/p&gt;

&lt;p&gt;Web 2.0 and web 3.0. may seem to be just two slightly different, versions of the internet, yet a deeper inquiry into the features of each version of the internet will reveal marked differences.  Web 2.0 is characterized by too much centralization and trusting requirements whereas web 3.0 facilitates decentralization , trust-less relationships and operations on the web, and greater internet security on decentralized web infrastructure. Web 3.0 is still at its early stage of development, but it will determine the future course of development of the internet.&lt;/p&gt;

</description>
      <category>web3</category>
      <category>blockchain</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
