<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nelson Chinedu on Medium]]></title>
        <description><![CDATA[Stories by Nelson Chinedu on Medium]]></description>
        <link>https://medium.com/@egwuchinedu69?source=rss-f9ff7cfe3a2a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ZwYtEn3slwyUI3Zi6nbdow.jpeg</url>
            <title>Stories by Nelson Chinedu on Medium</title>
            <link>https://medium.com/@egwuchinedu69?source=rss-f9ff7cfe3a2a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 22:58:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@egwuchinedu69/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to build a responsive web app with Material-UI]]></title>
            <link>https://medium.com/@egwuchinedu69/how-to-build-a-responsive-web-app-with-material-ui-fd6b9f0cdce6?source=rss-f9ff7cfe3a2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd6b9f0cdce6</guid>
            <category><![CDATA[styled-components]]></category>
            <category><![CDATA[responsive-web-design]]></category>
            <category><![CDATA[material-ui]]></category>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Nelson Chinedu]]></dc:creator>
            <pubDate>Thu, 02 Feb 2023 12:49:47 GMT</pubDate>
            <atom:updated>2023-02-02T12:49:47.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NkjshhMXWre1nAqMRCe63w.jpeg" /><figcaption>Image from unsplash</figcaption></figure><p>In this article, we will be learning how to build a responsive web app using Material-UI on top of ReactJs.</p><p>N:B Will be referring to Material-UI as MUI</p><p>So what is MUI you asked, MUI is an open-source React component library that implements Google’s Material Design which includes a collection of prebuilt components.</p><p>As a Frontend Engineer, you will agree with me that aside from building an interactive web app with logic, there are other areas as well to be worked on in which Responsive web design is part.</p><figure><img alt="working with lego block" src="https://cdn-images-1.medium.com/max/1024/1*VJQ8GVyWqvoe-eeYZ0ngnA.jpeg" /><figcaption>image from unsplash</figcaption></figure><p>Responsive web design allows your content to flow freely which can either be text, videos, images, etc. across all screen resolutions and sizes in making them look great on devices.</p><p>Before now building responsive web design can be achieved with media queries in CSS but in this article we will see how to achieve the same using MUI.</p><p>So I will be using CRA (create react app) in creating our application. So open your terminal and key in the below command.</p><pre>npx create-react-app mui-responsive-web-app</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdIZi9q5p_vSEMwN9OzVsw.png" /></figure><p>If created successfully you get to see the “Happy hacking!” message on your terminal, next is to cd into the directory and install MUI with the below command either using npm or yarn</p><pre>npm install @mui/material @mui/styled-engine-sc styled-components</pre><p>MUI uses breakpoints to determine specific layout requirements which adjust to suit the screen size and orientation using keys like xs sm md lg xl which the values can still be customized.</p><p>In building a responsive web app in CSS, media queries are been used but in MUI media queries are exposed out of the box using the theme.breakpoints properties which includes:</p><p><strong>theme.breakpoints.up(key):</strong> this query matches the screen width greater than the screen size given by the breakpoint key i.e styles will be applied to value after max-width upwards.</p><p><strong>theme.breakpoints.down(key):</strong> this query matches the screen width less than the screen size given by the breakpoint key i.e styles will be applied to value before min-width downwards.</p><p><strong>theme.breakpoints.only(key): </strong>this query matches the screen width starting from the screen size given by the breakpoints key and stopping at the screen size given by the next breakpoints key i.e styles will be applied to values within the min-width and max-width.</p><p><strong>theme.breakpoints.not(key): </strong>this query matches the screen width stopping at the screen size giving by the breakpoint key(exclusive) and starting at the screen size giving by the next breakpoint key(inclusive) i.e styles will not be applied to values within the min-width and max-width</p><p><strong>theme.breakpoints.between(start, end): </strong>this query matches the screen width greater than the screen size given by the breakpoint key in the first argument (inclusive) and less than the screen size given by the breakpoint key in the second argument (exclusive) i.e styles are applied to values within the first key and second key.</p><p>So now that we understood the MUI breakpoints let’s see how we can change the app background and text font size inside the app.js file using the styled component approach.</p><pre>import Box from &quot;@mui/material/Box&quot;;<br>import Typography from &quot;@mui/material/Typography&quot;;<br>import { styled } from &quot;@mui/material/styles&quot;;<br><br>const Wrapper = styled(Box)(({ theme }) =&gt; ({<br>  background: &quot;#1976d2&quot;,<br>  height: &quot;100vh&quot;,<br>  [theme.breakpoints.down(&quot;md&quot;)]: {<br>    background: &quot;orange&quot;,<br>  },<br>  [theme.breakpoints.down(&quot;sm&quot;)]: {<br>    background: &quot;blue&quot;,<br>  },<br>  [theme.breakpoints.up(&quot;lg&quot;)]: {<br>    background: &quot;purple&quot;,<br>  },<br>}));<br><br>const Heading = styled(Typography)(({ theme }) =&gt; ({<br>  textAlign: &quot;center&quot;,<br>  color: &quot;white&quot;,<br>  fontWeight: 600,<br>  paddingTop: &quot;2em&quot;,<br>  [theme.breakpoints.down(&quot;md&quot;)]: {<br>    fontSize: &quot;1.5rem&quot;,<br>  },<br>}));<br><br>function App() {<br>  return (<br>    &lt;Wrapper&gt;<br>      &lt;Heading variant=&quot;h1&quot;&gt;This is an Heading tag&lt;/Heading&gt;<br>    &lt;/Wrapper&gt;<br>  );<br>}<br><br>export default App;</pre><p>Below is the end result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FsQhWA7WjLkwncahPI4RYQ.gif" /></figure><p><strong>Resources</strong></p><p><a href="https://mui.com/material-ui/customization/breakpoints/">https://mui.com/material-ui/customization/breakpoints/</a></p><p><a href="https://m2.material.io/design/layout/responsive-layout-grid.html#breakpoints">https://m2.material.io/design/layout/responsive-layout-grid.html#breakpoints</a></p><p><a href="https://mui.com/material-ui/guides/interoperability/#styled-components">https://mui.com/material-ui/guides/interoperability/#styled-components</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd6b9f0cdce6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding props in ReactJS]]></title>
            <link>https://medium.com/fbdevclagos/understanding-props-in-reactjs-ccbec7833457?source=rss-f9ff7cfe3a2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccbec7833457</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[reusable-component]]></category>
            <category><![CDATA[props]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Nelson Chinedu]]></dc:creator>
            <pubDate>Thu, 14 Jan 2021 18:18:47 GMT</pubDate>
            <atom:updated>2022-01-12T05:11:02.932Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*5w44WjOkyCrbBgvbb7Nk9w.jpeg" /><figcaption>image from google.com</figcaption></figure><p>ReactJs is an open-source, front end, JavaScript library for building user interfaces or UI components.</p><p>ReactJs makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.</p><p>**What then is Props you asked**</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*lzXYKa1wgADGccOc7DT9eQ.jpeg" /><figcaption>image from google.com</figcaption></figure><p>Props in ReactJs can be referred to as properties that are used to pass data (additional information) to a component and can be accessed globally. If you are coming from an HTML background think of props as attributes you give a tag.</p><p>Props in ReactJs can be passed down to component following a unidirectional flow from top-bottom or parent-child either in a class-based component or functional component.</p><p>In this article, we will be creating forms (Sign up/Sign in) where we also create a reusable input and button component using props to change the value dynamically from parent-child component.</p><p>So before we start writing out the codes, let’s first bootstrap our application using npm create-react-app &lt;project-folder&gt;or npx create-react-app &lt;project-folder&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*Bx5Dd1Jks9k_0YeF0Xi3gA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*6its5rRCOfPq5mnrTRX7zQ.png" /></figure><p>After bootstrapping the application, we need to cd (change directory) to where the project folder leaves (which in this case, the folder leaves on Desktop) and into the project folder (which in this case it’s notey)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*vjVq-eaW3ekQawtPgP36Bg.png" /></figure><p>if the bootstrapping goes out well, you should have the same as shown on the text editor below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2ycUSMkKYhycK6tUl50MQ.png" /></figure><p>Next up is to create a component folder inside the src to house the components we will be creating</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2N-ETXutJ6Megejpkum7rg.png" /></figure><p>Inside the components folder, we will create the files (components) we need such as <br>- Navbar component (to navigate between pages)<br>- input component (to accept text)<br>- button component (to trigger an action)<br>- signup component (to hold the signup form)<br>- sign in component (to hold the sign-in form)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWi7BUXUquzKaft6M5KmCg.png" /></figure><p>Next is to install a dependency called react-router-dom to help between navigating pages (As of time of writing this article v5 was installed)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*L3YRmkMicfj4dSR4z7pJfQ.png" /></figure><pre><br>// Copy this code into Navbar component</pre><pre>import React from ‘react’;<br>import { NavLink } from ‘react-router-dom’;</pre><pre>const Navbar = () =&gt; {<br> return (<br>   &lt;div className=”navbar”&gt;<br>     &lt;NavLink to=’/signin’&gt;<br>       Signin<br>     &lt;/NavLink&gt;<br>     &lt;NavLink to=’/signup’&gt;<br>       Signup<br>     &lt;/NavLink&gt;<br>   &lt;/div&gt;<br> )<br>};</pre><pre>export default Navbar;</pre><pre><em>// Copy this code into Input component</em></pre><pre><em>import</em> React <em>from</em> &#39;react&#39;;</pre><pre>const Input = (props) =&gt; {</pre><pre>const { inputType, inputPlaceholder } = props;</pre><pre><em>return</em> (</pre><pre>  &lt;input</pre><pre>    type = {inputType}</pre><pre>    placeholder = {inputPlaceholder}</pre><pre>  /&gt;</pre><pre> )</pre><pre>};</pre><pre><em>export</em> <em>default</em> Input;</pre><pre><em>// Copy this code into Button component</em></pre><pre><em>import</em> React <em>from</em> &#39;react&#39;;</pre><pre>const Button = (props) =&gt; {</pre><pre>const {buttonText, buttonType, handleClick} = props;</pre><pre><em>return</em> (</pre><pre>  &lt;button</pre><pre>    type={buttonType}</pre><pre>    onClick={handleClick}</pre><pre>  &gt;</pre><pre>    {buttonText}</pre><pre>  &lt;/button&gt;</pre><pre> )</pre><pre>};</pre><pre><em>export</em> <em>default</em> Button;</pre><pre><em>// Copy this code into Sign in component</em></pre><pre><em>import</em> React <em>from</em> &#39;react&#39;;</pre><pre><em>import</em> {Link} <em>from</em> &#39;react-router-dom&#39;;</pre><pre><em>import</em> Button <em>from</em> &#39;./Button&#39;;</pre><pre><em>import</em> Input <em>from</em> &#39;./Input&#39;;</pre><pre>const SigninForm = () =&gt; {</pre><pre>  const handleClick = (e) =&gt; {</pre><pre>    e.preventDefault();</pre><pre>    alert(&#39;you just Signed in&#39;);</pre><pre>  }</pre><pre><em>return</em> (</pre><pre>  &lt;form&gt;</pre><pre>    &lt;Input</pre><pre>      inputType=&quot;email&quot;</pre><pre>      inputPlaceholder=&quot;Enter Email Address&quot;</pre><pre>    /&gt;</pre><pre>    &lt;Input</pre><pre>      inputType=&quot;password&quot;</pre><pre>      inputPlaceholder=&quot;Enter Password&quot;</pre><pre>    /&gt;</pre><pre>    &lt;Button</pre><pre>      buttonType=&quot;submit&quot;</pre><pre>      buttonText=&quot;Sign in&quot;</pre><pre>      handleClick={handleClick}</pre><pre>    /&gt;</pre><pre>    &lt;p&gt;</pre><pre>       Dont have an account? &lt;Link to=&quot;/signup&quot;&gt;Signup&lt;/Link&gt;</pre><pre>    &lt;/p&gt;</pre><pre>  &lt;/form&gt;</pre><pre> )</pre><pre>};</pre><pre><em>export</em> <em>default</em> SigninForm;</pre><pre><em>// Copy this code into Signup component</em></pre><pre><em>import</em> React <em>from</em> &#39;react&#39;;</pre><pre><em>import</em> { Link } <em>from</em> &#39;react-router-dom&#39;;</pre><pre><em>import</em> Button <em>from</em> &#39;./Button&#39;;</pre><pre><em>import</em> Input <em>from</em> &#39;./Input&#39;;</pre><pre>const SignupForm = () =&gt; {</pre><pre>  const handleClick = (e) =&gt; {</pre><pre>    e.preventDefault()</pre><pre>    alert(&#39;you just signed up&#39;)</pre><pre>  }</pre><pre><em>return</em> (</pre><pre>  &lt;form&gt;</pre><pre>    &lt;Input</pre><pre>      inputType = &quot;text&quot;</pre><pre>      inputPlaceholder = &quot;Enter Firstname&quot;</pre><pre>    /&gt;</pre><pre>    &lt;Input</pre><pre>      inputType = &quot;text&quot;</pre><pre>      inputPlaceholder = &quot;Enter Lastname&quot;</pre><pre>    /&gt;</pre><pre>    &lt;Input</pre><pre>      inputType = &quot;email&quot;</pre><pre>      inputPlaceholder = &quot;Enter Email Address&quot;</pre><pre>    /&gt;</pre><pre>    &lt;Input</pre><pre>      inputType = &quot;password&quot;</pre><pre>      inputPlaceholder = &quot;Enter Password&quot;</pre><pre>    /&gt;</pre><pre>    &lt;Button</pre><pre>      buttonType=&quot;submit&quot;</pre><pre>      buttonText = &quot;Sign Up&quot;</pre><pre>      handleClick={handleClick}</pre><pre>    /&gt;</pre><pre>    &lt;p&gt;</pre><pre>       Already have an account? &lt;Link to=&#39;/signin&#39;&gt;Signin&lt;/Link&gt;</pre><pre>    &lt;/p&gt;</pre><pre>   &lt;/form&gt;</pre><pre>  )</pre><pre>};</pre><pre><em>export</em> <em>default</em> SignupForm;</pre><pre><em>// Copy this code into App.js component</em></pre><pre><em>import</em> React <em>from</em> &#39;react&#39;;</pre><pre><em>import</em> {BrowserRouter, Switch, Route} <em>from</em> &#39;react-router-dom&#39;;</pre><pre><em>import</em> Navbar <em>from</em> &#39;./components/Navbar&#39;;</pre><pre><em>import</em> SigninForm <em>from</em> &#39;./components/Signin&#39;;</pre><pre><em>import</em> SignupForm <em>from</em> &#39;./components/Signup&#39;;</pre><pre>const App = () =&gt; {</pre><pre><em>  return</em> (</pre><pre>    &lt;BrowserRouter&gt;</pre><pre>      &lt;Navbar /&gt;</pre><pre>      &lt;Switch&gt;</pre><pre>        &lt;Route path=&#39;/signin&#39;&gt;</pre><pre>          &lt;SigninForm /&gt;</pre><pre>        &lt;/Route&gt;</pre><pre>        &lt;Route path=&#39;/signup&#39;&gt;</pre><pre>          &lt;SignupForm /&gt;</pre><pre>        &lt;/Route&gt;</pre><pre>      &lt;/Switch&gt;</pre><pre>    &lt;/BrowserRouter&gt;</pre><pre>  );</pre><pre>}</pre><pre><em>export</em> <em>default</em> App;</pre><pre><em>/*Copy this code into index.css component*/</em></pre><pre>{</pre><pre>margin: 0px;</pre><pre>padding: 0px;</pre><pre>box-sizing: border-box;</pre><pre>}</pre><pre>.navbar{</pre><pre>color: #000;</pre><pre>box-shadow:0 0 4px 2px rgba(0, 0, 0, 0.2) ;</pre><pre>padding: 1.4em;</pre><pre>}</pre><pre>.navbar a {</pre><pre>padding:0px 1em ;</pre><pre>}</pre><pre>form{</pre><pre>width: 30%;</pre><pre>margin: 5em auto;</pre><pre>padding: 2em 2em;</pre><pre>box-shadow: 0 0 4px 2px rgba(38,153,251,.18);</pre><pre>}</pre><pre>input{</pre><pre>width: 100%;</pre><pre>margin: 1em 0;</pre><pre>padding: 1em;</pre><pre>}</pre><pre>button{</pre><pre>background-color: #56dac5d4;</pre><pre>width: 100%;</pre><pre>padding: 1em;</pre><pre>margin: 1em 0;</pre><pre>border: none;</pre><pre>cursor: pointer;</pre><pre>}</pre><p>If adding the codes to the necessary components then run npm startor yarn starton your terminal to start the server.</p><p>So with this piece, you can see how we created a reusable component which is then used on the sign-up/sign-in to change the data when the component renders.</p><p>N.B when creating a reusable component that will change its data dynamically via props, the prop name is meant to be the same on every component that needs it.</p><p>For example, let’s go back to the code written. the input component (which acts as the child component) expects some prop value like inputType and inputPlaceholder to be passed from the component which it is been used (in this case the component that it is been used on acts as the parent). The same applies to the button component which expects buttonType, buttonText, and handleClick to be passed from the parent component to the child component.</p><p>Reference</p><p><a href="https://reactjs.org/docs/components-and-props.html">https://reactjs.org/docs/components-and-props.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccbec7833457" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fbdevclagos/understanding-props-in-reactjs-ccbec7833457">Understanding props in ReactJS</a> was originally published in <a href="https://medium.com/fbdevclagos">Facebook Developer Circles Lagos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to send contact form data to an email address without server-side language]]></title>
            <link>https://medium.com/@egwuchinedu69/how-to-send-contact-form-data-to-an-email-address-without-server-side-language-adeec579c586?source=rss-f9ff7cfe3a2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/adeec579c586</guid>
            <category><![CDATA[forms]]></category>
            <category><![CDATA[contact-form]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[netlify]]></category>
            <dc:creator><![CDATA[Nelson Chinedu]]></dc:creator>
            <pubDate>Sun, 31 May 2020 20:58:28 GMT</pubDate>
            <atom:updated>2020-05-31T20:58:28.301Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="preview image" src="https://cdn-images-1.medium.com/max/626/1*pv9p5M4QpxrW7mz-enVFAg.jpeg" /><figcaption>image from freepik</figcaption></figure><p>Sending of form data to an email address requires a backend developer to make use of a server-side language which can be either PHP, NodeJS, e.t.c. by writing some logic codes to interact with the client-side (Front-end) to take some action by submitting the form data to a specified email address if all validations are meant (if there is any). But It’s okay if you don’t know any server-side language for now.</p><p>Form data is an essential part of a web application by getting in touch with your visitors or customers that sends a message across.</p><p>So in this article, we will be demonstrating this by creating a contact form using the below outlined.</p><ol><li>HTML5</li><li>CSS3</li><li>NETLIFY</li></ol><ul><li>HTML =&gt; according to <a href="https://en.wikipedia.org/w/index.php?cirrusUserTesting=control&amp;sort=relevance&amp;search=html&amp;title=Special:Search&amp;profile=advanced&amp;fulltext=1&amp;advancedSearch-current=%7B%7D&amp;ns0=1">Wikipedia</a>, Hypertext Markup Language is the standard markup language for documents designed to be displayed in a web browser.</li><li>CSS =&gt; according to <a href="https://en.wikipedia.org/w/index.php?cirrusUserTesting=control&amp;sort=relevance&amp;search=css&amp;title=Special:Search&amp;profile=advanced&amp;fulltext=1&amp;advancedSearch-current=%7B%7D&amp;ns0=1">Wikipedia</a>, is a style sheet language used for describing the presentation of a document written in a markup language like HTML.</li><li>NETLIFY =&gt; according to <a href="https://en.wikipedia.org/w/index.php?cirrusUserTesting=control&amp;sort=relevance&amp;search=Netlify&amp;title=Special:Search&amp;profile=advanced&amp;fulltext=1&amp;advancedSearch-current=%7B%7D&amp;ns0=1">Wikipedia</a>, is a cloud computing company that offers hosting and serverless backend services for web applications and static websites. So in essence we will be deploying/hosting our little project to Netlify for free.</li></ul><p>N:B JavaScript can be added into the mix for Client-side validation for browsers that don’t support HTML5.</p><p>Before continuing with the process, we need to create an account (signup), on <a href="https://app.netlify.com/signup">NETLIFY</a> by using any option provided either connecting the account with GitLab or Github by granting access to netlify, that is if you have one or by using just email. But in this case, I am using an email option to signup.</p><p>N:B We will be using sample codes to create our form from <a href="https://www.w3schools.com/howto/howto_css_contact_form.asp">w3schools</a> to save up time.</p><p><strong>TODO</strong></p><ul><li>Create a folder on your desktop to keep hold of the files needed.</li><li>Open any text editor of your choice to create/save the index.html and index.css in the folder created earlier.</li><li>Create an account on <a href="https://app.netlify.com/signup">NETLIFY</a>, to be signed in.</li></ul><p>Folder structure</p><p>- contact-form <br> |---- index.html <br> |---- index.css</p><pre>#open the index.html file, to add the below sample code in any text    #editor.</pre><pre><br>&lt;!DOCTYPE html&gt;<br>  &lt;html lang=&quot;en&quot;&gt;<br>    &lt;head&gt;<br>      &lt;meta charset=&quot;UTF-8&quot;&gt;<br>      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, <br>        initial-scale=1.0&quot;&gt;<br>      &lt;link rel=&quot;stylesheet&quot; href=&quot;./index.css&quot;&gt;<br>      &lt;title&gt;Sending contact form&lt;/title&gt;<br>    &lt;/head&gt;<br>    &lt;body&gt;<br>      &lt;div class=&quot;container&quot;&gt;<br>        &lt;h2&gt;Contact Us&lt;/h2&gt;<br>        &lt;form method=&quot;POST&quot; name=&quot;contact&quot; data-netlify=&quot;true&quot;&gt;<br>            <br>          &lt;label for=&quot;firstname&quot;&gt;First Name&lt;/label&gt;<br>          &lt;input type=&quot;text&quot; id=&quot;firstname&quot; name=&quot;Firstname&quot;<br>            placeholder=&quot;Your name..&quot; required&gt;</pre><pre>          &lt;label for=&quot;lastname&quot;&gt;Last Name&lt;/label&gt;<br>          &lt;input type=&quot;text&quot; id=&quot;lastname&quot; name=&quot;Lastname&quot; <br>            placeholder=&quot;Your last name..&quot; required&gt;</pre><pre>          &lt;label for=&quot;email&quot;&gt;Email&lt;/label&gt;<br>          &lt;input type=&quot;email&quot; id=&quot;email&quot; name=&quot;Email&quot;     <br>            placeholder=&quot;Your email address..&quot; required&gt;</pre><pre>          &lt;label for=&quot;message&quot;&gt;Message&lt;/label&gt; <br>          &lt;textarea id=&quot;message&quot; name=&quot;Subject&quot; <br>            placeholder=&quot;Write something..&quot; required&gt;&lt;/textarea&gt;</pre><pre>          &lt;button type=&quot;submit&quot;&gt; Submit &lt;/button&gt;</pre><pre>        &lt;/form&gt;</pre><pre>      &lt;/div&gt;</pre><pre>    &lt;/body&gt;</pre><pre>  &lt;/html&gt;</pre><pre>#open the index.css file, to add the below sample code in any text    #editor.</pre><pre>.container {</pre><pre>  width: 40%;</pre><pre>  margin: 30px auto;</pre><pre>}<br></pre><pre>h2 {</pre><pre>  text-align: center;</pre><pre>}</pre><pre>input, select, textarea {</pre><pre>  width: 100%;</pre><pre>  padding: 12px;</pre><pre>  border: 1px solid #ccc;</pre><pre>  border-radius: 4px;</pre><pre>  box-sizing: border-box;</pre><pre>  margin-top: 6px;</pre><pre>  margin-bottom: 16px;</pre><pre>}</pre><pre>textarea {</pre><pre>  height: 150px;</pre><pre>  resize: none;</pre><pre>}</pre><pre>button {</pre><pre>  background-color: #4CAF50;</pre><pre>  color: white;</pre><pre>  padding: 12px 20px;</pre><pre>  border: none;</pre><pre>  border-radius: 4px;</pre><pre>  cursor: pointer;</pre><pre>}<br></pre><pre>button:hover {</pre><pre>  background-color: #45a049;</pre><pre>}</pre><pre>.container {</pre><pre>  border-radius: 5px;</pre><pre>  background-color: #f2f2f2;</pre><pre>  padding: 20px;</pre><pre>}</pre><p>N:B Since we are making use of NETLIFY service for the sending of emails we need to add some attributes on the HTML form tag, which is method=&quot;POST” name=&quot;contact&quot; data-netlify=”true”</p><p>So next, is to drag the folder we created that holds the files to NETLIFY for deployment. and wait a bit for the site to be deployed. That’s if you are logged in to NETLIFY.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*RbvRXYKMPxpPNEjElxcE-g.gif" /></figure><p>Next up is to add some required config needed to receive notifications when the contact form is filled up.</p><p>So let’s head to the forms section tab and click on it, then click on settings and usage</p><figure><img alt="Form tab section" src="https://cdn-images-1.medium.com/max/1024/1*2BxAiyqyLrTs9V1NDI_jNA.jpeg" /></figure><p>Then next up is to click on the Add notification button and click on Email notification .</p><figure><img alt="image showing email notification area" src="https://cdn-images-1.medium.com/max/1024/1*DapuKb-oz7VifPDvHUBgbw.jpeg" /></figure><p>Clicking on the Email notification will pop up a modal asking for some details as seen in the image below.</p><ul><li>Event to listen for: As the name suggest, will listen for new form submission.</li><li>Email to notify: It will be the email to receive the message when the contact form is filled up and submitted.</li><li>Form: Here you select the form you want, with the name you added on the form tag.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8xzjWfB0-aUFUHi0MiZLYQ.jpeg" /></figure><p>Next up is to click on the deployed link provided for the project as seen/shown on the image below</p><figure><img alt="image showing deployed url link" src="https://cdn-images-1.medium.com/max/1024/1*QCz-1BLhjtqDJDkU-CuMlw.jpeg" /></figure><p>So let’s test things up</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*cZCEo1riioRCck0iTJbmIw.gif" /></figure><p>So looking at it all seems to work with the contact form details been sent to the email address specified. But we can still change things up by making an edit to the random site URL given to us to our own specified URL, By following the steps on the image below.</p><p>Click on settings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vpFlzyrkoee7RdX9FniHog.png" /></figure><p>Scroll down and click on Change site name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4EijwEXquztUeLuGDgVgRA.png" /></figure><p>Which will pop up a modal box, enter the new URL you want and click on save if the URL specified is available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*zvsYcy8e8miHNg-NCabGWw.png" /></figure><p>Now the URL has been from the random URL given to a more meaningful URL specified.</p><p>Thank you for your time If you read through up to this point, and please do share, like, and comment if found helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adeec579c586" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to update a local forked repository from the original repository]]></title>
            <link>https://medium.com/fbdevclagos/how-to-update-a-local-forked-repository-from-the-original-repository-1ed3ec29f0dc?source=rss-f9ff7cfe3a2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ed3ec29f0dc</guid>
            <category><![CDATA[pull-request]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[repositories]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Nelson Chinedu]]></dc:creator>
            <pubDate>Tue, 17 Mar 2020 15:59:07 GMT</pubDate>
            <atom:updated>2020-03-17T15:59:07.648Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*H2c13-R3QA3AUbxxgF4HDg.gif" /><figcaption>Source from Github</figcaption></figure><p>Reading this article means you have a basic understanding of git and github and have contributed to a project which is open-sourced for contribution by raising a PR (pull request) to the original repository which will get reviewed by the owner(s) of the repository.</p><p>If everything went fine with the changes you made either in the documentation, fixes you made on issues or code(s) you refactored did not break the project, then chances are that your PR (pull request) will be accepted and get merged. This is a wholesome goal!</p><p>Perhaps your contributions are not accepted by the owner(s) of the repository, then chances are that a comment will be given as to why it’s not accepted.</p><p>Your PR (pull request) got accepted and is being merged into the master branch of the original repository? Abso-coded-lute-ly Sweet! 😉.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fb5LTssxCLpvVe%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fdancing-happy-smiling-b5LTssxCLpvVe&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fb5LTssxCLpvVe%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/c784c417b9bf39649a52ad046a024081/href">https://medium.com/media/c784c417b9bf39649a52ad046a024081/href</a></iframe><p>Oh, wait! The changes you made could not be found on your forked repository?😧 Argh!</p><p>Typically, this could conflict when you try to raise a PR (pull request) on another change you worked, and this is mainly because your forked repository is not up to date with the original repository.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F1r6KkcEU0qyu4%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fdecember-cookies-sangria-1r6KkcEU0qyu4&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F1r6KkcEU0qyu4%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="235" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9f7d297dfa9ecbf4b8ce130ffd598fb/href">https://medium.com/media/c9f7d297dfa9ecbf4b8ce130ffd598fb/href</a></iframe><p>So let’s see how we can update the forked repository with steps outlined below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FhT6wgEtwoUt0no87gV%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Flets-kevin-hart-do-this-hT6wgEtwoUt0no87gV&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FhT6wgEtwoUt0no87gV%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="299" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe210fa964e0918686379d54ece3850e/href">https://medium.com/media/fe210fa964e0918686379d54ece3850e/href</a></iframe><p>NB: I will be using an open-source project I contributed to</p><ol><li>Go to the original repository you forked from on GitHub and copy the URL path by clicking on the button icon outlined on the image in red.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*FjRJRZJfr5dV6z4A_-f5-g.jpeg" /></figure><p>2. Open your terminal on your PC (either git bash or the integrated terminal on your editor) and change directory to where the repository you cloned locally is. Make sure you are on the master branch of the local repository. If you are not already, key in git checkout master and press enter . This is because we are updating the master branch (locally) from the master branch (remote).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*lPZO0zhQ0hc96pdEeB13Sw.jpeg" /></figure><p>3. Key in git remote add upstream [paste the path you copied] and press enter, which in this case on the terminal it will look like git remote add upstream <a href="https://github.com/ipinfo/node.git">https://github.com/ipinfo/node.git</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*suhfxK1--TcC23YFGU9HNA.jpeg" /></figure><p>4. Still on the terminal, key in git remote -v just to be sure it was added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*esWudvfE2w-ncDguDn2x2A.jpeg" /></figure><p>6. key in another command that will update the local repository with every change that has been merged to the master branch of the original repository (remote) git pull upstream master and press enter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*UStRGZ4sZmhGqqH0T9i1CA.jpeg" /></figure><p>Then after doing all the steps outlined above your local repository (master branch) should now be up to date with the original repository master branch (remote). So now, you can push to update your master branch of the forked repository on GitHub too with git push origin master and press enter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*jTXotvTLrqCx9V5rtnncbg.jpeg" /></figure><p>And voila! 🍷 That’s it! Your repository is now up to date with the original repository.</p><p>NB: For every change, you want to work on which you will raise a PR, always update your local repository first because new changes might have been added to the repository.</p><p>You need to update your local master branch by doing the step outlined in step 6. After which, you can then checkout to create a new branch you want to work on, by keying in git checkout -b [branch-name-here] on the terminal.</p><p>Kindly give a clap and share if this article helped you. Also, I’d very much love to reply to your comments too…. Thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ed3ec29f0dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fbdevclagos/how-to-update-a-local-forked-repository-from-the-original-repository-1ed3ec29f0dc">How to update a local forked repository from the original repository</a> was originally published in <a href="https://medium.com/fbdevclagos">Facebook Developer Circles Lagos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How asset files work locally vs on server]]></title>
            <link>https://medium.com/fbdevclagos/how-asset-files-work-locally-vs-on-server-3a99cd340f7e?source=rss-f9ff7cfe3a2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a99cd340f7e</guid>
            <category><![CDATA[assets]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-hosting]]></category>
            <dc:creator><![CDATA[Nelson Chinedu]]></dc:creator>
            <pubDate>Wed, 22 Jan 2020 06:31:06 GMT</pubDate>
            <atom:updated>2020-01-22T06:31:06.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Tx6bQNDAo3iPDThA-0n54w.gif" /></figure><p>A friend of mine ran into an issue of is working perfectly well on my system (locally) but is not working as expected when deployed to the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*mlgaR2vRJNtGPQlaSaUyHg.jpeg" /><figcaption>image from Google search</figcaption></figure><p>Yes as developer’s we’ve most likely been caught in this situation in one way or the other trying to do something and it might be a pain in the ass or sometimes leads to frustration probably when you are demoing your application that’s been deployed to the server and for some reason, the app is not working as supposed to be or some images are not showing up on the web page and same with video or any assets file.</p><p>Now the way things work locally is different from the way it will work on the server while referencing or accessing an assets file, locally <strong>case sensitivity</strong> doesn’t matter but when on the server <strong>it matters</strong>.</p><p>That is if we have an image named aeroplane.jpg in a folder named images now, in this case, the file can be referenced using the &lt;img&gt; tag as &lt;img src=&quot;images/aeroplane.jpg alt=&quot;An airplane flying”&gt; which can still be referenced as &lt;img src=&quot;Images/aeroplane.jpg alt=&quot;An airplane flying&quot;&gt; which will still display the image in the folder on a webpage locally without checking for case sensitivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LR0ND6KxvbwougLZ_ICyMw.png" /><figcaption>Screenshot of &lt;img&gt; using non-capitalized i</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70-vMELIb9X-KURKjjE83A.jpeg" /><figcaption>Screenshot when run locally using google chrome</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oiKXKkL6ZNcpmDugxgXJBw.png" /><figcaption>Screenshot of &lt;img&gt; using capitalized i</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70-vMELIb9X-KURKjjE83A.jpeg" /><figcaption>Screenshot when run also</figcaption></figure><p>N: B The difference between the two file reference above is the folder name one is not capitalized while the other is images and Images .</p><p>Now but what if we still have the folder name as images with a file named aeroplane.jpg and we mistakenly wrote &lt;img src=&quot;Images/aeroplane.jpg” alt=&quot;An airplane flying&quot;&gt; which is been deployed to the server it won’t display the image on the webpage because of <strong>case sensitivity</strong> except we use &lt;img src=&quot;images/aeroplane.jpg&quot; alt=&quot;An airplane flying&quot;&gt; .</p><p>In other to test on the server I will be using <a href="https://surge.sh/">surge</a> for deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oiKXKkL6ZNcpmDugxgXJBw.png" /><figcaption>Screenshot of &lt;img&gt; using capitalized i</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tvXT1vj_gcva0DRzjcQgVw.jpeg" /><figcaption>Screenshot when deployed to server showing broken image</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LR0ND6KxvbwougLZ_ICyMw.png" /><figcaption>Screenshot of &lt;img&gt; using non-capitalized i</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iHfHmnQS7Tmw1hnBhQc0_A.jpeg" /><figcaption>Screenshot when deployed to server showing image</figcaption></figure><p>So now you know about how things work locally and on the server.</p><p>So the mistake my friend made was while accessing a file, the folder name was not spelled correctly probably my friend didn’t notice the case sensitivity because the project was all working/loading all assets files locally and not when the project was deployed to the server, the asset files were not showing up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a99cd340f7e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fbdevclagos/how-asset-files-work-locally-vs-on-server-3a99cd340f7e">How asset files work locally vs on server</a> was originally published in <a href="https://medium.com/fbdevclagos">Facebook Developer Circles Lagos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a USSD application]]></title>
            <link>https://medium.com/fbdevclagos/how-to-build-a-ussd-application-fc4394173075?source=rss-f9ff7cfe3a2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc4394173075</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ussd]]></category>
            <dc:creator><![CDATA[Nelson Chinedu]]></dc:creator>
            <pubDate>Thu, 14 Nov 2019 11:33:03 GMT</pubDate>
            <atom:updated>2020-04-05T07:53:55.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*YTnyHquZgvrMsnNTAT7AWQ.jpeg" /><figcaption>Source: Beeline</figcaption></figure><h3>How to Build a USSD Application</h3><p><em>building a USSD application…</em></p><p>Just in case you are pondering what is USSD and probably thinking if you can develop yours you are on the right article in building that so let’s get started.</p><p>According to Wikipedia:</p><blockquote>Unstructured, Supplementary Service Data (USSD) sometimes referred to as “Quick Codes” or “Feature Codes” is a communications protocol used by GSM cellular telephones to communicate with the mobile network operator’s computers.</blockquote><p>It can be used for WAP browsing, prepaid callback service, mobile-money services, location-based content services, menu-based information services, and as part of configuring the phone on the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*ksPeXGCdz8ghHYq5BYjpDw.jpeg" /><figcaption>Someone typing</figcaption></figure><p>So in a nutshell when you buy airtime and what to recharge it on your mobile phone you need to enter some codes the same also when you are trying to make a bank transfer to another account you still need to enter a designated code in other to complete the transaction. So those shortcodes you enter are known as USSD.</p><p>So let’s see some of the requirement’s we need to achieve this:</p><ol><li>Basic understanding of PHP language</li><li>A text editor (Preferably Visual studio code)</li><li>Create an account on Africastalking</li><li>Create an account on Heroku</li><li>Download and install Git based on your OS</li></ol><p>Why do we need those requirements, PHP will be the language we will use to give our commands while Africastalking will help us to create a two-way USSD functionality across mobile providers in Africa, Heroku is a cloud platform that we will deploy our code to manage. For further readings about them, you can check the link below</p><p>First, create an account on <a href="https://account.africastalking.com/auth/register/">Africastalking</a> to signup then follow the steps given and you will be brought to your dashboard.</p><p>Next, create an account on <a href="https://signup.heroku.com/">Heroku</a> to signup then follow the steps given and you will be brought to your dashboard.</p><p>Also, download any text editor of your choice and open to it</p><pre>&lt;?php</pre><pre>// Reads the variables sent via POST</pre><pre>$sessionId   = $_POST[&quot;sessionId&quot;];  </pre><pre>$serviceCode = $_POST[&quot;serviceCode&quot;];  </pre><pre>$text = $_POST[&quot;text&quot;];</pre><pre>//This is the first menu screen</pre><pre>if ( $text == &quot;&quot; ) {</pre><pre>$response  = &quot;CON Hi welcome, I can help you with Event Reservation \n&quot;;</pre><pre>$response .= &quot;1. Enter 1 to continue&quot;;</pre><pre>}</pre><pre>// Menu for a user who selects &#39;1&#39; from the first menu</pre><pre>// Will be brought to this second menu screen</pre><pre>else if ($text == &quot;1&quot;) {</pre><pre>$response  = &quot;CON  Pick a table for reservation below \n&quot;;</pre><pre>$response .= &quot;1. Table for 2 \n&quot;;</pre><pre>$response .= &quot;2. Table for 4 \n&quot;;</pre><pre>$response .= &quot;3. Table for 6 \n&quot;;</pre><pre>$response .= &quot;4. Table for 8 \n&quot;;</pre><pre>}</pre><pre>//Menu for a user who selects &#39;1&#39; from the second menu above</pre><pre>// Will be brought to this third menu screen</pre><pre>else if ($text == &quot;1*1&quot;) {</pre><pre>$response = &quot;CON You are about to book a table for 2 \n&quot;;</pre><pre>$response .= &quot;Please Enter 1 to confirm \n&quot;;</pre><pre>}</pre><pre>else if ($text == &quot;1*1*1&quot;) {</pre><pre>$response = &quot;CON Table for 2 cost -N- 50,000.00 \n&quot;;</pre><pre>$response .= &quot;Enter 1 to continue \n&quot;;</pre><pre>$response .= &quot;Enter 0 to cancel&quot;;</pre><pre>}</pre><pre>else if ($text == &quot;1*1*1*1&quot;) {</pre><pre>$response = &quot;END Your Table reservation for 2 has been booked&quot;;</pre><pre>}</pre><pre>else if ($text == &quot;1*1*1*0&quot;) {</pre><pre>$response = &quot;END Your Table reservation for 2 has been canceled&quot;;</pre><pre>}</pre><pre>// Menu for a user who selects &quot;2&quot; from the second menu above</pre><pre>// Will be brought to this fourth menu screen</pre><pre>else if ($text == &quot;1*2&quot;) {</pre><pre>$response = &quot;CON You are about to book a table for 4 \n&quot;;</pre><pre>$response .= &quot;Please Enter 1 to confirm \n&quot;;</pre><pre>}</pre><pre>// Menu for a user who selects &quot;1&quot; from the fourth menu screen</pre><pre>else if ($text == &quot;1*2*1&quot;) {</pre><pre>$response = &quot;CON Table for 4 cost -N- 150,000.00 \n&quot;;</pre><pre>$response .= &quot;Enter 1 to continue \n&quot;;</pre><pre>$response .= &quot;Enter 0 to cancel&quot;;</pre><pre>}</pre><pre>else if ($text == &quot;1*2*1*1&quot;) {</pre><pre>$response = &quot;END Your Table reservation for 4 has been booked&quot;;</pre><pre>}</pre><pre>else if ($text == &quot;1*2*1*0&quot;) {</pre><pre>$response = &quot;END Your Table reservation for 4 has been canceled&quot;;</pre><pre>}</pre><pre>// Menu for a user who enters &quot;3&quot; from the second menu above</pre><pre>// Will be brought to this fifth menu screen</pre><pre>else if ($text == &quot;1*3&quot;) {</pre><pre>$response = &quot;CON You are about to book a table for 6 \n&quot;;</pre><pre>$response .= &quot;Please Enter 1 to confirm \n&quot;;</pre><pre>}</pre><pre>// Menu for a user who enters &quot;1&quot; from the fifth menu</pre><pre>else if ($text == &quot;1*3*1&quot;) {</pre><pre>$response = &quot;CON Table for 6 cost -N- 250,000.00 \n&quot;;</pre><pre>$response .= &quot;Enter 1 to continue \n&quot;;</pre><pre>$response .= &quot;Enter 0 to cancel&quot;;</pre><pre>}</pre><pre>else if ($text == &quot;1*3*1*1&quot;) {</pre><pre>$response = &quot;END Your Table reservation for 6 has been booked&quot;;</pre><pre>}</pre><pre>else if ($text == &quot;1*3*1*0&quot;) {</pre><pre>$response = &quot;END Your Table reservation for 6 has been canceled&quot;;</pre><pre>}</pre><pre>// Menu for a user who enters &quot;4&quot; from the second menu above</pre><pre>// Will be brought to this sixth menu screen</pre><pre>else if ($text == &quot;1*4&quot;) {</pre><pre>$response = &quot;CON You are about to book a table for 8 \n&quot;;</pre><pre>$response .= &quot;Please Enter 1 to confirm \n&quot;;</pre><pre>}</pre><pre>// Menu for a user who enters &quot;1&quot; from the sixth menu</pre><pre>else if ($text == &quot;1*4*1&quot;) {</pre><pre>$response = &quot;CON Table for 8 cost -N- 250,000.00 \n&quot;;</pre><pre>$response .= &quot;Enter 1 to continue \n&quot;;</pre><pre>$response .= &quot;Enter 0 to cancel&quot;;</pre><pre>}</pre><pre>else if ($text == &quot;1*4*1*1&quot;) {</pre><pre>$response = &quot;END Your Table reservation for 8 has been booked&quot;;</pre><pre>}</pre><pre>else if ($text == &quot;1*4*1*0&quot;) {</pre><pre>$response = &quot;END Your Table reservation for 8 has been canceled&quot;;</pre><pre>}</pre><pre>//echo response</pre><pre>header(&#39;Content-type: text/plain&#39;);</pre><pre>echo $response</pre><pre>?&gt;</pre><p>From the above code snippet, we have some variables and keywords:</p><pre>$sessionId: This generates a unique value when the session starts and sent every time a mobile subscriber response has been received.</pre><pre>$serviceCode: This refer to your USSD code</pre><pre>$text: This shows the user input. which is an empty string in the first notification of a session which after that concatenates all the user input within the session until the session ends.</pre><pre>$response: This hold the answer to the user input.</pre><pre>echo: Prints out the response for the user to read.</pre><pre>CON: It means an intermediate menu Or that the session is CONtinuing</pre><pre>END: Means the final menu and will trigger session termination i.e session is ENDing.</pre><p>If that is done we need to deploy and host our application on Heroku to use.</p><p>On your dashboard on Heroku click on the new button and choose the create a new app option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEnoycEwlYBJB55KmQIkZQ.jpeg" /></figure><p>Enter the app name you want if the name is available. I am using africas-talking-api and click on the create app button.</p><p>scroll down a bit to where you see the link to download the Heroku CLI click the link and download base on your OS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*ua7vfCrLB_f_jUNe6XrAFg.jpeg" /></figure><p>At this point, I assume you have Git installed already because we will be using commands</p><p>So open up the terminal or Git bash to the root folder of where you have the project for the USSD application</p><pre>$ heroku login</pre><p>login using your credentials to the Heroku CLI:</p><pre>$ git init</pre><p>Initialized the project as a Git repository:</p><pre>$ heroku git:remote -a &lt;Your app name here you created on heroku&gt;</pre><p>Adding the Heroku remote to have access to push to it:</p><pre>$ git add .</pre><p>Adding the file to Git for staging:</p><pre>$ git commit -am &quot;initial commit for ussd application&quot;</pre><p>Saving our work with a snapshot:</p><pre>$ git push heroku master</pre><p>Pushing to the Heroku master branch for deployment. If success, head over to Heroku, reload and click on the <strong>open app</strong> button at the top right then copy the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nlT27aLHkjjY1yIPA519Dg.jpeg" /></figure><p>The URL will look something like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*smXT5l79AI_1s7miRVkYMQ.jpeg" /></figure><p>Yeah, we are almost there. head back to Africa’s talking website.</p><p>Click on the <strong>Go To Sandbox app.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTD9-gX2DlzFiQFNy0ac4g.jpeg" /></figure><p>Click on the USSD section tab at the left-hand side and click on <strong>Create Channel</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AyOj4rz5A8SJzNR0IjG6wg.jpeg" /></figure><p>Then add your channel number and enter the Heroku app url then click on create a channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*O-z0T4YqaUa8p-8pN6-5hg.jpeg" /></figure><p>Now, it’s time to test our application, click on the launch simulator.</p><figure><img alt="Image to launch simulator" src="https://cdn-images-1.medium.com/max/1024/1*g3dboFHUPKq3FEHE9RbceQ.jpeg" /></figure><p>Then choose your country from the dropdown option and enter your mobile number and click on launch.</p><figure><img alt="sandbox simulator" src="https://cdn-images-1.medium.com/max/829/1*2IskB1xlb6rHCJiXDcpAug.jpeg" /></figure><p>Click on USSD from the simulator option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*O6OElUODfmFf0_UkEujcrw.jpeg" /></figure><p>Then enter your service code in the input box provided and click on call, to simulate how it will work like when been use by the public.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*ufiEVFBrqmi8tJ0esQLV9A.jpeg" /></figure><p>So we just work on how to build/develop a USSD application that can be used for “table reservation”, which after getting/understanding the concepts you can come up with a project idea you can build on. You can also download the mobile app from Play store “Africa stalking” which will still do the same with the web simulator.</p><p><strong>Note</strong>: Building the USSD and testing with the simulator is free but when you want the public to use your USSD code without using the simulator then you need to pay for the service, you might want to check the <a href="https://africastalking.com/pricing">pricing</a> out.</p><p>You can also check out the code on my <a href="https://github.com/Nelson-Chinedu/ussd-application">Github repository</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc4394173075" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fbdevclagos/how-to-build-a-ussd-application-fc4394173075">How to Build a USSD application</a> was originally published in <a href="https://medium.com/fbdevclagos">Facebook Developer Circles Lagos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tools/Technology I stumbled on during bootcamp]]></title>
            <link>https://medium.com/@egwuchinedu69/tools-technology-i-stumbled-on-during-bootcamp-7b469e0c213c?source=rss-f9ff7cfe3a2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b469e0c213c</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[andela]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Nelson Chinedu]]></dc:creator>
            <pubDate>Wed, 17 Apr 2019 15:16:45 GMT</pubDate>
            <atom:updated>2019-04-17T15:16:45.261Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P2KvfVvQ2wdd6v9phbNJ6Q.jpeg" /><figcaption>image from pexels</figcaption></figure><p>Just as they say that learning never stops and I key into that, that we learn every day so in this article, I will be writing on an interesting tool/technology I encountered in preparation for boot camp so enough of the intro and let’s get down to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*4Z3ArGeiWgEtrmOB_jnumA.jpeg" /><figcaption>image from memegenerator.net</figcaption></figure><p>**NodeJS**</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5RYM_Wkj4LsZewpigV5tg.jpeg" /><figcaption>image from <a href="https://www.valuecoders.com/blog/industry-news/node-js-10-0-0-available-now/">https://www.valuecoders.com/blog/industry-news/node-js-10-0-0-available-now/</a></figcaption></figure><blockquote>According to [wikipedia](<a href="https://en.wikipedia.org/wiki/Node.js">https://en.wikipedia.org/wiki/Node.js</a>), it’s an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser.</blockquote><p>NodeJS is one of the technologies I found interesting because it allows in developing an executable application, so for the boot camp, it’s an essential technology needed, while preparing to be an Andelan.</p><p>**GIT**</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*co_1qORNdM0PI1nvCp7Iig.png" /><figcaption>image from <a href="https://git-scm.com/downloads/logos">https://git-scm.com/downloads/logos</a></figcaption></figure><blockquote>According to [wikipedia](<a href="https://en.wikipedia.org/wiki/Git">https://en.wikipedia.org/wiki/Git</a>), it’s a distributed version-control system for tracking changes in source code during software development.</blockquote><p>So Git is a tool I also found interesting due to the fact that it helps to keep track of changes on files while working and also it helps while collaborating with other developers distributedly in respective of location. And it works with terminal commands.</p><p>**Pivotal Tracker**</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9ECVR374HPqx6W_McTYpg.png" /><figcaption>image from <a href="https://andycroll.com/other/pivotal-tracker-fluid-icon/">https://andycroll.com/other/pivotal-tracker-fluid-icon/</a></figcaption></figure><p>It’s a project management tool that it’s been used to keep track of progress and also realistic expectations while working in teams or as an individual. It has some features such as Current/Backlog, Done, Blocked, IceBox and some other cool features which I will urge you to [check]( <a href="https://www.pivotaltracker.com/">https://www.pivotaltracker.com</a>).</p><p>**PostgresSQL**</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*MNpwm1eDe-zbX07B-f2jyw.png" /><figcaption>image from <a href="https://iconscout.com/icon/postgresql-11">https://iconscout.com/icon/postgresql-11</a></figcaption></figure><p>A relational database management system that is been used to store records/data in the format of rows and table which can be retrieved for later purposes without losing the records if persisted.</p><p>&gt; In conclusion, I will say the above listed tool/technology has been an interesting one because it helps in ease crafting software development</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b469e0c213c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My React.js journey: React Workshop to React Summit]]></title>
            <link>https://medium.com/fbdevclagos/my-learning-path-on-reactjs-5bc5a09c576d?source=rss-f9ff7cfe3a2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bc5a09c576d</guid>
            <category><![CDATA[summit]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[workshop]]></category>
            <dc:creator><![CDATA[Nelson Chinedu]]></dc:creator>
            <pubDate>Thu, 25 Oct 2018 16:15:30 GMT</pubDate>
            <atom:updated>2018-10-25T16:22:31.260Z</atom:updated>
            <content:encoded><![CDATA[<p>I remember vividlly. I was totally clueless at the first React class I attended early this year. The DevC React.js team held the workshop for four Saturdays at Univelcity, Yaba. This was me at the end of Day One.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*roUmhPjfz1U-MlU0DwZLPQ.jpeg" /></figure><h3>React or Respond?</h3><p>I was confused, so much that I could not even afford to pretend I understood a thing of what was thought. Right there, I lost the vibe to continue with React.js, and decided I would move on to another JavaScript framework. But before leaving that day, I spoke with one of the facilitators, and shared my ordeal—”All through the class, I didn’t understand this React.js thing. Is there any hope?”.</p><p>The faciitator encouraged me, and gave me tips on what to study. But Just to be sure I had not totally lost out on a learning opportunity, I asked him if the workshop would hold again. He replied, “Most likely”. So I got home and started learning/understanding ES6 and other resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*gGy74aMlnmejSoNZDB-LXA.jpeg" /><figcaption>React? Here we come!</figcaption></figure><h3>2nd React Workshop</h3><p>Fast-forward to yet another laudable opportunity to become a ninja in React—The DevC React workshop came up again for four Saturdays at Facebook NG_HUB, Yaba. I registered and got on-boarded. This time, absolutely prepared! All through the four Saturdays of learning React, I went with the flow, and got the whole React vibe. I finished the workshop a happy person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*pv8IX9sbBGVfr4O8BFRQlg.jpeg" /></figure><h3>Accolades</h3><p>I would like to give kudos to Facebook Developer Circles Lagos, especially to the organizers of the React Workshop and the React Summit.</p><p>Big thanks to the mentors. Thumbs up to the awesome people I met—fellow React enthusiast. And to the the facilitators from Andela that took charge of the React workshop, here we go… You were a-ma-zinnng!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*T5tNSoe4H319Ntq_XwfclQ.jpeg" /></figure><p>Every single thing thought at the React workshop was broken down into components—bit by bit. This just made it easier to understand.</p><p>I have since the end of the workshop worked on some cool projects with React.js, just to get my hands really dirty. About the React Summit? Pictures tell better stories.</p><h3>Photo Reel from the React Summit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*tc4it-S3eUhVA5rkku7MQQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*I8Bk_wSSoMsdEojYk0aDLQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*7HLLncJiuaGjy7VMkzlC4A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*IdhTW90NGacvdrhlnk48ew.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*pvXJc11XaMZ8s0p8AmxsmA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*lNC1B7e-6akAlzCMMUpIaQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*HJsn2SHkWWJKdcLBYiXAlQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*e3CbTGGcyJc5w2eibDeGeg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*wnvx943teRYSYrBSbITuFA.jpeg" /><figcaption>#ReactSummit2018</figcaption></figure><blockquote>Thanks for reading thus far. I would appreciate your claps too!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bc5a09c576d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fbdevclagos/my-learning-path-on-reactjs-5bc5a09c576d">My React.js journey: React Workshop to React Summit</a> was originally published in <a href="https://medium.com/fbdevclagos">Facebook Developer Circles Lagos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>