<?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: Abir Bhattacharya</title>
    <description>The latest articles on DEV Community by Abir Bhattacharya (@abirbhattacharya82).</description>
    <link>https://dev.to/abirbhattacharya82</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%2F530897%2F143a7205-0f92-423a-a858-40e192a58724.jpeg</url>
      <title>DEV Community: Abir Bhattacharya</title>
      <link>https://dev.to/abirbhattacharya82</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abirbhattacharya82"/>
    <language>en</language>
    <item>
      <title>MongoDB Atlas Hackathon 2022 on DEV</title>
      <dc:creator>Abir Bhattacharya</dc:creator>
      <pubDate>Sat, 12 Nov 2022 16:30:45 +0000</pubDate>
      <link>https://dev.to/abirbhattacharya82/mongodb-atlas-hackathon-2022-on-dev-c3k</link>
      <guid>https://dev.to/abirbhattacharya82/mongodb-atlas-hackathon-2022-on-dev-c3k</guid>
      <description>&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;h3&gt;
  
  
  FIFA 20 Catalogue
&lt;/h3&gt;

&lt;p&gt;Are you looking for your favourite FIFA 20 player? FIFA 20 Catalogue is the perfect solution for you. This solution performs a quick search across the entire player database and finds details such as &lt;strong&gt;nationality, clubs, age, overall etc.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Category Submission:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Search No More&lt;/strong&gt; (Building an Application with the help of Mongodb Atlas Search)&lt;/p&gt;

&lt;h3&gt;
  
  
  App Link
&lt;/h3&gt;

&lt;p&gt;The App is deployed in the following link&lt;br&gt;
&lt;a href="https://fifa20.netlify.app/"&gt;FIFA 20 Catalogue&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Screenshots
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eyHX-EnZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ss9jek3v3ew45g553n6e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eyHX-EnZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ss9jek3v3ew45g553n6e.png" alt="App Screenshot" width="666" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Description
&lt;/h3&gt;

&lt;p&gt;FIFA 20 Catalogue is a simple User Interface which helps people in finding details like&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Age&lt;/li&gt;
&lt;li&gt;Overall&lt;/li&gt;
&lt;li&gt;Nationality&lt;/li&gt;
&lt;li&gt;Club&lt;/li&gt;
&lt;li&gt;Height
The user interface is pretty self explanatory which has a search bar and asks the user to enter the name of a player and if the player exist in the FIFA 20 Player catalogue then it will be returning the details of the player withing seconds. The design of the details section is simmilar to the FIFA 20 Club crests.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Link to Source Code
&lt;/h3&gt;

&lt;p&gt;The source code of the Solution is present here &lt;a href="https://github.com/abirbhattacharya82/Elastic-search-mongodb-atlas-dev-hackathon"&gt;link to source code&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Permissive License
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/abirbhattacharya82/Elastic-search-mongodb-atlas-dev-hackathon/blob/main/LICENSE"&gt;MIT License&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;Being a football fan I have always enjoyed dealing with datas related to Football. FIFA is a game which I have been playing over a decade now. Among various versions of the game EA Sports FIFA 09 was the FIFA I ever played. &lt;br&gt;&lt;br&gt;
When I saw that Dev is organising Mongo DB Atlas Hackathon for everyone this year I was excited and decided to participate immediately. However I wasn't sure which dataset I would be working on. &lt;br&gt;&lt;br&gt;
Thats when I came across the dataset in Kaggle &lt;a href="https://www.kaggle.com/datasets/stefanoleone992/fifa-20-complete-player-dataset"&gt;fifa-20-complete-player-dataset&lt;/a&gt;. And it was then I decided to work on this dataset.&lt;/p&gt;

&lt;h3&gt;
  
  
  How I built it
&lt;/h3&gt;

&lt;p&gt;In order to build the app I performed the following steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Downloaded the Kaggle dataset in csv form&lt;/li&gt;
&lt;li&gt;Converted the csv dataset to json&lt;/li&gt;
&lt;li&gt;Wrote a Nodejs program to upload the json objects in the form of mongodb collections with fields I needed and ommited the rest.&lt;/li&gt;
&lt;li&gt;Created a Search Index&lt;/li&gt;
&lt;li&gt;Used Mongodb Atlas Search to add the following three stages:

&lt;ol&gt;
&lt;li&gt;Querrying on the short_name field of the database&lt;/li&gt;
&lt;li&gt;Sorting the list in descending order&lt;/li&gt;
&lt;li&gt;Limit to only top 4 collections to prevent overcrowding&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Created a Nodejs API using Express framework.&lt;/li&gt;
&lt;li&gt;Used MongoClient and pulled the collections with the help of player's short name&lt;/li&gt;
&lt;li&gt;Sent the array of json objects as a response to the request&lt;/li&gt;
&lt;li&gt;In the frontend made an &lt;strong&gt;GET&lt;/strong&gt; API call on the hosted API and retrieved the results&lt;/li&gt;
&lt;li&gt;Properly presented the result with DOM manipulation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Additional Resources/Info
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Raw Data Link:&lt;/strong&gt; &lt;a href="https://www.kaggle.com/datasets/stefanoleone992/fifa-20-complete-player-dataset"&gt;raw dataset&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Service for Hosting API:&lt;/strong&gt; &lt;a href="https://www.cyclic.sh/"&gt;cyclic.sh&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Service for Hosting Frontend:&lt;/strong&gt; &lt;a href="https://www.netlify.com/"&gt;netlify&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>atlashackathon22</category>
      <category>javascript</category>
      <category>mongodb</category>
    </item>
  </channel>
</rss>
