<?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: Munene</title>
    <description>The latest articles on DEV Community by Munene (@munene).</description>
    <link>https://dev.to/munene</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%2F1005149%2F5b9e3b59-c347-42e7-b5ed-dbb6105781e9.png</url>
      <title>DEV Community: Munene</title>
      <link>https://dev.to/munene</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/munene"/>
    <language>en</language>
    <item>
      <title>Build your porfolio using Next.jS and TailwindCSS</title>
      <dc:creator>Munene</dc:creator>
      <pubDate>Sat, 14 Jan 2023 11:41:02 +0000</pubDate>
      <link>https://dev.to/munene/build-your-porfolio-using-nextjs-and-tailwindcss-5207</link>
      <guid>https://dev.to/munene/build-your-porfolio-using-nextjs-and-tailwindcss-5207</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;Building a portfolio website can be a great way to showcase your work and skills to potential employers or clients. In this article, we will go over how to build a portfolio website using Next.js and TailwindCSS.&lt;/p&gt;

&lt;h3&gt;
  
  
  Setup
&lt;/h3&gt;

&lt;p&gt;First, you will need to have Node.js and npm (Node Package Manager) installed on your computer. If you don't have these already, you can download them from the official website &lt;a href="https://nodejs.org/" rel="noopener noreferrer"&gt;Nodejs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Next, create a new directory for your project and navigate to it in the terminal. Run the following command to create a new Next.js app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt; npx create-next-app@latest my-portfolio --eslint
&amp;gt; cd my-portfolio
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will create a new directory with the basic structure for a Next.js app.&lt;/p&gt;

&lt;p&gt;To use TailwindCSS with your project, you will need to install it using npm. In the terminal, navigate to the root of your project and run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt; npm install -D tailwindcss postcss autoprefixer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After it is installed, you will need to create a new CSS file in the "styles" directory and import TailwindCSS. You can do this by running the following command in the terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt; npx tailwindcss init -p
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will create a new "tailwind.config.js" and "postcss.config.js" file in the root of your project, and a new "styles/tailwind.css" file. You can use this file to customize your Tailwind configuration, if desired.&lt;/p&gt;

&lt;p&gt;Next, add the paths to all of your template files in your tailwind.config.js file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./pages/**/*.{js,ts,jsx,tsx}",
    "./components/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After this add the &lt;em&gt;&lt;a class="mentioned-user" href="https://dev.to/tailwind"&gt;@tailwind&lt;/a&gt;&lt;/em&gt; directives for each of Tailwind’s layers to your ./styles/globals.css file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@tailwind base;
@tailwind components;
@tailwind utilities;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, you can import this CSS file in your pages or components. In the "pages/_app.js" file, you can import the CSS file and apply it to the whole application.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import "../styles/globals.css"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally to start your build process of the project run the following code in you project's root directory&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 dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can now start building your portfolio website using Next.js and TailwindCSS. Use the built-in Next.js components like "Link" and "Head" to create a navigation menu and page titles. Use TailwindCSS classes to style your elements and create a consistent look and feel throughout your website.&lt;/p&gt;

&lt;p&gt;Finally, you can deploy your website to a hosting service like Vercel or Netlify. These services will automatically build and deploy your website when you push changes to your git repository.&lt;/p&gt;

</description>
      <category>mobile</category>
      <category>softwaredevelopment</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Basic Data Visualization Using ggplot2</title>
      <dc:creator>Munene</dc:creator>
      <pubDate>Sat, 14 Jan 2023 11:35:03 +0000</pubDate>
      <link>https://dev.to/munene/basic-data-visualisation-using-ggplot2-2fmd</link>
      <guid>https://dev.to/munene/basic-data-visualisation-using-ggplot2-2fmd</guid>
      <description>&lt;p&gt;ggplot2 is a powerful data visualization library in R that allows you to create a wide variety of plots and charts with ease. One of its key features is the ability to create plots using a layered grammar of graphics, which makes it easy to create complex visualizations.&lt;/p&gt;

&lt;p&gt;First, you will need to have R and RStudio installed on your computer. If you don't have these already, you can download them from the official website &lt;a href="https://rstudio.com/" rel="noopener noreferrer"&gt;RStudio&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Next, you will need to install the ggplot2 library by running the following command in the R console:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;install.packages("ggplot2")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After installing ggplot2, you can load it into your R session by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;library(ggplot2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To create a plot using ggplot2, you will need to first prepare your data. You can do this by loading it into a data frame, which is a special type of object in R that stores your data in a table format. For example, you can load a CSV file into a data frame using the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;data &amp;lt;- read.csv("data.csv")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you have your data loaded, you can start creating plots using the "ggplot" function. The basic syntax for creating a plot is as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ggplot(data, aes(x = x_variable, y = y_variable)) + geom_point()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates a scatter plot of the "x_variable" against the "y_variable" in the "data" data frame. The "aes" function inside the ggplot function is used to map variables in the data frame to the x and y axes. The "geom_point" function is used to specify the type of plot, in this case, it's a scatter plot.&lt;/p&gt;

&lt;p&gt;You can also customize your plot by adding additional layers to it. For example, you can add a line of best fit to your scatter plot using the "geom_smooth" function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ggplot(data, aes(x = x_variable, y = y_variable)) + geom_point() + geom_smooth()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also add different types of chart like line chart, bar chart etc.&lt;/p&gt;

&lt;p&gt;You can also customize the appearance of your plot by changing the colors, labels, and other elements. For example, you can change the color of the points in the scatter plot using the "color" aesthetic:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ggplot(data, aes(x = x_variable, y = y_variable, color = color_variable)) + geom_point()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this case, the color of the points will be determined by the "color_variable" in the data frame.&lt;/p&gt;

&lt;p&gt;ggplot2 offers a wide variety of options for visualizing data. You can use it to create a wide range of plots such as scatter plots, line plots, bar plots, histograms, and box plots, among others. It also allows you to customize the appearance of your plots using a wide range of options for colors, labels, and other elements.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>go</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
