<?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 Nadir Inab  on Medium]]></title>
        <description><![CDATA[Stories by Nadir Inab  on Medium]]></description>
        <link>https://medium.com/@nadir.inab.dev?source=rss-a67256dd8081------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vvbntEmZ65xHaQGxNYF5Lw.jpeg</url>
            <title>Stories by Nadir Inab  on Medium</title>
            <link>https://medium.com/@nadir.inab.dev?source=rss-a67256dd8081------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:56:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nadir.inab.dev/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[Data into Visual Insights : csvmaster]]></title>
            <link>https://medium.com/@nadir.inab.dev/data-into-visual-insights-csvmaster-d62129c3d212?source=rss-a67256dd8081------2</link>
            <guid isPermaLink="false">https://medium.com/p/d62129c3d212</guid>
            <category><![CDATA[conversion]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[csv]]></category>
            <category><![CDATA[excel]]></category>
            <dc:creator><![CDATA[Nadir Inab ]]></dc:creator>
            <pubDate>Mon, 21 Jul 2025 17:13:11 GMT</pubDate>
            <atom:updated>2025-07-23T21:51:33.909Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data into Visual Insights : csvmaster</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MD6FlhApwzFCZvrDhQP51A.png" /></figure><p><strong>The Data Dashboard</strong></p><p><strong>csvmaster</strong> makes it easy to turn spreadsheets into clear, interactive UI no coding required.<br> It’s built for business users, developers, who want to understand, share, and get more out of their data.</p><h3>For Business Users:</h3><ul><li>✅ <strong>Drag-and-drop analytics</strong> No setup or coding required</li><li>✅ <strong>chart suggestions </strong>Instantly find the right visualization</li><li>✅ <strong>Smart dashboards</strong> Always up-to-date with interactive insights</li><li>✅ <strong>One-click export </strong>Share insights in PNG, PDF, or PowerPoint</li><li>✅ <strong>Team-ready </strong>Comment, annotate, and share live</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bkuVQLjBChMkHeWiTGe2LQ.png" /></figure><h3>✨ Key Features at a Glance</h3><h3>1. Data Upload &amp; Cleaning</h3><ul><li>Supports CSV</li><li>Smart type detection and validation</li><li>Quick insights even with large files</li></ul><h3>2. Chart Recommendations</h3><ul><li>Automatically chooses the best chart types</li><li>Highlights patterns, outliers, and trends</li><li>Makes data visualization feel intuitive</li></ul><h3>3. Beautiful, Responsive Visualizations</h3><ul><li>8 chart types including bar, line, map, and gauge</li><li>Smooth transitions and filtering</li><li>Works across desktop and mobile</li></ul><h3>4. Built-In Team Collaboration (coming soon)</h3><ul><li>Shareable links with permission roles</li><li>Live comments and annotations</li><li>Version history and change tracking</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3YvsFyjafnwp6ILdoofjCQ.png" /></figure><h3>Powerful File Conversion Built In</h3><p><strong>csvmaster</strong> goes beyond visualization — it also makes it easy to <strong>convert your data</strong> into the format you need, with just a few clicks.</p><p>Whether you’re preparing reports, migrating data, or just want a cleaner format, the platform supports:</p><ul><li>CSV → Excel (.xlsx), JSON, TSV, HTML, Markdown, YAML, LaTeX, SQL, XML</li><li>Drag-and-drop interface with live previews</li><li>Clear format cards with descriptions and output examples</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hj0IsuJuGpSVQzMNDA2vA.png" /></figure><h3>🎨 UI</h3><ul><li>Clean, enterprise-ready UI</li><li>Minimalist layout with elegant colors</li><li>Subtle animations and smooth transitions</li><li>Fully responsive and accessibility-friendly</li></ul><p>This is a platform that builds <strong>trust</strong> through both functionality and presentation.</p><h3>🧠 Who Is This For?</h3><ul><li><strong>Business Analysts</strong> — Get instant insights, no tools or setup required</li><li><strong>Developers</strong> — Use the API to embed real-time charts in your apps</li><li><strong>Teams</strong> — Collaborate around shared dashboards in real-time</li></ul><blockquote>Tech stack</blockquote><ul><li>Built with React 18 + Vite</li><li>🎨 Animated UIs with Tailwind + Framer Motion</li><li>🔗 Express + Firebase backend (auth, sync, storage)</li><li>📚 Embed charts or access via API</li><li>🔍 Smart parsers</li></ul><h3>Give It a Try 🚀</h3><p><strong>csvmaster</strong> is live and ready for you to explore.<br> Upload a file, build a dashboard, and see how simple working with data can be.</p><p>Feel free to give us an upvote on Product Hunt — we’d truly appreciate it!</p><p>Product-Hunt : 👉 <a href="https://www.producthunt.com/products/analytics-dashboard?utm_source=linkedin&amp;utm_medium=social">csv-master-product-hunt</a></p><p>👉 Visit <a href="https://csvmaster.vercel.app/">csvmaster.vercel.app</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2qjcAwFg1kSG5uyAu1UAQ.png" /></figure><p>Your feedback is incredibly valuable it helps identify bugs and shape future features.<br> Try it out and let me know what you think!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d62129c3d212" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use React with Algolia Search: Guide]]></title>
            <link>https://medium.com/@nadir.inab.dev/how-to-use-react-with-algolia-search-guide-56b218ec4ab4?source=rss-a67256dd8081------2</link>
            <guid isPermaLink="false">https://medium.com/p/56b218ec4ab4</guid>
            <category><![CDATA[javasc]]></category>
            <category><![CDATA[algolia-search]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[indexing]]></category>
            <dc:creator><![CDATA[Nadir Inab ]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 15:55:01 GMT</pubDate>
            <atom:updated>2025-01-08T15:55:01.698Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re looking to integrate Algolia search into your React app, In this guide will walk through how to set up Algolia and use it with React in a simple, easy-steps . By the end of this guide, you’ll have a functional search feature up and running in your app.</p><p>Algolia is a powerful search-as-a-service platform that can supercharge the search functionality in your web or mobile applications. It offers a robust, scalable, and fast search engine that helps you deliver a great search experiences to your users. Key benefits of using Algolia for your project:</p><p><strong>Fast and Scalable Search, Analytics </strong>and for it’s<strong> distributed search architecture</strong></p><h3>Prerequisites</h3><p>Before we begin, make sure you have the following:</p><ul><li>Basic knowledge of React and JavaScript.</li><li>Node.js and npm installed on your machine.</li><li>A React app set up and running. If you don’t have one, you can create a new app using:</li></ul><pre>npx create-react-app algolia-search-example<br>cd algolia-search-example</pre><ul><li>An Algolia account. If you don’t have one, go to <a href="https://www.algolia.com/">Algolia’s website</a> and sign up for a free account.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Um1vVLI0BZgVaYgZvozEMQ.png" /><figcaption>Algolia Dasboard</figcaption></figure><h3>Step 1: Set Up Algolia</h3><ol><li><strong>Create an Index</strong><br>Once you’re logged into your Algolia account, go to your dashboard. On the left side, click on the “Indices” tab, and click on <strong>New Index</strong>.<br>Give it a name, for example, products. You’ll use this index for storing searchable data.</li><li><strong>Add Some Data</strong><br>After creating your index, you’ll need some data. In this example, we’ll use a simple list of products. You can add data to your index manually by going to the “Data” section of your index and clicking “<strong>Add records</strong>”.</li><li><strong>Get Your API Keys</strong><br>Go to your Algolia dashboard, find the “API Keys” section, and copy your <strong>Application ID</strong> and <strong>Search-Only API Key</strong>. You’ll need these keys to connect your React app to Algolia.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWEgaaOxLNoLnrboNnoWlw.png" /></figure><h3>Step 2: Install Algolia Dependencies</h3><p>In your React project, you’ll need two libraries to work with Algolia:</p><ul><li>react-instantsearch-dom: This library will help you easily integrate Algolia search into your React components.</li><li>algoliasearch: This is the Algolia search client library that helps you interact with your Algolia index.</li></ul><p>Install both using npm:</p><pre>npm install react-instantsearch-dom algoliasearch</pre><h3>Step 3: Set Up the Search Client in Your React App</h3><p>In your React project, create a new file called algolia.js to configure the Algolia client. This file will initialize the connection to your Algolia index.</p><pre>// algolia.js<br>import algoliasearch from &#39;algoliasearch&#39;;<br><br>// Initialize the Algolia client with your API keys<br>const searchClient = algoliasearch(&#39;YourApplicationID&#39;, &#39;YourSearchOnlyAPIKey&#39;);<br><br>export default searchClient;</pre><h3>Step 4: Create a Search Component</h3><p>Now, create a new React component that will display the search results. Use the InstantSearch component from react-instantsearch-dom to connect to Algolia’s search.</p><pre>// Search.js<br>import React from &#39;react&#39;;<br>import { InstantSearch, SearchBox, Hits, Highlight } from &#39;react-instantsearch-dom&#39;;<br>import searchClient from &#39;./algolia&#39;;<br><br>const Search = () =&gt; {<br>  return (<br>    &lt;div&gt;<br>      &lt;h1&gt;Product Search&lt;/h1&gt;<br>      &lt;InstantSearch searchClient={searchClient} indexName=&quot;products&quot;&gt;<br>        &lt;SearchBox /&gt;<br>        &lt;Hits hitComponent={Product} /&gt;<br>      &lt;/InstantSearch&gt;<br>    &lt;/div&gt;<br>  );<br>};<br><br>const Product = ({ hit }) =&gt; (<br>  &lt;div&gt;<br>    &lt;h3&gt;<br>      &lt;Highlight attribute=&quot;name&quot; hit={hit} /&gt;<br>    &lt;/h3&gt;<br>    &lt;p&gt;Category: &lt;Highlight attribute=&quot;category&quot; hit={hit} /&gt;&lt;/p&gt;<br>    &lt;p&gt;Price: ${hit.price}&lt;/p&gt;<br>  &lt;/div&gt;<br>);<br><br>export default Search;</pre><h3>Step 5: Add the Search Component to Your App</h3><p>Now, go to your App.js and import the Search component you just created:</p><pre>// App.js<br>import React from &#39;react&#39;;<br>import Search from &#39;./Search&#39;;<br><br>function App() {<br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;Search /&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><h3>Step 6: Run</h3><p>Now it’s time to run your app. Start the React development server:</p><pre>npm run dev</pre><h4><em>References</em></h4><p><a href="https://www.algolia.com/doc/">Algolia Documentation</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQtAt3kT3gto%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQtAt3kT3gto&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQtAt3kT3gto%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dfecbc7f589873527237d950164ad7aa/href">https://medium.com/media/dfecbc7f589873527237d950164ad7aa/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56b218ec4ab4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerizing Your Angular App: A Quick Guide]]></title>
            <link>https://medium.com/@nadir.inab.dev/dockerizing-your-angular-app-a-quick-guide-00a3ecabe419?source=rss-a67256dd8081------2</link>
            <guid isPermaLink="false">https://medium.com/p/00a3ecabe419</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Nadir Inab ]]></dc:creator>
            <pubDate>Wed, 24 Jan 2024 10:55:07 GMT</pubDate>
            <atom:updated>2024-01-24T10:55:07.446Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DABnWKFgZFGnVNxMwo_hwA.png" /><figcaption>Dcoker + Angular + NGINX</figcaption></figure><p>Fellow developers Ever wondered how to Dockerize your Angular app <em>❓</em> Here’s a quick guide to containerizing your Angular app with Docker. <br>We’ll go step by step and I’ll explain every instruction made in order to make it as simple as it is for you, From setting a multi-stage Dockerfile 🚀🐳, Also in this article we’ll discover the docker commands used to build and check the status of our Container .</p><p>Before we begin, let’s assume you already have 👇:</p><ul><li>Docker Installed: Ensure that Docker is up and running on your system. If you haven’t done this yet, get the Docker engine installed.</li><li>Docker Concepts Understood: Familiarize yourself with fundamental Docker concepts like Dockerfile, Image, and Container. It’s the backstage pass to orchestrating your application’s deployment.</li><li>JavaScript and Angular Basics: This one’s a given. Since we’re dealing with Angular, make sure you’re on friendly terms with JavaScript and have a basic understanding of how Angular applications work.</li></ul><p>You might want to check out my previous article where I’ve explained : Dockerfile, Image, and Container 💯 .</p><h3>Step 1 : Create a Dockerfile</h3><p>Start by creating a Dockerfile in the root of your Angular project. This file contains instructions on how to build the Docker image for your app.</p><pre>FROM node:18.13.0 as build<br><br>WORKDIR /app<br><br>COPY package*.json ./<br><br>RUN npm install<br><br>RUN npm install -g @angular/cli<br><br>COPY . .<br><br>RUN ng build --configuration=production<br><br>FROM nginx:latest<br><br>COPY --from=build app/dist/aftas-angular /usr/share/nginx/html<br><br>EXPOSE 80</pre><p>Okey, this is simple Dockerfile , in this coding journey I’ve realize that most of the things that we don’t understand sounds very complicated 😭, but as soon as I explain these commands line by line everything will start to make sense. So buckle up</p><pre>FROM node:18.13.0 as build</pre><ul><li>This sets the base image for the build stage. It uses the official Node.js image, version 18.13.0, as a starting point.</li><li>Naming it as ‘build’ allows us to refer to this stage later in the Dockerfile.</li></ul><pre>WORKDIR /app</pre><ul><li>Think of the container as a virtual space where your application will run.</li><li>This instruction is like telling the container, “Hey, for the rest of the instructions, consider ‘/app’ as your main working directory.”</li><li>It’s similar to navigating into a specific folder when you’re working on your computer.</li></ul><pre>COPY package*.json ./</pre><ul><li>Copies the package.json and package-lock.json files from your local directory (where the Dockerfile is) to the ‘/app’ directory in the container.</li></ul><pre>RUN npm install</pre><ul><li>This one is super clear, it simply installs the dependencies specified in the package.json file.</li></ul><pre>RUN npm install -g @angular/cli</pre><ul><li>Since this is angular app, we definitely need to installs the Angular CLI globally within the container. This allows running Angular CLI commands like ‘ng’ from any directory.</li></ul><pre>COPY . ./</pre><ul><li>This command copies all files from your local directory to the ‘/app’ directory inside the container.</li></ul><pre>RUN ng build --configuration=production</pre><ul><li>Since we’ve successfully installed Angular CLI , let’s executes this command to build the Angular application in production mode. The resulting output will be stored in the ‘dist’ directory.</li></ul><pre>FROM nginx:latest</pre><ul><li>NGINX is a powerful web server and reverse proxy server that can efficiently handle static files, cache content, and manage incoming requests.</li><li>Also is often used to serve the production-ready build of the Angular app and handle incoming HTTP requests.</li><li>So basically with this command we starts a new stage in the Dockerfile, using the official Nginx image as the base image for the runtime environment.</li></ul><pre>COPY --from=build app/dist/aftas-angular /usr/share/nginx/html</pre><ul><li>Copies the production-ready Angular application files from the build stage to the `/usr/share/nginx/html`directory inside the Nginx container.</li></ul><pre>EXPOSE 80</pre><ul><li>Informs Docker that the container will listen on network ports at runtime, and the specified port is 80.</li></ul><h3>Step 2: Build Docker image</h3><p>Now we have successfully created a Dockerfile ✔️, the next step is to build docker image. Open a terminal or command prompt and navigate to the directory where your Dockerfile is located. This is usually the root directory of your Angular project.</p><pre>cd /path/to/your/angular/project</pre><p>Use the docker build command to build your Docker image. The syntax is as follows 👇:</p><pre>docker build -t my_angular_app:latest .</pre><ul><li>Make sure to replace my_angular_appwith your app name || any desired name for your image, and &lt;tag&gt; with a version or identifier, in my case I have latest .</li><li>If you don’t specify a tag when pulling or building an image, it defaults to the latest tag.</li><li>The dot (.) at the end signifies that the build context is the current directory.</li></ul><h3>Step 3: Wait for the Build to Complete ⏳</h3><p>Docker will start the build process, executing each instruction in your Dockerfile. This includes setting up the build environment, installing dependencies, building the Angular app, and creating the final image.</p><pre>Sending build context to Docker daemon  123.45MB<br>Step 1/7 : FROM node:18.13.0 as build<br> ---&gt; abcdef123456<br>Step 2/7 : WORKDIR /app<br> ---&gt; Using cache<br> ---&gt; abcdef123456<br>Step 3/7 : COPY package*.json ./<br> ---&gt; 012345abcdef<br>Step 4/7 : RUN npm install<br> ---&gt; Running in 7890fedcba<br>npm notice created a lockfile as package-lock.json<br>...<br>Step 5/7 : COPY . .<br> ---&gt; 987654defcba<br>Step 6/7 : RUN ng build --configuration=production<br> ---&gt; Running in 012345abcdef<br>...<br>Step 7/7 : FROM nginx:latest<br> ---&gt; xyz987654321<br>...<br>Successfully built xyz98765<br>///<br>......<br>........<br>.....</pre><h3>Step 4: Verify the Image ✅</h3><p>Congrats 🎉, Once the build is complete, you can verify that the image was created successfully. Use the docker image command. You get a list of all the Docker images that are currently stored on your local machine 👇</p><pre>REPOSITORY          TAG                 IMAGE ID            CREATED              SIZE<br>my-angular-app      latest              abcd1234            1 munite ago         300MB</pre><h3>Step 5: Run a Container from the Image</h3><pre>docker run -d -p 4200:80 my_angular-app</pre><p>Since you’ve made all the way here, congrats 👏 you’ve done it, what is left now is to explain this simple command :</p><ul><li>docker run: This is the command to run a Docker container.</li><li>-d: This flag stands for &quot;detached&quot; mode. It means the container will run in the background, and the terminal will be free and ours .</li><li>-p 4200:80: This flag maps the port 4200 on your local machine to port 80 inside the container. It allows you to access the application running inside the container through http://localhost:4200 on your local machine, simple right ?</li><li>my_angular-app: This is the name of the Docker image from which the container will be created.</li></ul><p>Now, by navigating to <a href="http://localhost:4200/">http://localhost:4200</a> in your web browser, you should see your Angular application up and running. Congratulations 🤝🎉 on successfully Dockerizing and running your Angular app in a container! 🚀</p><p>Additionally, I would like to mention that the use of multi-stage builds in our Dockerfile ensures that the production image remains small and includes only what’s necessary to run the Angular app in a production environment. This not only optimizes the image size but also makes it easy to deploy and scale your application effortlessly.</p><p>Feel free to reach out if you have any specific requirements, questions, or just want to connect.</p><ul><li>Email 📧: nadir.inab.dev@gmail.com</li><li>Github : <a href="https://github.com/NadirInab">NadirInab</a></li><li>Linkdin : <a href="https://www.linkedin.com/in/nadirinab/">NadirInab</a></li></ul><p>Happy Coding 👨‍💻 💯 !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00a3ecabe419" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MySQL  Setup with Docker ]]></title>
            <link>https://medium.com/@nadir.inab.dev/mysql-setup-with-docker-4a61ce3ccaff?source=rss-a67256dd8081------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a61ce3ccaff</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[containerization]]></category>
            <dc:creator><![CDATA[Nadir Inab ]]></dc:creator>
            <pubDate>Wed, 03 Jan 2024 15:05:05 GMT</pubDate>
            <atom:updated>2024-01-03T15:05:05.050Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQqWnLfiqoAggHglQwnKXg.png" /><figcaption>MySQL + Docker</figcaption></figure><p>Setting up 👨‍💻 a MySQL database for your development environment is a fundamental step in many software projects. While traditional installations on local machines are common, cause Docker provides an elegant and efficient alternative. In this guide, we’ll learn practical step by step of how to use Docker to manage your MySQL instances, which leads to enhanced isolation , the ability to work with multiple versions and configurations seamlessly, and also based on my personal experience to avoid of dependency clashes 🙁. By the end of this article, you’ll be able to setup MySQL with Docker and create a consistent and portable development environment.</p><p>Before we begin, ensure you have the following 👇:</p><p><em>A basic understanding MySQL .</em></p><p><em>Docker installed on your system .</em></p><p><em>Basic understanding of Docker concepts such as: Dockerfile &amp; Image &amp; Container.</em></p><p><strong><em>First of all let’s understand some basics stuff </em></strong>🧐<strong><em>:</em></strong></p><p><strong>What Docker hub </strong><em>❓</em></p><p>Well in simple words Docker Hub is just a central cloud-based repository for container images. It serves as a storage platform for container images. You can push your own custom images, or download pre-built images created by other developers, and freely choose from publicly available images. You can simply create your account here : <a href="https://hub.docker.com/">DockerHub</a></p><p><strong>What is a docker Image </strong><em>❓</em></p><p>There’s no simpler way to describe it than to say it’s just a static file with instructions for setting up a container’s environment, such as :</p><ul><li>Operating system (e.g., Ubuntu, Alpine)</li><li>Software packages (e.g., Apache, Python, Node.js)</li><li>Application code</li><li>Configuration files</li></ul><p>We can think of an image as a Blueprint or template for spinning up &amp; creating as many containers as we want from the same Image.</p><p><strong>What is a Container </strong><em>❓</em></p><p>A container is simply a running instance of an image, It’s an isolated and lightweight environment where an application can run. The good part is it can be easily shared and deployed across different environments.</p><p>Now That we have a simple &amp; clear vision let’s start our SetUp</p><h4>Step 1 : Retrieves MySQL image from Docker Hub.</h4><p>Let’s get our handy dirty, open up your terminal, and run 👇:</p><pre>docker pull mysql</pre><p>This command will simply download the official MySQL image from Docker Hub, well technically the <strong>latest</strong> version . But if you’ve a specifique one in mind for ex: 8.2.0, simply run 👇 :</p><pre>docker pull mysql:8.2.0</pre><p>Once the download is complete, Docker will store the MySQL image locally on your system. It’s now ready to be used for creating containers.</p><p>If you have successfully pulled the image, run 👇 :</p><pre>Docker images</pre><p>you should see a list of Docker images available on your system ✅:</p><pre>REPOSITORY          TAG       IMAGE ID       CREATED           SIZE<br>mysql               latest    abcdef123456   20 secondes ago   400MB</pre><h4><strong>Step 2 : Running MySQL Container</strong></h4><p>As we said before a container is an instance of an image, Now that we have the image installed locally we can easily spin up the container, run 👇 :</p><pre>docker run -d --name first-mysql-container -e MYSQL_ROOT_PASSWORD=your-password -p 3307:3306 mysql</pre><p>This command is big and scary 😭, but very simple once you understand it, so let’s break it down :</p><ul><li><strong>docker run</strong> : create and start a new container.</li><li><strong>-d</strong> : runs the container in the background detached mode, in simple terms keep using your terminal.</li><li><strong>— name first-mysql-container</strong> : assigns a name to the container.</li><li><strong>-e MYSQL_ROOT_PASSWORD=your-password</strong> : sets an environment variable “MYSQL_ROOT_PASSWORD” inside the container, in order to specify the root password for MySQL.</li><li><strong>-p 3307:3306 (port mapping) : </strong>This maps port <strong>3307 </strong>on the host machine to port <strong>3306 </strong>inside the container. MySQL typically uses port <strong>3306</strong>, so this allows you to access the MySQL service running in the container from your host machine.<br><strong>3307 </strong>is the port on your computer (host machine).<br><strong>3306 </strong>is the port inside the MySQL container.<br>when you run a MySQL container with this flag, you’re saying: “Hey, take the MySQL service running inside the container, and make it accessible through port 3307 on my computer.”, pretty simple right ?</li><li>mysql: This specifies the image to use for creating the container. If no tag is provided .</li></ul><p>Now you have succussfully 👏 created your container from the already installed MySQL image, to make sure simply run 👇:</p><pre>docker ps </pre><p>You should see the follwing :</p><pre>CONTAINER ID   IMAGE       COMMAND               CREATED         STATUS        PORTS                                                  NAMES<br>12345universe   mysql    &quot;docker-entrypoint.s…&quot;    1 munite ago   Up 1 munite  0.0.0.0:3307-&gt;3306/tcp, :::3307-&gt;3306/tcp, 33060/tcp   downloads-mysql-1</pre><h4><strong>Step 3 : S</strong>etting Up <strong>DataBase</strong></h4><p>Once your MySQL container is up and running, the next steps typically involve connecting to the MySQL server inside the container,</p><p>First let’s connect to the MySQL Server inside the container following the steps below 👇 :</p><pre>docker exec -it 12345universe bash </pre><p>wich will take you inside the server :</p><pre>bash-4.2# ls<br>bin boot dev docker-entrypoint-initdb.d entrypoint.sh etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var</pre><p>then the next step :</p><pre>mysql -u your-user -pyour-password</pre><p>make sure to change the <strong>user </strong>&amp; <strong>password, </strong>you will prompted with, and then if you took closer look, and then run :</p><pre>mysql: [Warning] Using a password on the command line interface can be insecure.<br>Welcome to the MySQL monitor. Commands end with ; or \g.<br>Server version: 5.7.42 MySQL Community Server (GPL)<br><br>Copyright (c) 2000, 2023, Oracle and/or its affiliates.<br><br>Oracle is a registered trademark of Oracle Corporation and/or its<br>affiliates. Other names may be trademarks of their respective<br>owners.<br><br>Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the current input statement.<br><br>mysql&gt; CREATE DATABASE your_db_name ;<br></pre><p>Upon running this command, you might see output similar to:</p><pre>Query OK, 1 row affected</pre><p>then to display list of database, run :</p><pre>mysql&gt; show databases ;<br>+--------------------+<br>| Database           |<br>+--------------------+<br>| information_schema |<br>|    your_db_name    |<br>+--------------------+<br>2 rows in set (0.12 sec)</pre><p>Since you made all the way here, Congrats you have done it 👏.</p><h3>Conclusion</h3><p>Incorporating MySQL with Docker offers numerous advantages, Docker enables developers to streamline the deployment process by encapsulating MySQL and its dependencies within containerized environments.</p><p>Happy Coding 👨‍💻 💯</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a61ce3ccaff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PrestaShop Insights Data Extractor ]]></title>
            <link>https://medium.com/@nadir.inab.dev/prestashop-insights-data-extractor-e082b100deb3?source=rss-a67256dd8081------2</link>
            <guid isPermaLink="false">https://medium.com/p/e082b100deb3</guid>
            <category><![CDATA[prestashop-development]]></category>
            <category><![CDATA[prestashop-ecommerce]]></category>
            <category><![CDATA[prestashop-module]]></category>
            <category><![CDATA[prestashop]]></category>
            <category><![CDATA[plugins]]></category>
            <dc:creator><![CDATA[Nadir Inab ]]></dc:creator>
            <pubDate>Fri, 01 Dec 2023 13:56:36 GMT</pubDate>
            <atom:updated>2023-12-01T13:56:36.756Z</atom:updated>
            <content:encoded><![CDATA[<p>Managing an online store involves a lot of work and data insights, think of data as your trusted advisor. It’s the tool that helps you understand your customers, their likes, dislikes, what they buy, and how they shop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*-45QKc0MbyUXPnIHwujngA.png" /></figure><p>Imagine it’s like having a conversation with your customers without actually talking to each one individually. This information is pure gold! .<br>It helps you make smart decisions about what products to showcase, how to make your website user-friendly, and when and where to promote your items. As <strong><em>Bernard Marr </em></strong>👇<strong><em>:</em></strong></p><blockquote><strong><em>“</em></strong>Data is not just a bunch of numbers; it’s the fingerprint of our digital existence.<strong><em>”</em></strong></blockquote><p>At the heart of every thriving e-commerce project lies the ability to understand and leverage essential data such as <strong>product</strong>, <strong>client</strong>, and <strong>brand </strong>data.</p><p>Our PrestaShop Module : <strong>Data Extractor </strong>is precisely crafted to empower online businesses, ensuring seamless access to valuable data within your PrestaShop store.</p><blockquote><strong>Key Features and Benefits</strong></blockquote><p><strong>1.Effortless Data Extraction:</strong><br>Our module effortlessly extracts product details, client information, and brand data from any PrestaShop store, streamlining your data collection process.</p><p><strong>2. Enhanced Product Insights:</strong><br>Gain deeper insights into your product catalog, enabling informed decisions regarding pricing strategies, inventory management, and marketing campaigns. <br>This will definitely help store owners to make better decisions about all aspects of their business, from product development to marketing to staffing.</p><p><strong>3. Client Understanding:</strong><br>Uncover valuable client demographics, preferences, and purchase patterns, enabling personalized marketing approaches and enhancing customer engagement.</p><p><strong>4. Brand Visibility:</strong><br>Analyze brand performance within your store, allowing you to optimize partnerships, marketing efforts, and overall brand representation.</p><p><strong>5. User-Friendly Interface:</strong><br>Intuitive and user-friendly, our module ensures a seamless experience, making data extraction much simplier for the store owner.</p><p>Our PrestaShop module offers effortless data extraction, providing enhanced insights into product details, client data, and brand data</p><blockquote><strong>How to Get Started </strong>❓</blockquote><p>Visit PrestaShop Addons marketplace and download the PrestaShop Data Extractor, the following link 👉 :<strong> </strong><a href="https://addons.prestashop.com/en/data-import-export/92327-data-extractor.html"><strong>Data Extractor</strong></a><strong> .</strong></p><blockquote><strong>Easy Installation:</strong></blockquote><p>Follow the simple installation instructions associated with the module.</p><p>Or 😉 check this Demo on <strong>youtube </strong>: <a href="https://www.youtube.com/watch?v=CyHBt2z-heM"><strong>step-by-step instructions</strong></a></p><p>For more inquiries and support, contact our support team at <strong>hasnae.h@ecopara.store</strong>, in order to learn more about our PrestaShop “<a href="https://addons.prestashop.com/en/data-import-export/92327-data-extractor.html"><strong>Data Extractor</strong></a>” module.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e082b100deb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git & Its Essential Commands ‍]]></title>
            <link>https://medium.com/@nadir.inab.dev/git-its-essential-commands-e2f56102b5ff?source=rss-a67256dd8081------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2f56102b5ff</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[collaboration]]></category>
            <dc:creator><![CDATA[Nadir Inab ]]></dc:creator>
            <pubDate>Sun, 05 Nov 2023 20:46:07 GMT</pubDate>
            <atom:updated>2023-11-05T20:46:07.688Z</atom:updated>
            <content:encoded><![CDATA[<p>Version control, also known as source code control, is a system and a set of practices that enable multiple people to work collaboratively on a project, tracking and managing changes to files and code over time.</p><p>In the world of software development, version control is the backbone of collaboration and project management. One of the most widely used version control systems is Git. So basically in this article we will learn how as simple, easy &amp; as important Git is .</p><p>The word of the day is : <strong>Every Developer Must Get Good At Git 💯.</strong></p><blockquote><strong><em>History &amp; Facts </em></strong>💬</blockquote><ul><li>In 2005, <strong><em>Linus Torvalds</em></strong> created Git to address the shortcomings of existing version control systems used for the development of the Linux kernel 🐧.</li><li>Git was designed to be a distributed version control system, allowing developers to work on a project independently, even without network access or a central server.</li><li>Git gained popularity<strong>💯</strong> within the open-source community due to its speed, scalability, and ability to handle large codebases.</li></ul><blockquote><strong><em>Good to remember </em></strong>🧐</blockquote><ul><li>GitHub is a web-based platform that provides hosting for Git repositories and additional collaboration features. So Github and git are totally differents things .</li></ul><h3><strong>Why do we use Git</strong> 🙄</h3><h4>Collaboration 🤝</h4><ul><li>Git allows multiple developers to work on the same project simultaneously. It enables them to make changes to the codebase independently and merge their changes seamlessly.</li></ul><h4>Tracking changes 📈</h4><ul><li>Git tracks changes made to the codebase over time. It creates a snapshot of the code at each commit, allowing developers to view the history of changes and understand how the code has evolved. This helps in identifying and fixing bugs, reverting to previous versions if needed, and maintaining a clear record of development progress.</li></ul><h4>Code Integrity ✔️</h4><ul><li>With Git, each developer has their own local copy of the codebase. This means that even if someone makes a mistake or accidentally deletes something, the code can usually be restored from another copy.</li></ul><h4>Open Source Collaboration 🧑‍🔧</h4><ul><li>Git is widely used in open source projects. Learning Git enables you to contribute to open source projects, collaborate with other developers, and leverage third-party libraries and frameworks.</li></ul><blockquote><strong>Getting started &amp; Creating a project :</strong></blockquote><p>To initialize a local Git repository use :</p><pre>git init</pre><p>To create a local copy of a remote repository :</p><pre>git clone ssh or http://git@github.com/[username]/[repository-name].git</pre><blockquote><strong>Basic Snapshotting :</strong></blockquote><p>To Check the status or the current state of your working directory and the status of your files in relation to the Git repository .</p><pre>git status</pre><p>To add a file to the staging area :</p><pre>git add [file-name.txt]</pre><p>To commit changes, when using <strong>git commit</strong> you are essentially creating a snapshot of the current state of your project at a particular point in time. Make sure to use an explanatory and meaningful messages .</p><pre>git commit -m &quot;[meaningful commit message]&quot;</pre><p>If you are somehow lazy like me, use git commit -am”message” this is shortcut of both commands, it will automatically stage all the modified files and then commit them with the specified message.</p><pre>git commit -am&quot;[meaningful commit message]&quot;</pre><blockquote><strong>Branching &amp; Merging</strong></blockquote><p>Before we continue, In simple words Branches are an essential concept in Git, as they allow you to work on different lines of development, isolate changes, and manage complex software projects effectively. This isolation allows you to make changes, test new features, and fix bugs without impacting the stability of the main or other branches.</p><p>Branches name also must be meaningful, help you and your team understand the purpose and context of each branch. Clear and descriptive branch names make it easier to manage and collaborate on your codebase. For example : feature/add-user-authentication | bugfix/fix-login-issue | refactor …, Here are some key 🗝️ Git commands :</p><p>So to create a brand new branch :</p><pre>git branch [branch name]</pre><p>List branches :</p><pre>git branch</pre><p>List all branches local and remote :</p><pre>git branch -a</pre><p>Delete a branch :</p><pre>git branch -D [branch name]</pre><p>Delete a remote branch :</p><pre>git push origin --delete [branch name]</pre><p>Switch to a branch :</p><pre>git checkout [branch name]</pre><p>Create a new branch and switch to it :</p><pre>git checkout -b [branch name]</pre><p>As we discussed before we use branching to work on different lines of development, isolate changes, at the end of the day those changes must be brought or merged into the main or masterbranch . So In simple words merging is the process of combining changes from one branch into another branch. It is a fundamental operation that allows you to integrate the work done on a feature branch or a separate development branch back into a primary or main branch, such as master or main.</p><p>To Merge a branch into the active branch for example we want to bring changes from feature into master :</p><p>First of all make sure you are in the right branch or checkout to it :</p><pre>git checkout master</pre><p>and then :</p><pre>git merge feature</pre><p>Resolve Conflicts (if any) In some cases, Git may identify conflicts between the changes made in the source branch and the target branch. Conflicts occur when Git cannot automatically determine how to combine changes. You’ll need to manually resolve these conflicts by editing the affected files and then committing the resolved changes.</p><p><strong>PS</strong> 🧐 : Having conflicts doesn’t necessarily mean messy code or your own mistakes.</p><blockquote><strong>Sharing &amp; updating project :</strong></blockquote><p>Sharing and updating a project in Git involves collaborating with others and ensuring that all contributors have access to the latest code changes. Here are the key Git commands 👇.</p><p>First of all we need to learn about Cloning a Repository: in order to start working on an existing project, you can clone a Git repository hosted on a remote server ☁️ (e.g., GitHub, GitLab). use git clone:</p><pre>git clone &lt;repository_url&gt;</pre><p>Adding a Remote: If you’re part of a team and want to share 👀 your changes with others or contribute to a project , use :</p><pre>git remote add origin ssh://git@github.com/[username]/[repository-name].git</pre><p>Pulling Changes 👀: To fetch and incorporate changes from the remote ☁️ repository into your local working directory, use the git pull command. This is a combination of git fetch which retrieves changes and git merge which integrates those changes into your branch.</p><pre>git pull origin &lt;branch_name&gt;</pre><p>Fetching Changes: If you want to fetch changes from the remote repository without immediately merging them, use the git fetch :</p><pre>git fetch origin</pre><p>Merging Changes: After fetching changes, you can manually merge them into your branch using git merge if needed.</p><pre>git merge origin &lt;branch_name&gt;</pre><p>In order to share or Push changes of a branch to your remote repository (github, gitlab), git push come very handy 🗝️ :</p><pre>git push origin [branch name]</pre><p>Also to delete a remote branch 👇:</p><pre>git push origin --delete [branch name]</pre><blockquote><strong>Inspection &amp; Comparison</strong></blockquote><p>Inspection and Comparison”refer to actions that help you understand and analyze the <strong>state </strong>of your repository, changes made to files, differences between <strong>commits</strong>, <strong>branches</strong>, or <strong>tags</strong>. Here are some handy commands 👇 :</p><h4>Inspection :</h4><p>git log this command displays a chronological history of commits in your Git repository. You can use it to see who made changes, when they were made, and the commit messages associated with each change.</p><pre>git log </pre><p>or in a more elegant manner use --oneline option :</p><pre>git log --oneline </pre><p>git show: This command allows you to inspect a specific commit, showing the details of the changes introduced by that commit, including the differences in file content.</p><p>git branch: This command provides information about the branches in your repository. It shows the current branch and lists all existing branches.</p><h4><strong>Comparison:</strong></h4><p>git diff: This command allows you to compare changes between different states in Git. You can compare changes between commits, branches, or the working directory.</p><p>For example shows the differences between the working directory and the last commit.</p><pre>git diff</pre><p>Compares the changes between two specific commits.</p><pre>git diff commit1..commit2</pre><p>Compares the differences between two branches.</p><pre>git diff branch1..branch2</pre><p>Those are few essentiel commands that we could use, but we could go on and on, git very rich commands, besides that we could also create our own custom commands to simplify and automate common tasks, and Both inspection and comparison are essential tasks in Git, as they help developers and teams understand the history of changes, track issues ❌, and review code .</p><blockquote><strong>Conclusion</strong></blockquote><p>To wrap it up, Git enables the efficient tracking of code changes, collaborative development, and project management, making it an essential part of modern software development practices.</p><p>To encapsulate our journey through the ⌛ spacetime 🌌 landscape:</p><blockquote><strong>Every Developer Must Get Good At Git 💯</strong></blockquote><p>Since you made it all the way down here I really hope this article was useful to you . Happy Coding 👍 ☕</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2f56102b5ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Git Cherry-Pick ‍]]></title>
            <link>https://medium.com/@nadir.inab.dev/understanding-cherry-picking-75dbd42d4672?source=rss-a67256dd8081------2</link>
            <guid isPermaLink="false">https://medium.com/p/75dbd42d4672</guid>
            <category><![CDATA[cherry-picking]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git-cherry-pick]]></category>
            <dc:creator><![CDATA[Nadir Inab ]]></dc:creator>
            <pubDate>Sat, 07 Oct 2023 16:46:26 GMT</pubDate>
            <atom:updated>2023-10-08T21:30:05.460Z</atom:updated>
            <content:encoded><![CDATA[<p>Git is a powerful version control system that allows developers to manage their projects efficiently, keeping track of changes and collaborations seamlessly.</p><p>In this article, we’ll dive into the concept of cherry picking, its benefits, and how you can effectively use it in your Git workflow to streamline your development process.</p><blockquote><strong>We’ll get to know the following 👉 :</strong></blockquote><ul><li>What is Cherry-pick ?</li><li>Use cases of cherry-pick ?</li><li>How to use it ?</li></ul><blockquote><strong>What is git cherry-pick </strong>🤔 ? <strong>:</strong></blockquote><p>Git offers <strong>cherry picking</strong>, which is One of the essential features that enables developers to select and apply specific <strong>commits </strong>from one branch to another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8X1y9v5xgpO--6xwez4W_g.jpeg" /></figure><p>Cherry picking is like plucking individual cherries from a tree without taking the entire branch. In the Git world, this means choosing specific commits from one branch and applying them to another, helping you incorporate specific changes into your codebase without merging the entire branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*-Ea7JpH9EJpzQFxY6Qqz7A.png" /></figure><p>As the example above, we have two branches <strong>Main</strong> &amp; <strong>Feature.</strong> we basically want to bring changes from the <strong>Feature</strong> branch to the <strong>Main</strong>, traditionally we would easily apply a simple <strong>git merge</strong> OR <strong>git rebase</strong>, this approch will eventually bring all the commit : <strong>2a</strong> &amp; <strong>2b</strong> &amp;<strong> 2c</strong> to the <strong>Main</strong>.<br>But what if we only want to bring the <strong>2b</strong> commit, in this case<br><strong>git cherry-pick</strong> comes very handy because it allows you to select individual commits in this case <strong>2b</strong> for integration, and also it does not change your current Git history rather it adds new commits to it .</p><h4>Use cases of cherry-pick ✅ :</h4><p><strong>C</strong>herry picking in Git provides developers with a precise way to select and apply specific commits from one branch to another. This feature comes pretty much handy in various scenarios, enabling developers to collaborate and incorporate critical changes without merging entire branches. Here are some common use cases for cherry picking :</p><ul><li><strong>Team collaboration </strong>🦾 👨‍💻</li></ul><p><strong>W</strong>hen a team of developers collaborate in the same codebase, it’s possible for other to review and give feedbacks which help identify and fix bugs also ensure that everyone is on the same page, eventually improve the communication &amp; quality of your code which leads to a smooth collaborative workflow, besides that it increase the productivity and save both time 🕓 and ressources 🏃️.<br>In addition within our team we could solve Conflicts Strategically, In collaborative projects, merge conflicts can be inevitable. Cherry picking offers a strategic approach to resolving conflicts by allowing teams to carefully select and apply specific commits, minimizing conflicts and facilitating a smoother integration process.</p><ul><li><strong>Hotfixes </strong>🐞 🔧</li></ul><p>When a bug is discovered it is important to deliver a fix to end users as quickly as possible. For an example scenario,say a developer has started work on a new feature, During that new feature development they identify a pre-existing bug, the developer creates an explicit commit patching this bug, This new patch commit can be cherry-picked directly to the main branch to fix the bug before it effects more users. It also helps addressing the issue without including other unrelated changes.</p><ul><li><strong>Integrating Specific Features </strong>💯</li></ul><p>When working on a feature branch, you might want to integrate only specific features into your main development branch. Cherry picking allows you to carefully choose and merge the commits related to those features, maintaining code modularity and organization.</p><p>There are many other cases in which git cherry-pick might be useful .</p><h4>How to use git cherry-pick 🤔</h4><p>In order to demonstrate how to use git cherry-pick let us assume we have a repository with the following branches: <br>- <strong>Main</strong> <br>- <strong>Feature</strong></p><p>In this example, we are only interested in the seconde commit of the feature branch, applying a traditional merge will bring the whole code from the feature branch and create a new commit in the tip of the main branch. In this case git cherry-pick is very handy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*EatnqhQHsQxkeF1ErpkG0g.png" /></figure><ul><li>First of all Identify the commit-hash :</li></ul><pre>git log -oneline feature</pre><ul><li>Change the branch you want to apply the changes to, in this case Main :</li></ul><pre>git checkout main</pre><ul><li>Simply run :</li></ul><pre>git cherry-pick &quot;commit-hash-of-seconde-commit-in-feature&quot;</pre><p>Now let’s check step-by-step a good illustrations of what cherry-pick does and an animation of these illustrations. <em>src</em>:<a href="https://stackoverflow.com/questions/9339429/what-does-cherry-picking-a-commit-with-git-mean"><em> stack overflow </em></a>:</p><ul><li>Before cherry-picking</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SwE9Ls8Q2HDoWziBYmXgeQ.jpeg" /></figure><p>So basically we are going to do a cherry-pick of the commit <strong>L</strong> from the branch <strong>feature</strong> .</p><p>Now let’s cherry pick the commit<strong> L</strong> : ```git cherry-pick feature~2```</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GLWs34Rurq6Lu2e5nXvoXA.jpeg" /></figure><p>After performing the command our working flow will be as follow :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FlwHfgxgzlWRUzh2xLEMIQ.jpeg" /></figure><p>Animated 👀:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cc5gzzKygjAEq8eS9bP0QQ.gif" /></figure><p>The commit <strong>L’</strong> is from the user’s point of view the exact copy of the commit <strong>L</strong>.<br>Technically speaking, it’s a new, different commit, because <strong>L</strong> contains a pointer to <strong>K </strong>as its parent while <strong>L’ </strong>contains a pointer to <strong>E</strong> .</p><blockquote><strong>Execution options of : git cherry-pick :</strong></blockquote><p>Depending on the situation, you can utilize various useful options with git cherry-pick to customize the behavior of the cherry-picking process. Two notable options are:</p><p>git cherry-pick --no-commit</p><p>The --no-commit option alters the behavior of cherry-picking. Instead of creating a new commit right away, it applies the changes from the target commit to the current branch&#39;s working directory. This allows you to review and modify the changes before creating a new commit.</p><pre>git cherry-pick --no-commit commit_hash<br></pre><p>git cherry-pick --edit</p><p>When using the --edit option, Git will prompt you for a commit message before applying the cherry-pick operation. This gives you an opportunity to provide a meaningful commit message for the cherry-picked changes.</p><pre>git cherry-pick --edit commit_hash</pre><blockquote><strong>Conclusion</strong></blockquote><p>When leveraging git cherry-pick, developers gain the ability to strategically integrate targeted changes, whether for bug fixes, hotfixes, or feature enhancements. However, mastering git cherry-pick is just a fraction of the large Git ecosystem.</p><p>Since you got all the way here, I hope you found this article helpful in understanding cherry-pick. Happy coding 👍 👨‍💻 !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75dbd42d4672" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Establishing an Online PrestaShop Store with Docker and PHP]]></title>
            <link>https://medium.com/@nadir.inab.dev/establishing-an-online-prestashop-store-with-docker-and-php-c8e17de9ac5d?source=rss-a67256dd8081------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8e17de9ac5d</guid>
            <category><![CDATA[prestashop]]></category>
            <category><![CDATA[prestashop-theme]]></category>
            <category><![CDATA[prestashop-development]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Nadir Inab ]]></dc:creator>
            <pubDate>Thu, 21 Sep 2023 10:19:42 GMT</pubDate>
            <atom:updated>2023-09-21T10:19:42.635Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you aspiring to launch an online store using PrestaShop but find the setup process discouraging and very tedious? due to the changelogs and version compatibility etc … . Leveraging the power of Docker and PHP can streamline the setup, allowing you to focus on developing your business. In this comprehensive guide, we’ll walk you through the steps to configure and run your PrestaShop store using Docker.</p><p>What You’ll Need Before we begin, ensure you have the following:</p><p><em>A basic understanding of PHP &amp; MySQL .</em></p><p><em>Docker installed on your system .</em></p><p><em>A basic understanding of Docker concepts .</em></p><blockquote><strong>Step 1 : </strong>Docker Compose File</blockquote><p>Start by creating a docker-compose.yaml file. This file defines the services required to run PrestaShop and MySQL database.</p><pre>version: &#39;3&#39;<br>services:<br>  mysql:<br>    image: mysql:5.7<br>    restart: always<br>    environment:<br>      MYSQL_ROOT_PASSWORD: example<br>      MYSQL_DATABASE: prestashop<br>      MYSQL_USER: root<br>      MYSQL_PASSWORD: root<br>    ports:<br>      - 3306:3306<br>    networks:<br>      - prestashop_net<br><br>  prestashop:<br>    image: prestashop/prestashop:1.7.6<br>    restart: always<br>    ports:<br>      - 8080:80<br>    environment:<br>      DB_SERVER: mysql<br>      DB_NAME: prestashop<br>      DB_USER: root<br>      DB_PASSWD: root<br>    networks:<br>      - prestashop_net<br><br>networks:<br>  prestashop_net:</pre><p>In this Docker Compose file, we have two services defined:</p><p>1- Mysql: MySQL database for PrestaShop, <br>2- Prestashop: PrestaShop application.</p><blockquote>Step 2 : Running the Containers .</blockquote><p>Open a terminal, navigate to the directory containing the docker-compose.yml file, and run the following command:</p><pre>docker compose -f docker-compose.yaml up</pre><p>This command will download the necessary images and start the containers in the background. To check run the following command:</p><pre>docker ps </pre><p>The result will be as follow :</p><pre>CONTAINER ID   IMAGE                           COMMAND                  CREATED          STATUS          PORTS                                                  NAMES<br>22fd0ef65332   prestashop/prestashop:1.7.6   &quot;docker-php-entrypoi…&quot;   2 minutes ago   Up 27 minutes   0.0.0.0:8090-&gt;80/tcp, :::8090-&gt;80/tcp                  downloads-prestashop-1<br>fa65943e1d9a   mysql:5.7                       &quot;docker-entrypoint.s…&quot;   2 months ago     Up 27 minutes   0.0.0.0:3306-&gt;3306/tcp, :::3306-&gt;3306/tcp, 33060/tcp   downloads-mysql-1</pre><blockquote>Step 3: Accessing PrestaShop</blockquote><p>Now that the containers are running, you can access PrestaShop via your web browser at <a href="http://localhost:8080/">http://localhost:8080</a>. Follow the on-screen instructions to complete the installation of PrestaShop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pL61_F6oQMkl9Vo13ujzCg.png" /></figure><blockquote>Step 4: Configuring PrestaShop</blockquote><p>Complete the installation steps by providing the required information for your online store.</p><pre>Database server address: mysql<br>Database name: prestashop<br>Database login: root<br>Database password: root</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*KB3qbAS1-riP7m6Yg0x7iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*lt2O4VeHAVlykxDxT70BTg.png" /></figure><p>Step 5 : Remove install directory &amp; Rename admin :</p><p>You will be redirected to the next page, it simply says that you have the delete <strong>install </strong>directory and rename the<strong> admin </strong>one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*MO2fc2NESTz2pkodSqBtVA.png" /></figure><p>Run the following commands :</p><pre>docker exec -it container_id sh <br># ls <br>INSTALL.txt  admin  autoload.php  cache    composer.lock  controllers  download       images.inc.php  index.php  install  localization  modules   pdf         src     tools         upload  vendor<br>LICENSES     app    bin           classes  config         docs         error500.html  img             init.php   js       mails         override  robots.txt  themes  translations  var     webservice<br># rm -rf ./install <br># mv ./admin ./admin_new</pre><p>Now go on and refresh your page, and magically the previous error page will disapper .</p><blockquote>Step 6 : Managing Your PrestaShop Store</blockquote><p>You can now access and manage your PrestaShop store via the PrestaShop admin panel, which is usually available at <a href="http://localhost:8080/admin123">http://localhost:8080/admin</a> (replace admin with your chosen admin folder name e.g : admin_new).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XzvQ-72EGJEaeFXeveuJaQ.png" /><figcaption>Front-Office</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vT6a0T0fTnBFwezMP4Jc2A.png" /><figcaption>Back-Office</figcaption></figure><h3><strong>Conclusion :</strong></h3><p>By using Docker and PHP, setting up your online PrestaShop store becomes a streamlined process. Docker helps manage dependencies and ensures a consistent environment, while PHP powers the dynamic aspects of PrestaShop. Happy selling!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8e17de9ac5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>