<?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: Gray</title>
    <description>The latest articles on DEV Community by Gray (@grayxcode).</description>
    <link>https://dev.to/grayxcode</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%2F875924%2F0157923c-e2e3-418a-aeb6-9af9e03918ef.png</url>
      <title>DEV Community: Gray</title>
      <link>https://dev.to/grayxcode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/grayxcode"/>
    <language>en</language>
    <item>
      <title>Building Balgs Store</title>
      <dc:creator>Gray</dc:creator>
      <pubDate>Fri, 13 Mar 2026 17:10:06 +0000</pubDate>
      <link>https://dev.to/grayxcode/building-balgs-store-2ndg</link>
      <guid>https://dev.to/grayxcode/building-balgs-store-2ndg</guid>
      <description>&lt;p&gt;Earlier this year, I decided to build up an idea I always had in mind, which is an online Iphone ecommerce store, not to disrupt the market but to facilitate business for already existing vendors.&lt;/p&gt;

&lt;p&gt;I decided to learn Spring boot and build the entire backend system with it, and from the look of things at this moment &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%2Fvyb4p40elxt4yxh8nd84.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%2Fvyb4p40elxt4yxh8nd84.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am able to pull it off, setting everything up, starting from swagger down to endpoints implementations.&lt;/p&gt;

&lt;p&gt;For the frontend, I basically vibe coded it using Claude AI and I am so happy I did.&lt;/p&gt;

&lt;p&gt;I will be releasing the github repos by April 10th 2026, I would be marketing the product for traction&lt;/p&gt;

</description>
      <category>webdev</category>
    </item>
    <item>
      <title>Getting to know about Spring boot</title>
      <dc:creator>Gray</dc:creator>
      <pubDate>Tue, 24 Feb 2026 08:12:55 +0000</pubDate>
      <link>https://dev.to/grayxcode/getting-to-know-about-spring-boot-1ncn</link>
      <guid>https://dev.to/grayxcode/getting-to-know-about-spring-boot-1ncn</guid>
      <description>&lt;p&gt;Early this year, I took up the challenge to learn Java and then pivot to building with Spring boot, which is the most popular framework for Java.&lt;/p&gt;

&lt;p&gt;The learning curve was not that steep, as I correlated every concept with that of NestJs, which quite intertwine in term of working mechanics.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://udemy-certificate.s3.amazonaws.com/image/UC-866d3f36-4892-4a3f-8bd8-e1015a786f4f.jpg" rel="noopener noreferrer"&gt;Udemy Java Certification&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By the end of the course, I set out to build balgs, which is an online iphone ecommerce store. Actually I built it already using NestJs, but rebuilding it using Spring boot was so much faster and I was more confident about the system I built.&lt;/p&gt;

&lt;p&gt;I am looking to building more project with spring boot, particularly geared at Fintech.&lt;/p&gt;

</description>
      <category>springboot</category>
      <category>webdev</category>
      <category>programming</category>
      <category>java</category>
    </item>
    <item>
      <title>Building a CRUD application with React, TypeScript, TypeORM, MySQL, GraphQL, and NodeJs | Part A</title>
      <dc:creator>Gray</dc:creator>
      <pubDate>Wed, 06 Dec 2023 16:10:45 +0000</pubDate>
      <link>https://dev.to/grayxcode/building-a-crud-application-with-react-typescript-typeorm-mysql-graphql-and-nodejs-part-a-22hd</link>
      <guid>https://dev.to/grayxcode/building-a-crud-application-with-react-typescript-typeorm-mysql-graphql-and-nodejs-part-a-22hd</guid>
      <description>&lt;p&gt;In building a CRUD application we would need a client and a server, to cut to the chase I will be starting with the server.&lt;/p&gt;

&lt;p&gt;To start the project, run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ yarn init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press the Enter key for all prompts, ;), I will need to set up Typescript for my project&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ tsc --init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above to create Typescript configuration file, within the &lt;strong&gt;tsconfig.json&lt;/strong&gt;, uncomment the following&lt;br&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%2Fiz5vtmhecwdmlrszw2tk.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%2Fiz5vtmhecwdmlrszw2tk.png" alt=" " width="800" height="177"&gt;&lt;/a&gt;****&lt;br&gt;
&lt;strong&gt;Now&lt;/strong&gt;, it's time to install some packages and dependencies&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ yarn add nodemon cors express express-graphql graphql typeorm mysql2 typescript ts-node dotenv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then install the types of some of the dependencies&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ yarn add @types/node @types/express @types/cors 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We need to add some script to the package.json so that we can be able to start our application based on certain commands like &lt;strong&gt;yarn dev or npm run dev&lt;/strong&gt;.&lt;br&gt;
Add the following to your package.json&lt;br&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%2Fagpwfdvdeiyg0kqgalhl.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%2Fagpwfdvdeiyg0kqgalhl.png" alt=" " width="800" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Remember we need to create two folders namely, src and dist incase you can still go back to your tsconfig.json we uncommented out &lt;strong&gt;outDir: "dist/"&lt;/strong&gt; and &lt;strong&gt;rootDir: "src/"&lt;/strong&gt;, our written Typescript cannot be understood by the browser so it's transpiled into the output direction(dist folder) of which &lt;strong&gt;you should have created by now&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now, create an index.ts within the src folder as the entry point of our server.&lt;br&gt;
Type in the following code as a starter template&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%2Fk8per4nbeuzhnpdb7o8n.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%2Fk8per4nbeuzhnpdb7o8n.png" alt=" " width="800" height="586"&gt;&lt;/a&gt;&lt;br&gt;
Let's try running the server using the below-updated code&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%2Fm2rldv0w415ilijnbi64.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%2Fm2rldv0w415ilijnbi64.png" alt=" " width="800" height="437"&gt;&lt;/a&gt;&lt;br&gt;
Run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ yarn dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2F4b46c31wp9zvv8i1m7sb.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%2F4b46c31wp9zvv8i1m7sb.png" alt=" " width="440" height="201"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, we would be connecting our baby server to a database using typeORM, before we do that create a .env file outside your src folder and store your database and other details like this:&lt;br&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%2Fjadcufn3h7m58sr2ckms.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%2Fjadcufn3h7m58sr2ckms.png" alt=" " width="696" height="558"&gt;&lt;/a&gt;&lt;br&gt;
Make sure your detail for the above is correct, i.e. it matches your MySQL configuration. In case you don't know how to set up your MySQL, you could watch a YouTube video on that.&lt;br&gt;
Next, we set up our Db creating its folder within the src folder&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;|-src
   |--- Db
        |--- index.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Frwiotkol09z85rd2dz7t.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%2Frwiotkol09z85rd2dz7t.png" alt=" " width="800" height="523"&gt;&lt;/a&gt;&lt;br&gt;
Next, head over to the entry file and add the following code&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%2F4wsurdeelcomoi1494op.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%2F4wsurdeelcomoi1494op.png" alt=" " width="800" height="793"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If your database details are correct, you get the below result&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%2Fgforwhtxeuaf3yquze1a.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%2Fgforwhtxeuaf3yquze1a.png" alt=" " width="309" height="190"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hooray!! We connected to our Database using TypeORM&lt;/p&gt;

&lt;p&gt;Next, we start setting up Graphql for our API, I would implore you to strap your belt well.&lt;/p&gt;

&lt;p&gt;To know about Graphql and why it's being used head over to &lt;a href="https://graphql.org/" rel="noopener noreferrer"&gt;&lt;/a&gt; for more details, Now let's cut to the chase.&lt;/p&gt;

&lt;p&gt;To include Graphql, create the following folder structure within your src, &lt;/p&gt;

&lt;p&gt;Quick rant: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In Graphql, all requests to get data from our database are housed within the Queries folder, Query are more like the GET requests in building REST APIs. The Mutations are replicas of the PUT, PATCH, UPDATE, and DELETE requests in REST APIs, then within the TypeDefs we define attributes contained and can be queried from data stored within the database.&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;|-src
   | ...
   |-- Schema
         |--- Mutations
                 |---- User.ts
         |--- Queries
                 |---- User.ts
         |--- TypeDefs
                 |---- User.ts
         |--- index.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the following code within the entry file, but it has to be commented out as we don't yet have our schemas&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%2Fa7o8a5klvp2zvy0kps1t.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%2Fa7o8a5klvp2zvy0kps1t.png" alt=" " width="800" height="560"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One quite important thing is to create a table so that we can be able to query and mutate values within our database, first, we create an Entities folder with a User.ts file&lt;br&gt;
Now, enter the below code to create our User table schema:&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%2Fsw9rebj1e4e0bv5d1t0s.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%2Fsw9rebj1e4e0bv5d1t0s.png" alt=" " width="800" height="522"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now,  we need to create our User mutation, queries, and typedef first.&lt;br&gt;
Within the typeDef index file, add the following code&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%2Ffjzgk7ti8pb3bulkq9di.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%2Ffjzgk7ti8pb3bulkq9di.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, within the Mutation User file, add the following code&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%2Ffv0cf4v84ldqr4wndaao.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%2Ffv0cf4v84ldqr4wndaao.png" alt=" " width="800" height="727"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;args&lt;/strong&gt;: Specify the parameters that are required to create a user&lt;/p&gt;

&lt;p&gt;Next, we need to specify a query for getting all users from the database, Go to your Queries folder and place the following code into your index file:&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%2F156w81v04z29mq01klil.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%2F156w81v04z29mq01klil.png" alt=" " width="800" height="727"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The new GraphQLList() specifies that we would be receiving a list of types which was defined.&lt;/p&gt;

&lt;p&gt;Next, we create our Schema by entering the following code within the index.ts file which is inside the Schema folder&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%2F6iq0ihusop4en3lg23tn.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%2F6iq0ihusop4en3lg23tn.png" alt=" " width="800" height="609"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, the remaining thing is to uncomment the route we had to our graphql in our entry file&lt;/p&gt;

&lt;p&gt;Your final entry index.ts file should look like this&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%2Fk5xn1hs81qikrxvbbbc2.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%2Fk5xn1hs81qikrxvbbbc2.png" alt=" " width="800" height="1232"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, add our Created entity inside the array of entities within our database configuration like this:&lt;/p&gt;

&lt;p&gt;You should have your MYSQL running, go to your browser and enter the url:localhost:/graphql&lt;br&gt;
Do you see one cool thing about graphql, we only use one route which is /graphql.&lt;/p&gt;

&lt;p&gt;Now, you should see your studio, which looks like this:&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%2Fxg8d7yxke04cobrrh3td.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%2Fxg8d7yxke04cobrrh3td.png" alt=" " width="800" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Quick notice: &lt;em&gt;Your table is not yet created, to create your table set the synchronize value in your Db configuration to true, after it reflects on your Database set it back to false.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Your MySQL should look like this:&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%2F4eoq6w82vsf4sl067isw.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%2F4eoq6w82vsf4sl067isw.png" alt=" " width="800" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, let's add a user to our database from our graphql studio. In graphql we use mutation to effect changes or insertions, let's add a user to our database&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%2Fladxatp2sbs3i8w7m4x8.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%2Fladxatp2sbs3i8w7m4x8.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The change is effected, as you can see&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%2F0yv80eiuc9qr1qz04dsq.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%2F0yv80eiuc9qr1qz04dsq.png" alt=" " width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, let's try and query our data from the database&lt;br&gt;
Note: I added two extra records to our database, now let's query them&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%2Fjqcgukjenrj2gdu7ivhj.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%2Fjqcgukjenrj2gdu7ivhj.png" alt=" " width="800" height="348"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Also, enabling logging: true will render the SQL statement within your terminal&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%2Fy735p7dhc7gexpqp4wns.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%2Fy735p7dhc7gexpqp4wns.png" alt=" " width="800" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Exactly what we wanted. &lt;/p&gt;

&lt;p&gt;Congratulations you got to the end of part A.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Designing an Data flow diagram for an online shopping system</title>
      <dc:creator>Gray</dc:creator>
      <pubDate>Wed, 11 Oct 2023 13:59:53 +0000</pubDate>
      <link>https://dev.to/grayxcode/designing-an-data-flow-diagram-for-an-online-shopping-system-2c4h</link>
      <guid>https://dev.to/grayxcode/designing-an-data-flow-diagram-for-an-online-shopping-system-2c4h</guid>
      <description>&lt;p&gt;Currently in my 300 level and being bombarded with the above assignment from Mrs. Aminat Atanda on Software Engineering. My quest to derive the sensical diagram for the above really cracked up my sleeping brain, as that part of computer science which I have been yearning for awakens.&lt;br&gt;
Now, let's delve into the system, in designing this system we need to identify the entities, processes and data flows with data which are possibly flowing through this systems. In a shopping system, we have our Customer, Payment Gateway, probably a product but I don't want to complicate things for myself so I don't want to include it.&lt;br&gt;
Now I made effort to identify the processes which could occur within the system, viz: authentication of user, add product to cart, search for product, view all product, checkout e.t.c.&lt;br&gt;
Next I identify, What data store will I need to store some of my data like, customer data(authenticated users), ordered product, products in cart.&lt;br&gt;
When I mapped out this important details, I resolve to draw them out and connecting them using draw.io&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>computerscience</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
