<?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 Abidemitaiwo on Medium]]></title>
        <description><![CDATA[Stories by Abidemitaiwo on Medium]]></description>
        <link>https://medium.com/@abidemitaiwo95?source=rss-2ef9b862127a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*i1PoeqNJs0qyVbViOhgKXA.jpeg</url>
            <title>Stories by Abidemitaiwo on Medium</title>
            <link>https://medium.com/@abidemitaiwo95?source=rss-2ef9b862127a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 03:58:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abidemitaiwo95/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[Stutern Housemanship — Handout Documentation By Abidemi Taiwo]]></title>
            <link>https://medium.com/@abidemitaiwo95/stutern-housemanship-handout-project-documentation-by-abidemi-taiwo-61b825676374?source=rss-2ef9b862127a------2</link>
            <guid isPermaLink="false">https://medium.com/p/61b825676374</guid>
            <dc:creator><![CDATA[Abidemitaiwo]]></dc:creator>
            <pubDate>Sun, 16 Oct 2022 03:32:49 GMT</pubDate>
            <atom:updated>2022-12-13T12:11:31.905Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UvnDRSeAILDAPdD_3Mkfvw.png" /></figure><h3>Task — 1 Implementing Es Lint</h3><p><strong>What is Eslint?</strong><br>ESlint is an open-source library that’s commonly used by React developers to enforce rules about maintaining the code standard across the project. It’s fully customizable so you can configure the desired rules yourself.</p><p>Linting your code can help you spot bugs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnlFr-9wJDhis3obgJ-52A.png" /><figcaption>Linting your code can help you spot bugs (This is an example).</figcaption></figure><p>ESLint can help spot those dangerous patterns and show warnings about them ahead of execution.</p><h3>step1 — Installation</h3><p>To install ESLint in your project run the</p><pre>npm install eslint--save-dev</pre><p>in the root directory of our React project. This will install ESLint as a dev dependency.</p><h3>step2 — creating the config file</h3><p>To create the config file. Run the below npm command to generate your .eslintrc.js file.</p><pre>npm init @eslint/config</pre><p>This command will ask you a couple of questions about your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0sz3sFpohUmrzE2DRFGZTQ.png" /></figure><p>Lets take a look at the generated config file.</p><pre>{<br>  &quot;env&quot;: {<br>    &quot;browser&quot;: true,<br>    &quot;es2021&quot;: true,<br>    &quot;jest&quot;: true<br>  },<br>  &quot;extends&quot;: [<br>    &quot;plugin:react/recommended&quot;,<br>    &quot;airbnb&quot;,<br>    &quot;plugin:prettier/recommended&quot;<br>  ],<br>  &quot;parserOptions&quot;: {<br>    &quot;ecmaFeatures&quot;: {<br>      &quot;jsx&quot;: true<br>    },<br>    &quot;ecmaVersion&quot;: 12,<br>    &quot;sourceType&quot;: &quot;module&quot;<br>  },<br>  &quot;plugins&quot;: [&quot;react&quot;],<br>  &quot;rules&quot;: {<br>    &quot;react/prop-types&quot;: 0,<br>    &quot;react/jsx-filename-extension&quot;: [1, { &quot;extensions&quot;: [&quot;.js&quot;, &quot;.jsx&quot;] }],<br>    &quot;import/no-extraneous-dependencies&quot;: [&quot;error&quot;, { &quot;devDependencies&quot;: true }],<br>    &quot;prettier/prettier&quot;: [<br>      &quot;error&quot;,<br>      {<br>        &quot;endOfLine&quot;: &quot;auto&quot;<br>      }<br>    ]<br>  }<br>}</pre><p>Configuring .eslintignore</p><p>Let’s create a file called <strong>.eslintignore</strong> and add the content below.</p><p>It will prevent eslint from forcing styles in the /node_modules files, javascript files at the project root, and in the javascript react env file.</p><pre>/*.js<br>** / *. js<br>node_modules<br>build<br>/src/react-app-env.d.js</pre><p>That’s all for now.</p><h3>Task 2— Implementing Login API request</h3><p><strong>Step 1 — </strong>Install The following Dependencies</p><pre>npm install js-cookie<br>npm install moment<br>npm install history</pre><p><strong>Step 2 — Create a file in the API folder and name it onboarding.js. Paste the following lines of codes ine this created file.</strong></p><pre>/** Send a POST request to Login Users */<br>export const Login = async (email, password) =&gt; {<br>  const data = { <br>  email,   <br>  password,<br>  };<br>  const stringifiedData = JSON.stringify(data);<br>  return handoutOnboarding.post(&quot;/auth/login&quot;, stringifiedData);};</pre><p><strong>Step 3 — Create a new file and name it Config.js , below is a link to the lines of codes to be pasted in your created Config.js file</strong></p><p><a href="https://github.com/StuternHousemanship/HANDOUT-Frontend-Project-Team1.1/blob/HDT-1_Onboarding_Features/src/config.js">https://github.com/StuternHousemanship/HANDOUT-Frontend-Project-Team1.1/blob/HDT-1_Onboarding_Features/src/config.js</a></p><p><strong>Step — 4 Create a new file and name it tokenvalidate.js and paste the lines of codes in the link below</strong></p><p><a href="https://github.com/StuternHousemanship/HANDOUT-Frontend-Project-Team1.1/blob/HDT-1_Onboarding_Features/src/tokenvalidate.js">https://github.com/StuternHousemanship/HANDOUT-Frontend-Project-Team1.1/blob/HDT-1_Onboarding_Features/src/tokenvalidate.js</a></p><p><strong>Step — 5 Open your Login.jsx file and import these</strong></p><pre>import { useState } from &quot;react&quot;;<br>import Cookies from &quot;js-cookie&quot;;<br>import onboarding from &quot;../api/onboarding&quot;;</pre><p><strong>Step — 6 Make the variables for the user’s information</strong></p><pre>const [email, setEmail] = useState(&quot;&quot;);</pre><pre>const [password, setPassword] = useState(&quot;&quot;);</pre><p><strong>Step — 7 Paste the following codes in their respective inputs</strong></p><pre>//email input<br>value={email}onChange={(e) =&gt; setEmail(e.target.value)}</pre><pre>//password input value={password}onChange={(e) =&gt; handlePasswordOnChange(e.target.value)}</pre><p><strong>Step — 8 Create a function to post the users details to backend by pasting the codes below</strong></p><pre>const handleSignUp = (e) =&gt;</pre><pre> {e.preventDefault();</pre><pre>// setButtonIsLoading(true);onboarding</pre><pre>.SignUp(email, password).then((response) =&gt; {</pre><pre>if (response.status === 200) {</pre><pre>const accessToken = <br>response.access_token;</pre><pre>const refreshToken = response.refresh_token;</pre><pre>Cookies.set(&quot;accessToken&quot;, accessToken);</pre><pre>localStorage.setItem(&quot;token&quot;, refreshToken);<br>}<br>});<br>};</pre><p><strong>Step — 9 </strong>Connect<strong> </strong>the function above to the “create account button”. On the button, assign the attribute below:</p><pre>onClick = {handleLogin}</pre><h3>Task 3 — Designing forgot password email template for backend to integrate.</h3><p><strong>Step 1 — C</strong>reate a new folder and name it email_template .</p><p><strong>Step 2 — </strong>Create another folder inside your email_template folder and name it verify_password .</p><p><strong>Step 3</strong> — Create an index.html file in your verify_password folder .</p><p><strong>Step 4 </strong>— Work on the codes and styling for your forgot password email template, here’s a link of code you to paste in your already created file</p><p><a href="https://github.com/StuternHousemanship/HANDOUT-Frontend-Project-Team1.1/commit/12e93b30e38a824d43bd641d0f8a42aa7296ec3f">https://github.com/StuternHousemanship/HANDOUT-Frontend-Project-Team1.1/commit/12e93b30e38a824d43bd641d0f8a42aa7296ec3f</a></p><h3>Task 4- create layout and functionalities for view all items page.</h3><p><strong>Step 1- </strong>create a new file in the component</p><p><strong>Step 2-</strong>Implement the layouts and styles using tailwind.css , below are images of the created page.</p><p><strong>Step 3- </strong>use the given endpoints provided by the backend team for functionalities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*waWbZI8odwu_fo0VGEU0Sw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MbtfkMQ5iFUzu_rK4cdkRA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61b825676374" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>