<?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 Dwi Wijonarko on Medium]]></title>
        <description><![CDATA[Stories by Dwi Wijonarko on Medium]]></description>
        <link>https://medium.com/@d.wijonarko?source=rss-469d16ee01f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1yi3Lb97YLCbWAc7.</url>
            <title>Stories by Dwi Wijonarko on Medium</title>
            <link>https://medium.com/@d.wijonarko?source=rss-469d16ee01f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 01:16:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@d.wijonarko/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[What is Composer and How To Use It]]></title>
            <link>https://medium.com/@d.wijonarko/what-is-composer-and-how-to-use-it-16decfb0ddeb?source=rss-469d16ee01f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/16decfb0ddeb</guid>
            <category><![CDATA[composer]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Dwi Wijonarko]]></dc:creator>
            <pubDate>Tue, 21 Mar 2023 09:06:01 GMT</pubDate>
            <atom:updated>2023-03-21T09:06:01.123Z</atom:updated>
            <content:encoded><![CDATA[<p>Composer is a powerful tool for managing dependencies in PHP projects. It allows developers to easily install and update third-party libraries and packages, making it an essential tool for modern PHP development. In this article, we will explore how to use Composer to manage dependencies in your PHP projects.</p><h4>What is Composer?</h4><p>Composer is a dependency management tool for PHP that simplifies the process of managing and installing third-party libraries and packages. It uses a simple JSON file called composer.json to define the dependencies of a project and their respective versions.</p><p>Composer makes it easy to integrate third-party libraries and packages into your PHP projects without having to manually download and install each one. This is especially helpful when you need to use multiple libraries in your project, as Composer can handle the installation and updating of all dependencies in one command.</p><h4>Installing Composer</h4><p>Before we can use Composer, we need to install it on our system. Composer can be installed on Windows, Linux, and macOS, and the installation process is straightforward.</p><p>To install Composer on your system, follow these steps:</p><ol><li>Download the Composer executable file for your system from the official Composer website.</li><li>Follow the installation instructions for your system to install Composer.</li><li>Once installed, you can verify that Composer is working by running the following command in your terminal or command prompt:</li><li>composer — version</li></ol><p>If everything is installed correctly, you should see the version of Composer displayed in your terminal.</p><h4>Using Composer in your PHP projects</h4><p>To use Composer in your PHP projects, you need to create a composer.json file in the root directory of your project. This file defines the dependencies of your project and their respective versions.</p><p>Here is an example of a simple composer.json file:</p><pre>{<br>    &quot;require&quot;: {<br>        &quot;monolog/monolog&quot;: &quot;^2.0&quot;<br>    }<br>}</pre><p>This composer.json file defines a dependency on the Monolog library, which is a popular logging library for PHP. The “².0” version constraint means that Composer will install the latest version of Monolog that is compatible with version 2.</p><p>Once you have defined the dependencies in your composer.json file, you can use the following command to install them:</p><pre>composer install</pre><p>This command will read the composer.json file and install all the required dependencies in a directory called vendor. This directory will be created in the root directory of your project.</p><p>If you need to update your dependencies to a newer version, you can use the following command:</p><pre>composer update</pre><p>This command will read the composer.json file and update all the dependencies to their latest version that matches the version constraints defined in the file.</p><h4>Conclusion</h4><p>Composer is a powerful tool for managing dependencies in PHP projects. It simplifies the process of installing and updating third-party libraries and packages, making it an essential tool for modern PHP development. By using Composer, you can easily integrate third-party libraries into your project and keep them up to date with the latest versions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16decfb0ddeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Go on Linux and Creating Your First “Hello World” Program]]></title>
            <link>https://medium.com/@d.wijonarko/installing-go-on-linux-and-creating-your-first-hello-world-program-561dbd2f1eb3?source=rss-469d16ee01f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/561dbd2f1eb3</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Dwi Wijonarko]]></dc:creator>
            <pubDate>Wed, 08 Mar 2023 04:15:44 GMT</pubDate>
            <atom:updated>2023-03-08T04:15:44.847Z</atom:updated>
            <content:encoded><![CDATA[<p>Go, also known as Golang, is an open-source programming language created by Google in 2009. It is designed to be simple, efficient, and highly scalable, making it a popular choice for building modern software applications. In this article, we will go through the process of installing Go on Linux and creating your first “Hello World” program.</p><h4>Step 1: Download Go</h4><p>The first step to installing Go on Linux is to download the latest stable version of the language from the official website. Go to the downloads page and select the appropriate package for your Linux distribution.</p><h4>Step 2: Install Go</h4><p>Once you have downloaded the Go package, extract the archive to a directory on your system. For example, you could extract the files to the /usr/local directory by running the following command:</p><pre>sudo tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz</pre><p>Replace $VERSION, $OS, and $ARCH with the version of Go you downloaded, your Linux distribution, and your system architecture, respectively.</p><p>Next, you will need to set the PATH environment variable to include the Go binary directory. You can do this by adding the following line to your shell profile (e.g., ~/.bashrc or ~/.zshrc):</p><pre>export PATH=$PATH:/usr/local/go/bin</pre><p>Finally, to verify that Go is installed correctly, open a new terminal window and run the following command:</p><pre>go version</pre><p>If everything is working correctly, you should see the version of Go you just installed printed to the terminal.</p><p>Step 3: Create Your First “Hello World” Program</p><p>Now that you have installed Go on Linux, it’s time to create your first program. Open a text editor and create a new file called hello.go. Type the following code into the file:</p><pre>package main<br>import &quot;fmt&quot;<br>func main() {<br>    fmt.Println(&quot;Hello, world!&quot;)<br>}</pre><p>Save the file and then navigate to the directory where you saved it in the terminal. To compile and run the program, simply type the following command:</p><pre>go run hello.go</pre><p>You should see the following output printed to the terminal:</p><pre>Hello, world!</pre><p>Congratulations, you have just created your first Go program!</p><h4>Conclusion</h4><p>Installing Go on Linux is a straightforward process that only takes a few minutes. Once you have Go up and running, you can start building powerful and efficient software applications. In this article, we covered how to install Go on Linux and create a simple “Hello World” program. With this knowledge, you can now begin exploring the vast capabilities of Go and create your own amazing programs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=561dbd2f1eb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Ruby On Rails With Docker]]></title>
            <link>https://medium.com/@d.wijonarko/install-ruby-on-rails-with-docker-3a61c356aa1f?source=rss-469d16ee01f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a61c356aa1f</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Dwi Wijonarko]]></dc:creator>
            <pubDate>Mon, 06 Mar 2023 04:12:40 GMT</pubDate>
            <atom:updated>2023-03-06T04:12:40.341Z</atom:updated>
            <content:encoded><![CDATA[<p>Ruby on Rails is a popular web application framework that allows developers to build dynamic and robust web applications quickly. Docker is an open-source platform that makes it easier to develop, deploy, and run applications by containerizing them. In this article, we will walk you through the steps to install Ruby on Rails with Docker.</p><h3>Step 1: Install Docker</h3><p>The first step to getting started with Docker is to install it on your system. You can download Docker for your operating system from the Docker website [<a href="https://docs.docker.com/get-docker/">https://docs.docker.com/get-docker/</a>]. Follow the installation instructions to install Docker on your system.</p><h3>Step 2: Create a new Rails application</h3><p>Once you have Docker installed on your system, you can start creating a new Rails application. To create a new Rails application, you will need to run the following command:</p><pre>$ docker run --rm -v &quot;$PWD&quot;:/app -w /app ruby:3.0.3 rails new myapp</pre><p>This command will create a new Rails application named myapp in the current directory. The -v &quot;$PWD&quot;:/app flag mounts the current directory to the /app directory in the container. The -w /app flag sets the working directory to /app.</p><h3>Step 3: Build the Docker image</h3><p>Now that you have created a new Rails application, you will need to build a Docker image for it. To build a Docker image, you will need to create a Dockerfile. Create a new file named Dockerfile in the myapp directory with the following content:</p><pre>FROM ruby:3.0.3<br><br>WORKDIR /app<br><br>COPY Gemfile Gemfile.lock ./<br>RUN bundle install<br><br>COPY . .<br><br>CMD [&quot;rails&quot;, &quot;server&quot;, &quot;-b&quot;, &quot;0.0.0.0&quot;]</pre><p>This Dockerfile specifies that we want to use the ruby:3.0.3 image as our base image. We set the working directory to /app and copy the Gemfile and Gemfile.lock files to the container. We then run bundle install to install the required gems. Finally, we copy the rest of the application files and start the Rails server.</p><p>To build the Docker image, run the following command:</p><pre>$ docker build -t myapp .</pre><p>This command will build a Docker image named myapp using the Dockerfile in the current directory.</p><h3>Step 4: Run the Rails application</h3><p>Now that you have built the Docker image, you can run the Rails application using the following command:</p><pre>$ docker run --rm -p 3000:3000 myapp</pre><p>This command will start a container from the myapp image and map port 3000 in the container to port 3000 on the host machine. You should now be able to access the Rails application by navigating to http://localhost:3000 in your web browser.</p><h3>Conclusion</h3><p>In this article, we have shown you how to install Ruby on Rails with Docker. By following these steps, you can easily containerize your Rails application and run it in a Docker container. Docker makes it easier to manage dependencies, deploy your application, and scale it as needed. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a61c356aa1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Laravel 10 with Docker]]></title>
            <link>https://medium.com/@d.wijonarko/installing-laravel-10-with-docker-34925139ef91?source=rss-469d16ee01f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/34925139ef91</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Dwi Wijonarko]]></dc:creator>
            <pubDate>Thu, 02 Mar 2023 02:22:44 GMT</pubDate>
            <atom:updated>2023-03-02T02:22:44.215Z</atom:updated>
            <content:encoded><![CDATA[<p>Installing Laravel 10 with Docker is an efficient and easy way to get started with Laravel development. Docker provides a containerized environment for running applications and services, allowing developers to quickly set up and run applications in a consistent and repeatable way. In this article, we will walk you through the steps to install Laravel 10 with Docker.</p><p>Prerequisites:</p><p>Before we get started, you need to have the following prerequisites installed on your machine:</p><ol><li>Docker: Docker is a platform for developing, shipping, and running applications. You can download and install Docker Desktop for your operating system from the official Docker website.</li><li>Composer: Composer is a dependency manager for PHP. You can download and install Composer from the official Composer website.</li></ol><h4>Step 1: Create a new Laravel project</h4><p>The first step is to create a new Laravel project. Open your terminal and run the following command:</p><pre>composer create-project --prefer-dist laravel/laravel laravel-docker</pre><p>This will create a new Laravel project in a directory called “laravel-docker.”</p><h4>Step 2: Create a Dockerfile</h4><p>The next step is to create a Dockerfile. A Dockerfile is a script that contains instructions on how to build a Docker image. Open your text editor and create a new file called “Dockerfile” in the root directory of your Laravel project.</p><p>Add the following code to the Dockerfile:</p><pre>FROM php:7.4-fpm<br><br>WORKDIR /var/www/html<br><br>COPY . .<br><br>RUN apt-get update &amp;&amp; \<br>    apt-get install -y libpq-dev &amp;&amp; \<br>    docker-php-ext-install pdo pdo_pgsql<br><br>CMD [&quot;php&quot;, &quot;artisan&quot;, &quot;serve&quot;, &quot;--host&quot;, &quot;0.0.0.0&quot;]</pre><p>This Dockerfile uses the official PHP 7.4 image as the base image, sets the working directory to “/var/www/html”, copies the Laravel project files into the container, installs the PostgreSQL driver for PHP, and sets the command to run the Laravel development server.</p><h4>Step 3: Build the Docker image</h4><p>The next step is to build the Docker image. Open your terminal and navigate to the root directory of your Laravel project. Run the following command to build the Docker image:</p><pre>docker build -t laravel-docker .</pre><p>This will build the Docker image and tag it as “laravel-docker.”</p><h4>Step 4: Run the Docker container</h4><p>The final step is to run the Docker container. Run the following command to start the Docker container:</p><pre>docker run -p 8000:8000 laravel-docker</pre><p>This will start the Docker container and map port 8000 in the container to port 8000 on your local machine.</p><p>You can now access your Laravel application by navigating to <a href="http://localhost:8000/">http://localhost:8000</a> in your web browser.</p><h4>Conclusion:</h4><p>In this article, we have walked you through the steps to install Laravel 10 with Docker. Docker provides a containerized environment for running applications, which makes it easy to set up and run applications in a consistent and repeatable way. With this setup, you can easily develop and deploy your Laravel applications with Docker.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34925139ef91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello]]></title>
            <link>https://medium.com/@d.wijonarko/hello-adefe9df7e3?source=rss-469d16ee01f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/adefe9df7e3</guid>
            <dc:creator><![CDATA[Dwi Wijonarko]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 23:25:59 GMT</pubDate>
            <atom:updated>2022-06-14T23:25:59.572Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello world, I’m trying something new here</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adefe9df7e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>