<?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>Forem: Hossein Kazemi</title>
    <description>The latest articles on Forem by Hossein Kazemi (@hossein761).</description>
    <link>https://forem.com/hossein761</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%2F557315%2F68a5dbc2-bca4-4a17-9c7e-14e5baa80e13.jpg</url>
      <title>Forem: Hossein Kazemi</title>
      <link>https://forem.com/hossein761</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/hossein761"/>
    <language>en</language>
    <item>
      <title>Open spot for a 6 month mentorship</title>
      <dc:creator>Hossein Kazemi</dc:creator>
      <pubDate>Thu, 27 May 2021 15:10:11 +0000</pubDate>
      <link>https://forem.com/hossein761/open-spot-for-a-6-month-mentorship-282</link>
      <guid>https://forem.com/hossein761/open-spot-for-a-6-month-mentorship-282</guid>
      <description>&lt;p&gt;I have a new spot open to mentor a junior/starting developer for free for the next 6 months. Read along if you are interested and see if this matches your profile:&lt;/p&gt;

&lt;p&gt;1️⃣  What you will learn?&lt;/p&gt;

&lt;p&gt;A. Backend development and a bit of DevOps&lt;br&gt;
B. I'll define a project for you and I'll teach you everything I know to complete it. The exact contents will be based on your experience&lt;br&gt;
C. Focus is on problem solving and proper thinking&lt;/p&gt;

&lt;p&gt;2️⃣ For who? &lt;/p&gt;

&lt;p&gt;You should fall into one of the following categories:&lt;/p&gt;

&lt;p&gt;A. Looking for a job&lt;br&gt;
B. A Recent graduate of a coding school or a CS degree&lt;br&gt;
C. Changing career into tech and self-learning&lt;/p&gt;

&lt;p&gt;3️⃣ What is the format?&lt;/p&gt;

&lt;p&gt;A. Weekly/bi-weekly calls&lt;/p&gt;

&lt;p&gt;B. Code reviews&lt;/p&gt;

&lt;p&gt;C. Pair-programming&lt;/p&gt;

&lt;p&gt;D. Direct access to me on Slack to ask any technical questions&lt;/p&gt;

&lt;p&gt;4️⃣ When do we start?&lt;/p&gt;

&lt;p&gt;I need to make sure that you are serious and genuinely want to learn, so send me a DM on twitter: &lt;a href="//https:twitter.com/hossein761"&gt;@hossein761&lt;/a&gt; and we schedule a call.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>help</category>
      <category>backend</category>
    </item>
    <item>
      <title>Put your Macbook to sleep with this command</title>
      <dc:creator>Hossein Kazemi</dc:creator>
      <pubDate>Thu, 04 Mar 2021 19:33:58 +0000</pubDate>
      <link>https://forem.com/hossein761/put-your-macbook-to-sleep-with-this-command-8fm</link>
      <guid>https://forem.com/hossein761/put-your-macbook-to-sleep-with-this-command-8fm</guid>
      <description>&lt;p&gt;Do you hate to use the Macbook’s touchbar like me? And do you spend most of the time in your terminal? &lt;/p&gt;

&lt;p&gt;Use the command below to put your Macbook to sleep:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pmset displaysleepnow
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Follow me on twitter for more &lt;a href="https://twitter.com/hossein761"&gt;@hossein761&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>bash</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
    <item>
      <title>I am looking for people who need a mentor</title>
      <dc:creator>Hossein Kazemi</dc:creator>
      <pubDate>Mon, 01 Mar 2021 14:20:37 +0000</pubDate>
      <link>https://forem.com/hossein761/read-this-if-you-are-looking-for-mentors-3np5</link>
      <guid>https://forem.com/hossein761/read-this-if-you-are-looking-for-mentors-3np5</guid>
      <description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;My name is Hossein and I am going to work on a few small (personal) software projects in the coming months, ranging from tiny saas products to just useful features/functionality. I like to share and teach what I do and learn to others along the way. So I am looking for people who need a mentor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I use these projects as a source to teach you:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to solve problems with code and how to think like a proper developer&lt;/li&gt;
&lt;li&gt;How to use mental models to improve your coding skills&lt;/li&gt;
&lt;li&gt;How to choose the right technology for the problem&lt;/li&gt;
&lt;li&gt;How to build software products zero to one.&lt;/li&gt;
&lt;li&gt;Help you fill in the knowledge gaps you have&lt;/li&gt;
&lt;li&gt;Explain the concepts you are struggling with. No question is stupid. I try to answer what I know.&lt;/li&gt;
&lt;li&gt;I might put some of these products on the market. You can learn the business side of things as well. You can do the same, and I don’t mind. I love to see you put something out there with what I teach.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What if you have a project of your own?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No problem, I can help you with that. You can use the stuff I teach you for your own products.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why am I doing this?&lt;/strong&gt;&lt;br&gt;
I have been coding since the age of 13 ( I am 38 now). A mentor taught me how to code at that age. The impact of what he did on my life was massive. So I fully understand how valuable having a mentor is. Sadly he lost his battle with cancer in Nov 2020. I am doing this to honor his life.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For who?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you are a CS student/recent graduate or have done coding 101, I can help you the most. But If you just want to start learning how to code, I need to work on a different curriculum for you.&lt;/li&gt;
&lt;li&gt;People who are confused about what to do after their learning/studying phase is finished. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Requirements&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Massive interest in learning&lt;/li&gt;
&lt;li&gt;You want software development to be your profession. &lt;/li&gt;
&lt;li&gt;Have a proper and tangible goal (we can work this out together)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What would be the format?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Blog posts, Chat, Email, Zoom, Twitter Spaces.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Technology focus:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I do stuff in Python/Django, Golang, a bit of Javascript, DevOps(AWS, Terraform, Docker, Kubernetes). The majority of the teachings are about backend and infrastructure. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are interested, enter your contact info in this &lt;a href="https://forms.gle/Yc5xUEXkZ5YWfGhd8"&gt;GOOGLE FORM&lt;/a&gt; so I can contact you back, and we start planning.&lt;/p&gt;

&lt;p&gt;Cheers&lt;br&gt;
Hossein&lt;/p&gt;

</description>
      <category>help</category>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>career</category>
    </item>
    <item>
      <title>Leverage Selective Ignorance to improve your software development skills</title>
      <dc:creator>Hossein Kazemi</dc:creator>
      <pubDate>Wed, 24 Feb 2021 20:33:34 +0000</pubDate>
      <link>https://forem.com/hossein761/leverage-selective-ignorance-to-improve-your-software-development-skills-ok0</link>
      <guid>https://forem.com/hossein761/leverage-selective-ignorance-to-improve-your-software-development-skills-ok0</guid>
      <description>&lt;p&gt;Since I've started applying mental models to my software development process, I have seen significant improvement in my productivity, code quality, and problem-solving. Because of this, I decided to write a series of newsletter posts to teach other developers to become a better version of themselves.&lt;br&gt;
The first post is about leveraging Selective Ignorance. You can read it here: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.boringbackend.dev/selective-ignorance/?utm_source=devto"&gt;Selective Ignorance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And here is the full list that I will be writing in the near future:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.boringbackend.dev/mental-models-for-developers/?utm_source=devto"&gt;Mental Models for Developers&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can subscribe to my newsletter or follow me on Twitter &lt;a href="https://twitter.com/hossein761"&gt;@hossein761&lt;/a&gt;. I'd love to hear your comments and feedback!&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>productivity</category>
      <category>career</category>
    </item>
    <item>
      <title>Make your Django models self-timestamp</title>
      <dc:creator>Hossein Kazemi</dc:creator>
      <pubDate>Sun, 21 Feb 2021 19:37:28 +0000</pubDate>
      <link>https://forem.com/hossein761/make-your-django-models-self-timestamp-3i8e</link>
      <guid>https://forem.com/hossein761/make-your-django-models-self-timestamp-3i8e</guid>
      <description>&lt;p&gt;Make your Django models inherit from the below abstract class. You models will get automatically timestamped upon creation and update of instances.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.db import models


class TimeStampedModel(models.Model):
    """
    An abstract base class model that provides self-updating
    ``created_at`` and ``updated_at`` fields.
    """
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    class Meta:
        abstract = True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Join my free newsletter &lt;a href="https://www.boringbackend.dev"&gt;BORING BACKEND&lt;/a&gt;. Soon i'll be starting mentoring people by doing micro-projects.&lt;/p&gt;

</description>
      <category>django</category>
      <category>python</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to use TailwindCSS in a Cookiecutter Django project</title>
      <dc:creator>Hossein Kazemi</dc:creator>
      <pubDate>Wed, 17 Feb 2021 08:52:14 +0000</pubDate>
      <link>https://forem.com/hossein761/how-to-use-tailwindcss-in-a-cookiecutter-django-project-44kh</link>
      <guid>https://forem.com/hossein761/how-to-use-tailwindcss-in-a-cookiecutter-django-project-44kh</guid>
      <description>&lt;h3&gt;
  
  
  Motivation
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.tailwind.css"&gt;TailwindCSS&lt;/a&gt; has found a growing fan-base  among the developers who use Javascript frameworks such as React, GatsbyJS, Next.js.&lt;br&gt;
But for the rest of us &lt;a href="https://getbootstrap.com"&gt;Bootstrap&lt;/a&gt; has been a go to option for years. In fact &lt;a href="https://github.com/pydanny/cookiecutter-django"&gt;Cookiecutter Django&lt;/a&gt;  configures Bootstrap out of the box for you.&lt;/p&gt;

&lt;p&gt;Like many for a new project, I used Django Cookiecutter as my base, but this time I wanted to use those fancy styling from TailwindCSS in my project. After playing with the structure I managed to make it work the way I want it. As there was a lack of a proper tutorial on this, I felt this could be a  good subject to write about.&lt;/p&gt;

&lt;p&gt;Below are the steps you should follow:&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Generate your Django project with Cookiecutter
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# install cookie-cutter
pip install "cookiecutter&amp;gt;=1.7.0"

# generate your project
cookiecutter https://github.com/pydanny/cookiecutter-django
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You will be asked a few questions, you can find a good explanation of all in &lt;a href="https://cookiecutter-django.readthedocs.io/en/latest/project-generation-options.html"&gt;Cookiecutter's docs&lt;/a&gt;. If you don't know the answer, go with the provided default. ==Don't over analyze==.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Create a new folder structure for static files
&lt;/h3&gt;

&lt;p&gt;In the root of your project create a folder called &lt;code&gt;frontend&lt;/code&gt; and  under it, create the same subfolders as you see in your apps &lt;code&gt;static&lt;/code&gt; folder like below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;frontend/
 css/
 fonts/
 images/
 js/
 scss/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From now on this will be the place in which you put your static files. You will see the reason for this shortly.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Upgrade your Node version
&lt;/h3&gt;

&lt;p&gt;Tailwind works with &lt;code&gt;node&lt;/code&gt; version &lt;code&gt;12&lt;/code&gt; above. What worked for me without much problems was version &lt;code&gt;14&lt;/code&gt;. Make sure you are upgrading your local version to &lt;code&gt;14&lt;/code&gt; or if you are using Docker, change the version in the &lt;code&gt;compose/local/node/Dockerfile&lt;/code&gt;. Your &lt;code&gt;Dockerfile&lt;/code&gt; should look something like the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FROM node:14-stretch-slim

WORKDIR /app

COPY ./package.json /app

RUN npm install &amp;amp;&amp;amp; npm cache clean --force

ENV PATH ./node_modules/.bin/:$PATH

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

&lt;/div&gt;



&lt;p&gt;==Still with me?==&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Add the necessary dependencies to your &lt;code&gt;package.json&lt;/code&gt; file
&lt;/h3&gt;

&lt;p&gt;First add the following to &lt;code&gt;dependencies&lt;/code&gt; in &lt;code&gt;package.json&lt;/code&gt;. You don't need to use any dependency managers like &lt;code&gt;npm&lt;/code&gt; or &lt;code&gt;yarn&lt;/code&gt; at this stage. Just make sure you insert the following dependencies in the right version in the right place. To avoid conflicts, I suggested that you first start with the exact same dependencies mentioned below, make everything work and add other dependencies as you go:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  "dependencies": {
    "html-loader": "^1.3.2",
    "html-webpack-plugin": "^4.5.1",
  },
  "devDependencies": {
    "autoprefixer": "^10.2.4",
    "clean-webpack-plugin": "^3.0.0",
    "copy-webpack-plugin": "^7.0.0",
    "css-loader": "^5.0.2",
    "dotenv-webpack": "^6.0.0",
    "file-loader": "^6.2.0",
    "mini-css-extract-plugin": "^1.3.6",
    "node-sass": "^5.0.0",
    "postcss": "^8.2.6",
    "postcss-loader": "^5.0.0",
    "purgecss-webpack-plugin": "^4.0.0",
    "sass-loader": "^11.0.1",
    "tailwindcss": "^2.0.3",
    "webpack": "^5.19.0",
    "webpack-cli": "^4.4.0",
    "webpack-dev-server": "^3.11.2"
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;NOTE 1: It is important to know that TailwindCSS relies on &lt;code&gt;PostCSS 8&lt;/code&gt; and above. If are using packages different from the above, you need to make sure that there is no other dependency in your &lt;code&gt;package.json&lt;/code&gt; that depends on &lt;code&gt;PostCSS&lt;/code&gt; lower than version 8. To do the inspection use &lt;code&gt;npm list&lt;/code&gt; or if you use yarn &lt;code&gt;yarn list&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;NOTE 2: Make sure there is no packages in your &lt;code&gt;package.json&lt;/code&gt; that is related to &lt;code&gt;Bootstrap&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you are already lost, just copy my config file from here: &lt;a href="https://gist.github.com/hossein761/0b2c3e366007f49980bd17e9ce20de8a"&gt;package.json&lt;/a&gt; and jump to step 7.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  6.Replace Gulp with Webpack
&lt;/h3&gt;

&lt;p&gt;As you saw in the previous step, we are introducing &lt;a href="https://webpack.js.org"&gt;Webpack&lt;/a&gt; in the dependencies. This means that you need remove anything related to Gulp from your &lt;code&gt;package.json&lt;/code&gt; file. Remove &lt;code&gt;gulp-*&lt;/code&gt; dependencies and adjust the &lt;code&gt;scripts&lt;/code&gt; section to look like below:&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": "webpack serve --mode development",
    "build": "webpack --mode production"
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;==Don't fall sleep yet!==&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Glue everything together with Webpack
&lt;/h3&gt;

&lt;p&gt;As you saw we created a separate folder structure called &lt;code&gt;frontend&lt;/code&gt; in which we are going to put our static files. &lt;br&gt;
Now you might ask isn't the default &lt;code&gt;static&lt;/code&gt; folder for this? It is a legit question, it actually is, however instead of we manually put our &lt;code&gt;js&lt;/code&gt;, &lt;code&gt;scss&lt;/code&gt;, etc files in there, Webpack will do this for us.&lt;/p&gt;

&lt;p&gt;It simply reads everything in the &lt;code&gt;frontend&lt;/code&gt; folder, does whatever magic is needed on those files such as optimization, post-processing, etc and put the results in the static folder for us so that Django can use them.&lt;/p&gt;

&lt;p&gt;For this we create a Webpack configuration file called &lt;code&gt;webpack.config.js&lt;/code&gt;. We tell Webpack where to start &lt;code&gt;entry&lt;/code&gt;, where to find our static files and what to do with each of them  based on their type &lt;code&gt;rules&lt;/code&gt; and &lt;code&gt;plugins&lt;/code&gt;. Explaining out Webpack works is outside the scope of this tutorial. You can copy my configurations directly from here: &lt;a href="https://gist.github.com/hossein761/0b2c3e366007f49980bd17e9ce20de8a"&gt;webpack.config.js&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  8. Add static files to your &lt;code&gt;frontend&lt;/code&gt; folder
&lt;/h3&gt;

&lt;p&gt;Now you need to create the necessary files in your &lt;code&gt;frontend&lt;/code&gt; subfolder.&lt;br&gt;
First, in the &lt;code&gt;scss&lt;/code&gt; subfolder, create a file called &lt;code&gt;app.scss&lt;/code&gt; and include the following:&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;This will serve as the main file for the &lt;code&gt;styles&lt;/code&gt;. Webpack does its magic on it and converts it to a proper css file called &lt;code&gt;app.css&lt;/code&gt; which you need to include in your &lt;code&gt;base.html&lt;/code&gt; Django template.&lt;/p&gt;

&lt;p&gt;Next, in the &lt;code&gt;js&lt;/code&gt; subfolder, create a file called &lt;code&gt;app.js&lt;/code&gt; and include the following as the first line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import '../scss/app.scss';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This file serves as the entry point for Webpack. If you see the &lt;code&gt;entry&lt;/code&gt; in the &lt;code&gt;webpack.config.js&lt;/code&gt; file you can see that it points to this file. Webpack reads this file and sees that it should process a &lt;code&gt;.scss&lt;/code&gt; file and does its magic based on what you've configured in the config file.&lt;/p&gt;

&lt;p&gt;Finally, don't leave the &lt;code&gt;fonts&lt;/code&gt; and &lt;code&gt;images&lt;/code&gt; folder empty. My Webpack configs are not optimized to handle empty folders.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Delete your existing static folder
&lt;/h3&gt;

&lt;p&gt;Make sure you've moved whatever file you want to &lt;code&gt;frontend&lt;/code&gt;. Then remove the &lt;code&gt;static&lt;/code&gt; folder as it will be generated by Webpack upon build. As a bonus add this folder (&lt;code&gt;static&lt;/code&gt;) to your &lt;code&gt;.gitignore&lt;/code&gt; file.&lt;/p&gt;

&lt;h3&gt;
  
  
  10. Add PostCSS config file
&lt;/h3&gt;

&lt;p&gt;As mentioned above, TailwindCSS needs PostCSS. You'll need to add a file called &lt;code&gt;postcss.config.js&lt;/code&gt; with the following content to the root of your project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  11. Add TailwindCSS config file
&lt;/h3&gt;

&lt;p&gt;You can configure TailwindCSS the way you want it. However, to do this you need to create a file called &lt;code&gt;tailwind.config.js&lt;/code&gt; in the root folder of your project and include the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// tailwind.config.js
module.exports = {
  purge: [],
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {},
  },
  variants: {
    extend: {},
  },
  plugins: [],
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can read TailwindCSS documentation for more on this.&lt;/p&gt;

&lt;p&gt;==Still Awake?!==&lt;/p&gt;

&lt;p&gt;Now double check everything and if you use docker,first build the container using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker-compose -f local.yml build node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then bring up the &lt;code&gt;node&lt;/code&gt; container:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker-compose -f local.yml up node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If everything is worked as planned, you should see the &lt;code&gt;static&lt;/code&gt; folder generated for you include all the processed files from in your &lt;code&gt;frontend&lt;/code&gt; folder. Now make sure you are using &lt;code&gt;app.css&lt;/code&gt; and &lt;code&gt;app.js&lt;/code&gt; in your &lt;code&gt;base.html&lt;/code&gt; template file.&lt;/p&gt;

&lt;p&gt;This article is originally posted on my &lt;a href="https://www.boringbackend.dev"&gt;Boring Backend Newsletter&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you have any comments, or need help please do reach out to me on &lt;a href="http://twitter.com/hossein761"&gt;Twitter&lt;/a&gt;. And if this post helped you please don't forget to share it.&lt;/p&gt;

</description>
      <category>django</category>
      <category>tailwindcss</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Free up disk space by running these docker commands</title>
      <dc:creator>Hossein Kazemi</dc:creator>
      <pubDate>Sat, 13 Feb 2021 18:59:28 +0000</pubDate>
      <link>https://forem.com/hossein761/free-up-disk-space-by-running-these-docker-commands-2okm</link>
      <guid>https://forem.com/hossein761/free-up-disk-space-by-running-these-docker-commands-2okm</guid>
      <description>&lt;p&gt;If you are using Docker, every now and then your disk gets filled up with dangling docker images and volumes. Simple run the following commands to get rid of them and open up disk space on your machine:&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="c"&gt;# remove dangling images&lt;/span&gt;
docker rmi &lt;span class="nt"&gt;-f&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;docker images &lt;span class="nt"&gt;-f&lt;/span&gt; &lt;span class="nv"&gt;dangling&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;true&lt;/span&gt; &lt;span class="nt"&gt;-q&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;

&lt;span class="c"&gt;# remove dangling volumes&lt;/span&gt;
docker volume &lt;span class="nb"&gt;rm&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;docker volume &lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-qf&lt;/span&gt; &lt;span class="nv"&gt;dangling&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I am starting a newsletter focused on teaching hands-one backend and infrastructure through building micro-projects.&lt;br&gt;
Follow me on Twitter for the announcement: &lt;a href="https://twitter.com/hossein761"&gt;hossein761&lt;/a&gt;&lt;/p&gt;

</description>
      <category>docker</category>
      <category>devops</category>
      <category>advanced</category>
      <category>tips</category>
    </item>
  </channel>
</rss>
