<?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: Emdadul Islam</title>
    <description>The latest articles on Forem by Emdadul Islam (@mdadul).</description>
    <link>https://forem.com/mdadul</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%2F992540%2F3a13e1f3-a590-443c-8f59-e2f62d37e377.jpeg</url>
      <title>Forem: Emdadul Islam</title>
      <link>https://forem.com/mdadul</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mdadul"/>
    <language>en</language>
    <item>
      <title>What is Science, Computer Science, and Engineering?</title>
      <dc:creator>Emdadul Islam</dc:creator>
      <pubDate>Wed, 22 May 2024 05:38:22 +0000</pubDate>
      <link>https://forem.com/mdadul/what-is-science-computer-science-and-engineering-9k2</link>
      <guid>https://forem.com/mdadul/what-is-science-computer-science-and-engineering-9k2</guid>
      <description>&lt;p&gt;There's such a great conflict that people sometimes say that computer science is not even a science. Is that true? Then what's actually the difference between science and computer science?&lt;/p&gt;

&lt;p&gt;Also, what actually is engineering?&lt;/p&gt;

&lt;p&gt;Read more here: &lt;a href="https://www.queryhub.info/thread/what-is-science-computer-science-and-engineering-63"&gt;https://www.queryhub.info/thread/what-is-science-computer-science-and-engineering-63&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Title: A Beginner's Guide to Command-Line File and Directory Manipulation</title>
      <dc:creator>Emdadul Islam</dc:creator>
      <pubDate>Sun, 03 Mar 2024 04:10:43 +0000</pubDate>
      <link>https://forem.com/mdadul/title-a-beginners-guide-to-command-line-file-and-directory-manipulation-51of</link>
      <guid>https://forem.com/mdadul/title-a-beginners-guide-to-command-line-file-and-directory-manipulation-51of</guid>
      <description>&lt;p&gt;In the realm of command-line interfaces, understanding basic commands for file and directory manipulation is a fundamental skill. Whether you're navigating through your file system or creating, modifying, and deleting files and directories, these commands empower users to efficiently manage their digital workspace. In this guide, we'll explore essential command-line commands and create a cheat sheet for quick reference.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Navigation Commands:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;pwd (Print Working Directory):&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Displays the full path of the current working directory.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;pwd&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;ls (List):&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Lists the contents of the current directory.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

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

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;cd (Change Directory):&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Change into an existing directory.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;cd &lt;/span&gt;directory-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;cd .. (Move Backward):&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Move back one directory level (to the parent directory).
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;cd&lt;/span&gt; ..
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;cd directory/sub-directory:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Change forward through multiple directories.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;cd &lt;/span&gt;directory/sub-directory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;cd ../.. (Move Backward Multiple):&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Move backward through multiple directories.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;cd&lt;/span&gt; ../..
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;File and Directory Manipulation:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;mkdir (Make Directory):&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Create a new directory.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;mkdir &lt;/span&gt;directory-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;touch:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Create a new file.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;touch &lt;/span&gt;file-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;echo "text" &amp;gt; file:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Overwrite a file with specified text.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"text"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; file
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;echo "text" &amp;gt;&amp;gt; file:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Append text to the end of a file.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"text"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; file
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;cat file-a &amp;gt; file-b:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Overwrite content of file-b with content of file-a.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat &lt;/span&gt;file-a &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; file-b
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;cat file-a &amp;gt;&amp;gt; file-b:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Append content of file-a to content of file-b.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat &lt;/span&gt;file-a &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; file-b
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;mv source-file target-file:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Move/rename source-file to target-file.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mv &lt;/span&gt;source-file target-file
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;mv source-dir target-dir:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Move/rename source-directory to target-directory.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mv &lt;/span&gt;source-dir target-dir
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;rm file:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delete a file.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;rm &lt;/span&gt;file
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;rm -r directory:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delete a non-empty directory.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;rm&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; directory
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;rmdir directory:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delete an empty directory.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;rmdir &lt;/span&gt;directory
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;cp file-a &amp;gt; file-b:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Copy content of file-a into file-b (overwrite).
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp &lt;/span&gt;file-a &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; file-b
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;cp -r dir-a dir-b:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Copy content of dir-a into dir-b (overwrite).
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; dir-a dir-b
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Additional Commands:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;clear:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clear the command line.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;clear
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Conclusion:&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Mastering these basic command-line operations provides a solid foundation for navigating and managing files and directories in a terminal environment. Always exercise caution, double-check your commands, and remember that certain actions, such as deletion, can be irreversible. With this cheat sheet, you're well on your way to becoming proficient in command-line file and directory manipulation. Happy coding!&lt;/p&gt;

</description>
      <category>linux</category>
      <category>command</category>
      <category>cmd</category>
    </item>
    <item>
      <title>Mongoose Cheat Sheet</title>
      <dc:creator>Emdadul Islam</dc:creator>
      <pubDate>Sat, 01 Apr 2023 07:21:39 +0000</pubDate>
      <link>https://forem.com/mdadul/mongoose-cheat-sheet-8l1</link>
      <guid>https://forem.com/mdadul/mongoose-cheat-sheet-8l1</guid>
      <description>&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%2F04v37ohu24rn7kwf0dxj.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%2F04v37ohu24rn7kwf0dxj.png" alt="mongoose" width="771" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're working with Mongoose, the popular object data modelling (ODM) library for MongoDB in Node.js, having a quick reference guide or "cheat sheet" can be incredibly helpful. In this blog post, we provide a concise summary of some of the most commonly used Mongoose methods and syntax, organized by category, to help you work more efficiently and effectively with this powerful ODM. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schema definition&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 { Schema } = require('mongoose');

const userSchema = new Schema({
  name: String,
  email: { type: String, unique: true },
  age: Number,
  isAdmin: { type: Boolean, default: false },
  createdAt: { type: Date, default: Date.now }
});

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Model definition&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 mongoose = require('mongoose');
const userSchema = require('./userSchema');

const User = mongoose.model('User', userSchema);

Creating a document
const user = new User({
  name: 'John Doe',
  email: 'johndoe@example.com',
  age: 30
});

user.save();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Finding documents&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;// Find all documents
const users = await User.find();

// Find documents that match a query
const admins = await User.find({ isAdmin: true });

// Find a single document by ID
const user = await User.findById(userId);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Updating documents&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;// Update a single document by ID
await User.findByIdAndUpdate(userId, { name: 'Jane Doe' });

// Update multiple documents that match a query
await User.updateMany({ isAdmin: true }, { isAdmin: false });

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Deleting documents&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;// Delete a single document by ID
await User.findByIdAndDelete(userId);

// Delete multiple documents that match a query
await User.deleteMany({ isAdmin: false });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Validation&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 userSchema = new Schema({
  name: { type: String, required: true },
  email: { type: String, required: true, unique: true },
  age: { type: Number, min: 18 },
  isAdmin: { type: Boolean, default: false },
  createdAt: { type: Date, default: Date.now }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Mongoose, you can define relationships between models using references or subdocuments.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Using references:&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
To define a relationship between two models using references, you can use the ref property in a field definition. The ref property specifies the name of the target model. Here's an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const userSchema = new mongoose.Schema({
  name: String,
  posts: [{
    type: mongoose.Schema.Types.ObjectId,
    ref: 'Post'
  }]
});
&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;const postSchema = new mongoose.Schema({
  title: String,
  content: String,
  author: {
    type: mongoose.Schema.Types.ObjectId,
    ref: 'User'
  }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, we have two models: &lt;code&gt;User&lt;/code&gt; and &lt;code&gt;Post&lt;/code&gt;. The User model has a field called posts, which is an array of &lt;code&gt;ObjectId&lt;/code&gt; values that reference &lt;code&gt;Post&lt;/code&gt;documents. The Post model has a field called author, which is an &lt;code&gt;ObjectId&lt;/code&gt;value that references a User document.&lt;/p&gt;

&lt;p&gt;To populate the posts field of a User document with the corresponding Post documents, you can use the populate() function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const user = await User.findById(userId).populate('posts');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will retrieve the User document with the specified _id value and then retrieve the Post subdocument with the specified postId value.&lt;/p&gt;

</description>
      <category>mongoose</category>
      <category>mongodb</category>
      <category>database</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Push local repository to another user remote repository</title>
      <dc:creator>Emdadul Islam</dc:creator>
      <pubDate>Sat, 24 Dec 2022 16:11:40 +0000</pubDate>
      <link>https://forem.com/mdadul/push-local-repository-to-another-user-remote-repository-h4h</link>
      <guid>https://forem.com/mdadul/push-local-repository-to-another-user-remote-repository-h4h</guid>
      <description>&lt;p&gt;To push changes from your local repository to another user's repository, you will need to have push access to that repository. If you do not have push access, you will need to ask the owner of the repository to grant you access.&lt;/p&gt;

&lt;p&gt;If you have push access to the repository, you can follow these steps:&lt;/p&gt;

&lt;p&gt;Clone the repository to your local machine using git clone and the repository's URL.&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/user/repo.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change into the repository's directory.&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;Make the necessary changes and commit them to your local repository.&lt;/p&gt;

&lt;p&gt;Add the remote repository as a remote for your local repository. Replace user and repo with the appropriate values.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote add upstream https://github.com/user/repo.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Push your changes to the remote repository.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push upstream
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Alternatively, you can also use a GUI client for Git such as GitHub Desktop or GitKraken to push changes to a remote repository.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>reactnative</category>
      <category>flutter</category>
      <category>mobile</category>
    </item>
    <item>
      <title>How to create a REACT app</title>
      <dc:creator>Emdadul Islam</dc:creator>
      <pubDate>Mon, 19 Dec 2022 00:10:10 +0000</pubDate>
      <link>https://forem.com/mdadul/how-to-create-a-react-app-5djf</link>
      <guid>https://forem.com/mdadul/how-to-create-a-react-app-5djf</guid>
      <description>&lt;p&gt;To create a React application, you will need to have &lt;em&gt;Node.js and npm (or yarn)&lt;/em&gt; installed on your computer. Once you have those tools, you can create a new React app by using the create-react-app command line utility. Here's an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx create-react-app my-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will create a new directory called my-app inside your current directory, and it will generate all the necessary files for a basic React app. Once the app is created, you can navigate to the app directory and start the development server by running the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd my-app
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Alternatively, if you're using yarn, you can use the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd my-app 
yarn start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will start the development server and open the React app in your default web browser. You can then start building your React app by editing the files in the &lt;strong&gt;src&lt;/strong&gt; directory.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
