<?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: KIranuknow</title>
    <description>The latest articles on DEV Community by KIranuknow (@kiranuknow).</description>
    <link>https://dev.to/kiranuknow</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%2F1210758%2Fc66c252b-0d56-4353-8573-e39590149be4.jpg</url>
      <title>DEV Community: KIranuknow</title>
      <link>https://dev.to/kiranuknow</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kiranuknow"/>
    <language>en</language>
    <item>
      <title>Playwrite - Basics</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Fri, 28 Mar 2025 20:47:56 +0000</pubDate>
      <link>https://dev.to/kiranuknow/playwrite-basics-2j58</link>
      <guid>https://dev.to/kiranuknow/playwrite-basics-2j58</guid>
      <description>&lt;p&gt;&lt;strong&gt;_How to Install _&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;pip install pytest-playwright&lt;/li&gt;
&lt;li&gt;playwright install&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How to run a program&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
If the file name starts without test*.py then just use this command. ex: file name myusecase.py
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;pytest &amp;lt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;.py
&lt;span class="nv"&gt;$ &lt;/span&gt;pytest myusecase.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
If the file name starts with test&amp;lt;&amp;gt;.py then no need to specify the file name when running
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;pytest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
If you want to see the execution in a browser.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$pytest&lt;/span&gt; &lt;span class="nt"&gt;--headed&lt;/span&gt; &lt;span class="nt"&gt;--browser&lt;/span&gt; firefox 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
Record the flow and copy the code
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$playwright&lt;/span&gt; codegen https://example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Playwrite Documentation: &lt;a href="https://playwright.dev/python/docs/actionability" rel="noopener noreferrer"&gt;https://playwright.dev/python/docs/actionability&lt;/a&gt;&lt;/p&gt;

</description>
      <category>playwright</category>
      <category>python</category>
      <category>testing</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>SAPUI5 - Table Cell Coloring</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Tue, 06 Aug 2024 15:53:37 +0000</pubDate>
      <link>https://dev.to/kiranuknow/sapui5-table-cell-coloring-368g</link>
      <guid>https://dev.to/kiranuknow/sapui5-table-cell-coloring-368g</guid>
      <description>&lt;p&gt;We can color the table cells in SAPUI5's sap.ui.table using css.&lt;br&gt;
There are two ways, one is to use customData in the template and formatter.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//using Javascript code for dynamically adding columns with css coloring.


 var oTable = new Table("idMyTable", {
                columns: [
                    new Column({
                        label: new Label({ text: "City" }),
                        template: new Text({
                            text: "{model&amp;gt;city}",
                            customData: [
                                new sap.ui.core.CustomData({
                                    key: "color",
                                    value: "{model&amp;gt;color}"
                                })
                            ]
                        }).addStyleClass("customText")
                    })
                ]
            });

//call the below function from the above column addition
 oTable.getRows().forEach(function(oRow) {
                        oRow.getCells().forEach(function(oCell) {
                            var sColor = oCell.data("color");
                            if (sColor) {
                                oCell.addStyleClass("customTextColor-" + sColor.toLowerCase());
                            }
                        });
                    });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Formatter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var oNewColumn = new Column({
                label: new Label({ text: "Weight" }),
                template: new Text({
                    text: {
                        path: "Weight",
                        formatter: this.formatColor
                    }
                })
            });

            oTable.addColumn(oNewColumn);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//Formatter function
formatColor: function(sWeight) {
if (sWeight &amp;gt; 100) {
    this.addStyleClass("red");
} else {
    this.addStyleClass("green");
}

});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/67262473/how-to-change-color-of-sap-ui-table-table-row-based-on-the-status-value" rel="noopener noreferrer"&gt;3rd Method&lt;/a&gt;&lt;/p&gt;

</description>
      <category>sapui5</category>
      <category>table</category>
      <category>cell</category>
      <category>color</category>
    </item>
    <item>
      <title>SAPUI5 - Typescript</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Tue, 23 Jul 2024 01:54:53 +0000</pubDate>
      <link>https://dev.to/kiranuknow/sapui5-typescript-4no6</link>
      <guid>https://dev.to/kiranuknow/sapui5-typescript-4no6</guid>
      <description>&lt;p&gt;&lt;strong&gt;To dynamically add columns to a sap.ui.table.Table in SAPUI5 using TypeScript, you can follow these steps: Create a new column object.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import Column from "sap/ui/table/Column";
import Label from "sap/m/Label";
import Text from "sap/m/Text";

// ...

const newColumn = new Column({
    label: new Label({ text: "New Column" }), // Column header
    template: new Text({ text: "{propertyName}" }), // Binding to a property in your model
    width: "100px" // Optional width setting
});

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Add the column to the table.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const myTable = this.byId("myTable") as sap.ui.table.Table;
myTable.addColumn(newColumn);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import Controller from "sap/ui/core/mvc/Controller";
import Column from "sap/ui/table/Column";
import Label from "sap/m/Label";
import Text from "sap/m/Text";

export default class MyController extends Controller {

    onAddColumn() {
        const newColumn = new Column({
            label: new Label({ text: "Dynamic Column" }),
            template: new Text({ text: "{myProperty}" }),
            width: "150px"
        });

        const myTable = this.byId("myTable") as sap.ui.table.Table;
        myTable.addColumn(newColumn);
    }
}





&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>sapui5</category>
      <category>openui5</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Typescript - Best Practices</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Thu, 11 Jul 2024 20:00:00 +0000</pubDate>
      <link>https://dev.to/kiranuknow/typescript-best-practices-4i5e</link>
      <guid>https://dev.to/kiranuknow/typescript-best-practices-4i5e</guid>
      <description>&lt;p&gt;&lt;strong&gt;Let, Var and Const&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use &lt;strong&gt;&lt;em&gt;const&lt;/em&gt;&lt;/strong&gt; for variables that won't be reassigned.&lt;br&gt;
Use &lt;strong&gt;&lt;em&gt;let&lt;/em&gt;&lt;/strong&gt; for variables that will be reassigned.&lt;br&gt;
Avoid &lt;strong&gt;&lt;em&gt;var&lt;/em&gt;&lt;/strong&gt; in new TypeScript code.&lt;/p&gt;

&lt;p&gt;Best References:&lt;br&gt;
&lt;a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/best-practices-cdk-typescript-iac/typescript-best-practices.html" rel="noopener noreferrer"&gt;AWS TypeScript&lt;/a&gt;&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>best</category>
      <category>practices</category>
    </item>
    <item>
      <title>Javascript to Typescript Tips</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Thu, 11 Jul 2024 02:57:32 +0000</pubDate>
      <link>https://dev.to/kiranuknow/javascript-to-typescript-tips-1ine</link>
      <guid>https://dev.to/kiranuknow/javascript-to-typescript-tips-1ine</guid>
      <description>&lt;p&gt;Some of the tips in migrating existing JavaScript code to TypeScript.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var name = "test";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;em&gt;TypeScript&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//declare fieldName as string
let name: string ;
name = "test";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>typescript</category>
      <category>migration</category>
    </item>
    <item>
      <title>Issue with NPM Package Installing Globally</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Wed, 03 Jul 2024 02:36:34 +0000</pubDate>
      <link>https://dev.to/kiranuknow/issue-with-npm-package-installing-globally-cgi</link>
      <guid>https://dev.to/kiranuknow/issue-with-npm-package-installing-globally-cgi</guid>
      <description>&lt;p&gt;I was not able to install npm packages globally in mac os(using npm install -g), but able to install locally in the project. Installing locally in every project will increase the total node_modules folder size and for every project we need to install the same packages that will be tedious and unnecessary.&lt;/p&gt;

&lt;p&gt;Here are the steps I performed.&lt;/p&gt;

&lt;p&gt;I was using Homebrew to install node and npm. So, &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Used command &lt;code&gt;npm config get prefix&lt;/code&gt;  - check where the npm actually points to. If this points to /opt/homebrew &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check if node_modules are installed in cd &lt;code&gt;/usr/local/lib&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If (2) is true, &lt;code&gt;brew remove npm&lt;/code&gt; and then &lt;code&gt;brew install npm&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now see if &lt;code&gt;npm install -g  express works&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ref: &lt;a href="https://stackoverflow.com/questions/22562041/global-installation-with-npm-doesnt-work-after-mac-os-x-mavericks-update" rel="noopener noreferrer"&gt;https://stackoverflow.com/questions/22562041/global-installation-with-npm-doesnt-work-after-mac-os-x-mavericks-update&lt;/a&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>npm</category>
      <category>nodemodules</category>
    </item>
    <item>
      <title>NPX vs NGX vs NPM</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Tue, 02 Jul 2024 15:03:49 +0000</pubDate>
      <link>https://dev.to/kiranuknow/npx-vs-ngx-3f7m</link>
      <guid>https://dev.to/kiranuknow/npx-vs-ngx-3f7m</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx: an npm package runner
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ngx packages are used by Angular
ngx : used by Angular to run Angular projects.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F07g76yhhoxk7duhg6erf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F07g76yhhoxk7duhg6erf.png" alt="Image description" width="800" height="399"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;NPM =&amp;gt; Is a JS package manager.&lt;/p&gt;

&lt;p&gt;NPX =&amp;gt; Is a tool for executing Node packages and execute npm package binaries.&lt;/p&gt;

&lt;p&gt;It is easy to remember:&lt;/p&gt;

&lt;p&gt;-npm stands for MANAGER&lt;/p&gt;

&lt;p&gt;-npx stands for EXECUTE&lt;/p&gt;

</description>
    </item>
    <item>
      <title>zsh: command not found ui5 tooling.</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Mon, 24 Jun 2024 17:47:24 +0000</pubDate>
      <link>https://dev.to/kiranuknow/zsh-command-not-found-ui5-tooling-3bgk</link>
      <guid>https://dev.to/kiranuknow/zsh-command-not-found-ui5-tooling-3bgk</guid>
      <description>&lt;p&gt;To solve the "zsh: command not found: ui5" error when using UI5 tools locally installed in your project's node_modules on a Mac, you can try the following approaches:&lt;/p&gt;

&lt;p&gt;Use npx to run the UI5 CLI:&lt;/p&gt;

&lt;p&gt;Instead of calling ui5 directly, use npx ui5. This will look for the UI5 CLI in your project's node_modules and execute it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx ui5 &amp;lt;command&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Use the full path to the UI5 CLI:&lt;br&gt;
You can run the UI5 CLI by specifying its full path in the node_modules folder:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;./node_modules/.bin/ui5 &amp;lt;command&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Add node_modules/.bin to your PATH:&lt;br&gt;
You can temporarily add the node_modules/.bin directory to your PATH for the current session:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export PATH=$PATH:./node_modules/.bin&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After running this command, you should be able to use ui5 directly in that terminal session.&lt;/p&gt;

&lt;p&gt;Use npm scripts:&lt;br&gt;
Define scripts in your package.json file that use the locally installed UI5 CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
{
  "scripts": {
    "start": "ui5 serve",
    "build": "ui5 build"
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you can run these scripts using npm:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run start
npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>openui5</category>
      <category>sapui5</category>
      <category>mac</category>
      <category>command</category>
    </item>
    <item>
      <title>OpenUI - One prompt UI Generation</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Sat, 04 May 2024 23:27:45 +0000</pubDate>
      <link>https://dev.to/kiranuknow/openui-one-prompt-ui-generation-3hf9</link>
      <guid>https://dev.to/kiranuknow/openui-one-prompt-ui-generation-3hf9</guid>
      <description>&lt;p&gt;I am trying to use &lt;strong&gt;OpenUI&lt;/strong&gt; to generate a UI by using Ollama based Models. &lt;br&gt;
I have already installed &lt;strong&gt;Ollama&lt;/strong&gt; and different models.&lt;br&gt;
Also, here I am going to install OpenUI in a virtual Environment called &lt;strong&gt;Conda&lt;/strong&gt; instead of docker.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

git clone https://github.com/wandb/openui
cd openui/backend
conda create -n openui python=3.10 anaconda
conda activate openui
pip install .
#this is not optional to give OPENAI API KEY, so just give xxx
export OPENAI_API_KEY=xxx
python -m openui


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3e9ahgxl3lx4x7r47nbx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3e9ahgxl3lx4x7r47nbx.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go to browser and type the given URL to start OpenUI.&lt;br&gt;
Now, you can go to settings and see the Ollama models are loaded automatically.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0f68toowawk3ipv6i7c8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0f68toowawk3ipv6i7c8.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F54uneudm6w0tqr7zfzp4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F54uneudm6w0tqr7zfzp4.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;find more about conda &lt;a href="https://www.geeksforgeeks.org/set-up-virtual-environment-for-python-using-anaconda/#" rel="noopener noreferrer"&gt;here&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Refer this &lt;a href="https://www.youtube.com/watch?v=zzw2OSFw9xI" rel="noopener noreferrer"&gt;Youtube link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All credits goes to &lt;strong&gt;Matthew Berman&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>openui</category>
      <category>conda</category>
      <category>ollama</category>
    </item>
    <item>
      <title>Docker - a terminal GUI</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Thu, 25 Apr 2024 00:50:46 +0000</pubDate>
      <link>https://dev.to/kiranuknow/docker-a-terminal-gui-2fo7</link>
      <guid>https://dev.to/kiranuknow/docker-a-terminal-gui-2fo7</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw3369gbzgjx53wv3yc82.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw3369gbzgjx53wv3yc82.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Installing in Ubuntu:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Give permissions:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

sudo chown $USER /var/run/docker.sock


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Run in the terminal:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

lazydocker


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;References:&lt;br&gt;
&lt;a href="https://wiki.opensourceisawesome.com/books/docker-management-Ys2/page/install-lazydocker" rel="noopener noreferrer"&gt;https://wiki.opensourceisawesome.com/books/docker-management-Ys2/page/install-lazydocker&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/48568172/docker-sock-permission-denied" rel="noopener noreferrer"&gt;https://stackoverflow.com/questions/48568172/docker-sock-permission-denied&lt;/a&gt;&lt;/p&gt;

</description>
      <category>docker</category>
      <category>lazydocker</category>
      <category>terminal</category>
      <category>gui</category>
    </item>
    <item>
      <title>Devika - docker</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Thu, 18 Apr 2024 12:52:01 +0000</pubDate>
      <link>https://dev.to/kiranuknow/devika-docker-i83</link>
      <guid>https://dev.to/kiranuknow/devika-docker-i83</guid>
      <description>&lt;p&gt;Earlier in my post, I have given step by step instructions to install Devika locally.&lt;/p&gt;

&lt;p&gt;Here I can give you some information to stop the containers.&lt;/p&gt;

&lt;p&gt;Check for running containers in docker&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;docker container &lt;span class="nb"&gt;ls&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Stop containers with container name&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker container stop devika-ollama-service-1
sudo docker container stop devika-devika-frontend-app-1
sudo docker container stop devika-devika-backend-engine-1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Devika - Install in local</title>
      <dc:creator>KIranuknow</dc:creator>
      <pubDate>Thu, 18 Apr 2024 12:44:53 +0000</pubDate>
      <link>https://dev.to/kiranuknow/devika-installation-locally-h6n</link>
      <guid>https://dev.to/kiranuknow/devika-installation-locally-h6n</guid>
      <description>&lt;p&gt;I have installed Devika locally using docker.&lt;br&gt;
As a prerequisit, I have already installed docker in my ubuntu.&lt;/p&gt;

&lt;p&gt;There are three main components in Devika, &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Frontend server which runs on port 3000&lt;/li&gt;
&lt;li&gt;Backend Server&lt;/li&gt;
&lt;li&gt;Ollama and ollama LLM models which runs on port 11434&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Devika can be use different non-open source LLM Models like OpenAI (chatgpt), ClaudeAI etc..&lt;/p&gt;

&lt;p&gt;Here are step by step instructions.&lt;br&gt;
Clone repository in your local directory using terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/stitionai/devika.git
cd devika
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;copy config.toml and edit to update API keys.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cp sample.config.toml config.toml
sudo nano config.toml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, you can start installing process using docker compose. Devika's repository already contains docker compose file and no need to change anything.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo docker compose up&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now in the terminal, you can see the devika's containers starting.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl82kqxa6rznqhcxpjoy8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl82kqxa6rznqhcxpjoy8.png" alt=" " width="796" height="92"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;finally you can see the port devika is running&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbm814vdyrupppabom65g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbm814vdyrupppabom65g.png" alt=" " width="796" height="92"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can go to browser and run localhost:3000.&lt;/p&gt;

</description>
      <category>devika</category>
      <category>ollama</category>
      <category>agents</category>
      <category>docker</category>
    </item>
  </channel>
</rss>
