<?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: SAKSHI</title>
    <description>The latest articles on DEV Community by SAKSHI (@sakshi25).</description>
    <link>https://dev.to/sakshi25</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%2F304404%2Ff116392a-ace1-400e-b730-71a4e14e2eed.jpg</url>
      <title>DEV Community: SAKSHI</title>
      <link>https://dev.to/sakshi25</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sakshi25"/>
    <language>en</language>
    <item>
      <title>Postman Testing</title>
      <dc:creator>SAKSHI</dc:creator>
      <pubDate>Mon, 30 Nov 2020 09:00:03 +0000</pubDate>
      <link>https://dev.to/sakshi25/postman-testing-57e2</link>
      <guid>https://dev.to/sakshi25/postman-testing-57e2</guid>
      <description>&lt;p&gt;Have you ever created a Github repository via Git? Many times, I guess. But have you &lt;strong&gt;created a repo via calling HTTP APIs&lt;/strong&gt;.&lt;br&gt;
Let's Know about APIs &amp;amp; a Testing platform i.e. Postman.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is POSTMAN?
&lt;/h3&gt;

&lt;p&gt;Postman is a Google Chrome app for interacting with HTTP APIs. It presents you with &lt;strong&gt;a friendly GUI for constructing requests and reading responses&lt;/strong&gt;. It works on the backend and makes sure that each API is working as intended.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;It is an API client.&lt;br&gt;
Develop, Test(Manual &amp;amp; Automated), Share &amp;amp; Document APIs.&lt;/strong&gt;&lt;br&gt;
Postman is the way to streamline the process of API testing.&lt;br&gt; Download Postman for your OS: &lt;a href="https://www.postman.com/downloads/" rel="noopener noreferrer"&gt;https://www.postman.com/downloads/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1200%2F1%2AtO_SemO2SWDsmN1bzIwmcA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1200%2F1%2AtO_SemO2SWDsmN1bzIwmcA.png" alt="https://miro.medium.com/max/1200/1*tO_SemO2SWDsmN1bzIwmcA.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What we will do?
&lt;/h3&gt;

&lt;p&gt;We will create a repository via POSTMAN with Github API. We will create a Github Access token, use that token to manage our Github Account, and then Postman will send a request to github.com to make a new repository on the specified account to which the token belongs to &amp;amp; hurray we'll get a response with &lt;code&gt;Status: 201 Created&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  Resources/References:
&lt;/h4&gt;

&lt;p&gt;Postman on Youtube: &lt;a href="https://www.youtube.com/channel/UCocudCGVb3MmhWQ1aoIgUQw" rel="noopener noreferrer"&gt;https://www.youtube.com/channel/UCocudCGVb3MmhWQ1aoIgUQw&lt;/a&gt; &lt;br&gt;&lt;br&gt;
📘 Read about Github APIs: &lt;a href="https://docs.github.com/en/free-pro-team@latest/rest" rel="noopener noreferrer"&gt;https://docs.github.com/en/free-pro-team@latest/rest&lt;/a&gt; &lt;br&gt;&lt;br&gt;
📘 Read about Repositories API version3: &lt;a href="https://developer.github.com/v3/" rel="noopener noreferrer"&gt;https://developer.github.com/v3/&lt;/a&gt; &lt;br&gt;&lt;br&gt;
📘 Read about Repositories API version3 (current version): &lt;a href="https://developer.github.com/v3/#current-version" rel="noopener noreferrer"&gt;https://developer.github.com/v3/#current-version&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  Let's start with POSTMAN using Github API. Below are some instructions, follow &amp;amp; you are good to go then.
&lt;/h5&gt;

&lt;h2&gt;
  
  
  Starting with POSTMAN + Github API
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Step1:&lt;/strong&gt; &lt;br&gt;
-&amp;gt; Make an Account on Github &lt;br&gt;
-&amp;gt; Go to Settings (find it in the dropdown located at top left corner) &lt;br&gt;
-&amp;gt; Go to Developer Settings (left panel) &lt;br&gt;
-&amp;gt; Click on Personal Access Tokens &lt;br&gt;
-&amp;gt; Click Generate New Token &lt;code&gt;copy &amp;amp; save it&lt;/code&gt;. (It's a  private key, Don't share it with anyone)🤫&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; &lt;br&gt;
-&amp;gt; Download &amp;amp; Install Postman. Log in with Google or anything you want and Open it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a Workspace&lt;/li&gt;
&lt;li&gt;Create a Request&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Go to Environment Variable on the top-right corner &amp;amp; click on settings(Manage Environment)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add / Creare an environment&lt;/li&gt;
&lt;li&gt;Name the environment: Github API&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;variable&lt;/th&gt;
&lt;th&gt;Initial&lt;/th&gt;
&lt;th&gt;Current&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;token&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Leave it empty&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Paste Your github access token here&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Update&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Choose the environment&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Create a new request&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Environment Setup is done.&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Step3:&lt;/strong&gt; Now, Make a Request.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;POST🔽&lt;/th&gt;
&lt;th&gt;&lt;a href="https://api.github.com/user/repos" rel="noopener noreferrer"&gt;https://api.github.com/user/repos&lt;/a&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POST means we are creating a new repo.&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;POST /user/repos&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;POST sends new data to an API&lt;/td&gt;
&lt;td&gt;Creates a new repository for the authenticated user.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;You can make requests to APIs in Postman. An API request allows you to retrieve data from a data source, or to send data. APIs run on web servers and expose endpoints to support the operations client applications use to provide their functionality. &lt;br&gt;
Each API request uses an HTTP method. The most common methods are  &lt;code&gt;GET&lt;/code&gt;,  &lt;code&gt;POST&lt;/code&gt;,  &lt;code&gt;PATCH&lt;/code&gt;,  &lt;code&gt;PUT&lt;/code&gt;, and  &lt;code&gt;DELETE&lt;/code&gt;.&lt;br&gt; -   &lt;code&gt;GET&lt;/code&gt;  methods retrieve data from an API. &lt;br&gt; -   &lt;code&gt;POST&lt;/code&gt;  sends new data to an API. &lt;br&gt; -   &lt;code&gt;PATCH&lt;/code&gt;  and  &lt;code&gt;PUT&lt;/code&gt;  methods update existing data. &lt;br&gt; -   &lt;code&gt;DELETE&lt;/code&gt;  removes existing data. &lt;br&gt;&lt;/p&gt;
&lt;p&gt;PUT means to change/update/modify something in existing data on the server and POST means to add new data to the server&lt;/p&gt; 
&lt;/blockquote&gt;

&lt;p&gt;&lt;br&gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.postman.com%2Fpostman-docs%2Fanatomy-of-a-request.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.postman.com%2Fpostman-docs%2Fanatomy-of-a-request.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Choose Body&lt;/li&gt;
&lt;li&gt;Select &lt;code&gt;raw&lt;/code&gt; &amp;amp; &lt;code&gt;JSON&lt;/code&gt; &amp;amp; paste this example data.
&lt;em&gt;Change the repository name and description as per your choice. This Repo will be &lt;strong&gt;Public&lt;/strong&gt; as &lt;code&gt;private = false&lt;/code&gt;&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Hello-World"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"This is your first repository"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"homepage"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://github.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"private"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"has_issues"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"has_projects"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"has_wiki"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Click Send&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Status: Error 401 Authorization Error(Unauthorised)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;To Enable Authorization: Go to Authorization -&amp;gt; Type -&amp;gt; Bearer Token (As we have token)-&amp;gt; Put the token as  &lt;code&gt;{{token}}&lt;/code&gt; (safe way to use token)&lt;/li&gt;
&lt;li&gt;Send&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Status: OK 201 Created&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🎊✨ A repository has been created on your GitHub account🖥: &lt;a href="https://github.com/Sakshi-25/PostmanTesting" rel="noopener noreferrer"&gt;https://github.com/Sakshi-25/PostmanTesting&lt;/a&gt;
&lt;/h4&gt;

&lt;h4&gt;
  
  
  Join My Postman Team : &lt;br&gt; &lt;a href="https://app.getpostman.com/join-team?invite_code=6fca5c1182d659f6faa3987a216a6c97&amp;amp;ws=8061b583-de7c-48be-b5d4-e2af5f9a6c02" rel="noopener noreferrer"&gt;https://app.getpostman.com/join-team?invite_code=6fca5c1182d659f6faa3987a216a6c97&amp;amp;ws=8061b583-de7c-48be-b5d4-e2af5f9a6c02&lt;/a&gt;
&lt;/h4&gt;

</description>
      <category>beginners</category>
      <category>testing</category>
      <category>github</category>
    </item>
    <item>
      <title>GrowGreen</title>
      <dc:creator>SAKSHI</dc:creator>
      <pubDate>Tue, 20 Oct 2020 10:42:04 +0000</pubDate>
      <link>https://dev.to/sakshi25/growgreen-5f4b</link>
      <guid>https://dev.to/sakshi25/growgreen-5f4b</guid>
      <description>&lt;h2&gt;
  
  
  What I Learned From Hacktoberfest
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;HacktoberFest&lt;/strong&gt; is all about spreading the love for open source software, and my contributions this month demonstrated a significant commitment to our cause - &lt;code&gt;An Eco WebApp&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I get to &lt;strong&gt;be an inspiration&lt;/strong&gt; to someone who can leave their mark, or introduce a complete beginner to the world of open-source.&lt;/p&gt;

&lt;p&gt;HacktoberFest2020 is concerned about saving the environment and so is me. I contributed to an Eco WebApp, "GrowGreen" under Developer Student Clubs, IGDTUW.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I learned team spirit.&lt;/li&gt;
&lt;li&gt;I assimilated ways to find unique solutions to common problems like global warming.&lt;/li&gt;
&lt;li&gt;I got connected to the theme and get to know many points of view. After knowing a project idea and workflow, the urge to continue working on this project increases.&lt;/li&gt;
&lt;li&gt;It is my first time working on a backend project. I used React.js and many frameworks are still left to be used. &lt;/li&gt;
&lt;li&gt;I wish this project become a huge success.&lt;/li&gt;
&lt;li&gt;May it reaches people all around the world and together we make this world a better place.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Project I worked on:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Grow Green&lt;/em&gt; that allows contributors worldwide to create awareness about the environment and do their bit by contributing.&lt;/li&gt;
&lt;li&gt;People can post, view, earn &amp;amp; become a part of a community that is putting a bit by bit daily to improve the ecology.&lt;/li&gt;
&lt;li&gt;There is a whole personalized view of this app that users can avail of.&lt;/li&gt;
&lt;li&gt;It provides a social platform for organic shop, nursery, agricultural commerce to grow and earn.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Vision &amp;amp; goals:
&lt;/h3&gt;

&lt;p&gt;After brainstorming, the team gets to know many further benefits of this app. For example, Soil testing through 'Machine Learning and Data Mining'. Farmers can get direct digital reports from Government/private testing labs including some suggestions to improve their farm quality and quantity.&lt;/p&gt;

&lt;p&gt;Want to know more/ contribute? &lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=fClmoikqrOA"&gt;YouTube&lt;/a&gt; &lt;a href="https://github.com/dscigdtuw/GrowGreen"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contribute to HacktoberFest. The perks are premium and renowned.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Happy Hacking 🤟♥&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5&gt;
  
  
  🤝Connect with me: &lt;a href="https://github.com/Sakshi-25"&gt;GitHub&lt;/a&gt; | &lt;a href="https://www.linkedin.com/in/sakshi-jangra-37755b17b/"&gt;Linkedin&lt;/a&gt; |  &lt;a href="https://twitter.com/Sakshi2517"&gt;Twitter&lt;/a&gt;
&lt;/h5&gt;

</description>
      <category>hacktoberfest2020</category>
    </item>
  </channel>
</rss>
