<?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>Forem: Oussema Dammak</title>
    <description>The latest articles on Forem by Oussema Dammak (@oussema_dammak).</description>
    <link>https://forem.com/oussema_dammak</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%2F3556843%2F7989ce18-fa71-4b09-ac94-eed722f88710.jpg</url>
      <title>Forem: Oussema Dammak</title>
      <link>https://forem.com/oussema_dammak</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/oussema_dammak"/>
    <language>en</language>
    <item>
      <title>Built a Laptop Comparison Platform using Django and Next.j</title>
      <dc:creator>Oussema Dammak</dc:creator>
      <pubDate>Tue, 11 Nov 2025 06:00:00 +0000</pubDate>
      <link>https://forem.com/oussema_dammak/built-a-laptop-comparison-platform-using-django-and-nextj-37pf</link>
      <guid>https://forem.com/oussema_dammak/built-a-laptop-comparison-platform-using-django-and-nextj-37pf</guid>
      <description>&lt;h3&gt;
  
  
  &lt;strong&gt;How this started&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;I wanted a simple way to compare laptops without digging through scattered specs and outdated blogs. That problem pushed me to build Mokaranet, a platform where users can browse laptops, filter them instantly, compare two models side by side, and get a clear score based on a custom algorithm I designed.&lt;/p&gt;

&lt;p&gt;This project forced me to combine backend logic, frontend performance, SEO, authentication flows, and hosting choices. It was a solid engineering workout, and I documented the whole process here.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;What the platform actually does&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Mokaranet is more than a product list. Users can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Search and filter laptops by multiple criteria&lt;/li&gt;
&lt;li&gt;Open detailed pages with specs, benchmarks, recommended prices, and places to buy&lt;/li&gt;
&lt;li&gt;Compare two laptops and get a score from a custom algorithm&lt;/li&gt;
&lt;li&gt;Log in with OAuth2, JWT, or OTP&lt;/li&gt;
&lt;li&gt;Save favorite laptops&lt;/li&gt;
&lt;li&gt;Save comparisons for later review&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These features created a clean end-to-end user flow, from discovery to decision-making.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;My tech stack :&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Backend: Django&lt;br&gt;
Frontend: Next.js&lt;br&gt;
Database: PostgreSQL&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Hosting:&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Frontend on Vercel&lt;br&gt;
Backend on Render&lt;br&gt;
Postgres on Neon&lt;br&gt;
Images on Cloudinary&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;The scoring algorithm&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;The comparison feature is the core of Mokaranet. I built an algorithm that evaluates laptops based on CPU performance, GPU capability, RAM, storage type, price, and other specs that I mentioned in the comparison page. Each metric contributes to a weighted total score, giving users a simple, honest ranking.&lt;/p&gt;

&lt;p&gt;This part took most of the trial and error. Getting the weights right was tougher than expected, but the outcome feels balanced now.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Authentication :&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;I implemented:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OAuth2 login&lt;/li&gt;
&lt;li&gt;JWT-based authentication&lt;/li&gt;
&lt;li&gt;OTP login for secure access&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;SEO, indexing, and analytics :&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;I handled:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Proper meta tags&lt;/li&gt;
&lt;li&gt;Clean URLs&lt;/li&gt;
&lt;li&gt;Correctly structured pages&lt;/li&gt;
&lt;li&gt;Submission to Google Search Console&lt;/li&gt;
&lt;li&gt;Full setup with Google Analytics&lt;/li&gt;
&lt;li&gt;The site is already indexed and starting to get organic impressions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here are some screenshots of the project,&lt;br&gt;
also feel free to visit via : &lt;a href="https://mokaranet.vercel.app/" rel="noopener noreferrer"&gt;https://mokaranet.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Landing Page :&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa0zbydlfh2on64u0zsxx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa0zbydlfh2on64u0zsxx.png" alt=" " width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Laptops List :&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frbw4h6egyh86pvuyq0v7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frbw4h6egyh86pvuyq0v7.png" alt=" " width="800" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Result Page:&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ul9lcy4ic9ojb0vxyb3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ul9lcy4ic9ojb0vxyb3.png" alt=" " width="800" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Saved Comparisons :&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fobxal3nxh1av72sc12hx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fobxal3nxh1av72sc12hx.png" alt=" " width="800" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Final thoughts&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Mokaranet helped me push my limits as a backend developer while building something useful. I would love to hear honest feedback, suggestions, or ideas for improvements. If you try it, tell me what you think.&lt;/p&gt;

&lt;p&gt;Project link again: &lt;a href="https://mokaranet.vercel.app/" rel="noopener noreferrer"&gt;https://mokaranet.vercel.app/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>django</category>
      <category>nextjs</category>
      <category>backend</category>
      <category>fullstack</category>
    </item>
  </channel>
</rss>
