<?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: m.bebars</title>
    <description>The latest articles on DEV Community by m.bebars (@mahmoud_bebars).</description>
    <link>https://dev.to/mahmoud_bebars</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%2F595281%2F76f645d9-2158-42a3-a30a-6f1a62480fe2.jpeg</url>
      <title>DEV Community: m.bebars</title>
      <link>https://dev.to/mahmoud_bebars</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mahmoud_bebars"/>
    <language>en</language>
    <item>
      <title>The UNI Auth System</title>
      <dc:creator>m.bebars</dc:creator>
      <pubDate>Sun, 26 Dec 2021 20:30:02 +0000</pubDate>
      <link>https://dev.to/mahmoud_bebars/the-uni-auth-system-39kb</link>
      <guid>https://dev.to/mahmoud_bebars/the-uni-auth-system-39kb</guid>
      <description>&lt;p&gt;Merry Christmas every one&lt;br&gt;
before I stop working for two months I wanted to do one more thing for the beginners developers in node and react&lt;br&gt;
it's a gift you can check it now or after Christmas&lt;/p&gt;

&lt;p&gt;a simple auth system made with node, express, react and some cool styling with tailwind&lt;/p&gt;

&lt;p&gt;you can make it your start for creating your next project&lt;/p&gt;

&lt;p&gt;I hope it helps you create something cool or make you improve your skills&lt;/p&gt;

&lt;p&gt;and tell me if there is something more I can add to the project to make it better&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mahmoud-bebars/Uni-Auth-Model"&gt;check the project from here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>node</category>
      <category>react</category>
    </item>
    <item>
      <title>simple nodeJs Api with mysql &amp; docker</title>
      <dc:creator>m.bebars</dc:creator>
      <pubDate>Fri, 10 Dec 2021 12:38:18 +0000</pubDate>
      <link>https://dev.to/mahmoud_bebars/simple-nodejs-api-with-mysql-docker-276h</link>
      <guid>https://dev.to/mahmoud_bebars/simple-nodejs-api-with-mysql-docker-276h</guid>
      <description>&lt;p&gt;As I struggled alot in learning how to make a simple nodejs api with mysql&lt;/p&gt;

&lt;p&gt;&amp;amp; tired of using xxamp in initing the db I made a small project I hope it will be useful for lots of people learning how to create an api for the first time &lt;/p&gt;

&lt;p&gt;using &lt;code&gt;nodejs&lt;/code&gt; &amp;amp; &lt;code&gt;mysql&lt;/code&gt; to create a simple GET Api&lt;/p&gt;

&lt;p&gt;you can try it by cloning the &lt;a href="https://github.com/mahmoud-bebars/nodejs-mysql-api-sample"&gt;my repo&lt;/a&gt; and follow the instructions in the readme file &lt;/p&gt;

&lt;p&gt;but for me the most important thing in this project is using &lt;code&gt;docker&lt;/code&gt; to create a simple server for testing purposes with a few lines of code &lt;/p&gt;

&lt;p&gt;you will also find it in &lt;a href="https://github.com/mahmoud-bebars/nodejs-mysql-api-sample"&gt;my repo&lt;/a&gt; under name of &lt;code&gt;docker-compose.yml&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;you can follow the instructions to use it.&lt;/p&gt;

&lt;p&gt;you can use it with all of your projects with no time by installing docker from &lt;a href="https://www.docker.com/products/docker-desktop"&gt;here&lt;/a&gt;&lt;br&gt;
and follow the installing instructions in the &lt;code&gt;Docker Docs&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;after installing create new file in your machine root call it &lt;code&gt;docker-compose.yml&lt;/code&gt;, past this code in it&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# We're using version 3.7 of the Docker Compose file format
version: "3.7"

# Define services/containers
services:
  # MySQL container
  mysql:
    # Use mysql:8.0.19 image
    image: mysql:latest
    # Connect to "my-network" network, as defined below
    ports:
      - "3306:3306"
    networks:
      - my-network
    # Pass a list of environment variables to the container
    environment:
      MYSQL_ROOT_PASSWORD: my-secret-pw

  # phpMyAdmin container
  phpmyadmin:
    # Use phpmyadmin/phpmyadmin:5.0.2 image
    image: phpmyadmin:latest
    # Connect to "my-network" network, as defined below
    networks:
      - my-network
    # Map port 8080 on the host to port 80 inside the container
    # Syntax is: "HOST_PORT:CONTAINER_PORT"
    ports:
      - "8080:80"
    # Pass a list of environment variables to the container
    environment:
      PMA_HOST: mysql
    # Wait for "mysql" container to start first
    depends_on:
      - mysql

# Define networks
networks:
  my-network:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;init this command in the same &lt;code&gt;docker.cmpose&lt;/code&gt; file location from 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;$  docker compose
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;it will simply creates a mysql db server managed by PHPmyadmin and you have the full control to edit the file or to make the db that suits your next project&lt;br&gt;
as xxamp visit &lt;code&gt;localhost:8080&lt;/code&gt; and enter username &lt;code&gt;root&lt;/code&gt; with password &lt;code&gt;my-secret-pw&lt;/code&gt; (you can change it later in the file) and congratulations you have a easy, stable db for development purposes &lt;/p&gt;

&lt;p&gt;this process is for the first time only after that you can init it from &lt;code&gt;docker Dashboard&lt;/code&gt; &amp;amp; you will find it in the &lt;code&gt;Containers / Apps&lt;/code&gt; section&lt;/p&gt;

&lt;p&gt;click the start button and it will start the container with the same data bases you left it with...&lt;/p&gt;

&lt;p&gt;I hope this post help the beginners to start their journey easy&lt;/p&gt;

&lt;p&gt;the project &lt;a href="https://github.com/mahmoud-bebars/nodejs-mysql-api-sample"&gt;repo link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>api</category>
      <category>mysql</category>
      <category>docker</category>
    </item>
    <item>
      <title>Universal Auth nodejs auth system with mysql</title>
      <dc:creator>m.bebars</dc:creator>
      <pubDate>Sun, 21 Nov 2021 12:09:16 +0000</pubDate>
      <link>https://dev.to/mahmoud_bebars/universal-auth-nodejs-auth-system-with-mysql-1pdf</link>
      <guid>https://dev.to/mahmoud_bebars/universal-auth-nodejs-auth-system-with-mysql-1pdf</guid>
      <description>&lt;p&gt;Since i struggled finding an setup for Authorization uses the Nodejs with Mysql.&lt;/p&gt;

&lt;p&gt;I thought It might be a god idea to make my own setup which seemed to be a good start for any project you might start and it will save some time for those who like to work with Mysql rather than mongodb so I wish this help some people to start fresh in there projects.&lt;/p&gt;

&lt;p&gt;Seems that my frontend not enough for that so if you like to make changes in it in my github repo you are welcomed to help other people with your changes.&lt;/p&gt;

&lt;p&gt;Did I forget to mention that I used react-bootstrap to handle the UI,&lt;br&gt;
I also planning to change it to tailwind for efficient use and more easy starter for anyone.&lt;/p&gt;

&lt;p&gt;You can check the project from here : &lt;a href="https://github.com/mahmoud-bebars/UA-MERN"&gt;https://github.com/mahmoud-bebars/UA-MERN&lt;/a&gt;&lt;br&gt;
&amp;amp; sorry for not having a live demo &lt;/p&gt;

</description>
      <category>node</category>
      <category>mysql</category>
      <category>react</category>
      <category>bootstrap</category>
    </item>
  </channel>
</rss>
