<?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: Destiny Franks</title>
    <description>The latest articles on DEV Community by Destiny Franks (@desphixs).</description>
    <link>https://dev.to/desphixs</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%2F895392%2F0f78665d-40d1-4773-8eed-6c60df01e9fc.png</url>
      <title>DEV Community: Destiny Franks</title>
      <link>https://dev.to/desphixs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/desphixs"/>
    <language>en</language>
    <item>
      <title>Build a Multivendor E-commerce Website using Django, React &amp; Django Rest Framework</title>
      <dc:creator>Destiny Franks</dc:creator>
      <pubDate>Thu, 25 Jan 2024 17:59:05 +0000</pubDate>
      <link>https://dev.to/desphixs/build-a-multivendor-e-commerce-website-using-django-react-django-rest-framework-4115</link>
      <guid>https://dev.to/desphixs/build-a-multivendor-e-commerce-website-using-django-react-django-rest-framework-4115</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey, You can WATCH PROJECT DEMO VIDEO BELOW&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://youtu.be/aDHK2-d0_ls"&gt;https://youtu.be/aDHK2-d0_ls&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's get started!&lt;/p&gt;

&lt;p&gt;Hey there fellow developers and entrepreneurs! 🚀 In today's tech-driven world, e-commerce is where it's at! And if you're thinking about diving into the online shopping game, you're in the right place. We're gonna show you how to build an awesome multivendor e-commerce website using Django, React, and Django Rest Framework (DRF).&lt;/p&gt;
&lt;h3&gt;
  
  
  Let's Get Real: What You Need
&lt;/h3&gt;

&lt;p&gt;Before we jump into the coding magic, make sure you've got Python and Node.js installed on your machine. Trust us, you don't wanna be stuck in dependency hell! Once you're all set, fire up your terminal and let's get started.&lt;/p&gt;
&lt;h3&gt;
  
  
  Setting Up Shop
&lt;/h3&gt;

&lt;p&gt;First things first, let's create a Django project. Open your terminal and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;django-admin startproject multivendor_ecommerce
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that we've got our Django project, let's spice things up with some React goodness. In your terminal, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-react-app frontend
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Planning the Party: Designing Our Database Models
&lt;/h3&gt;

&lt;p&gt;Every good party needs a plan, right? Same goes for our e-commerce site. We'll need some key models like User, Product, Order, and Vendor and many many more models to keep things organized. Think of them as the VIP guests of our platform (Wink)&lt;/p&gt;

&lt;h3&gt;
  
  
  Time to Get Fancy: Implementing Authentication and Authorization
&lt;/h3&gt;

&lt;p&gt;We wanna keep our platform secure, so let's set up authentication and authorization. We'll use Django's built-in authentication system and DRF's token-based authentication for our API endpoints. No party crashers allowed!&lt;/p&gt;

&lt;h3&gt;
  
  
  Let's Get API-tastic: Building the RESTful API
&lt;/h3&gt;

&lt;p&gt;With DRF, creating APIs is a breeze. We'll whip up some serializers and views to handle all the data flow. Our API will be the life of the party, serving up endpoints for users, products, orders, and vendors.&lt;/p&gt;

&lt;h3&gt;
  
  
  Frontend Fun with React
&lt;/h3&gt;

&lt;p&gt;Now comes the fun part – building the frontend with React! We'll create some killer components for product listings, shopping carts, checkout pages, and more. React Router will keep the party going, handling all the page navigation like a pro.&lt;/p&gt;

&lt;h3&gt;
  
  
  Time to Get Paid: Integrating Payment Gateway
&lt;/h3&gt;

&lt;p&gt;What's a party without some cash flow, right? We'll integrate a payment gateway like Stripe or PayPal to handle online payments. Customers can pay for their orders securely, and we'll handle all the payment processing behind the scenes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Let's Go Live: Deploying the Application
&lt;/h3&gt;

&lt;p&gt;The party ain't over till it's over! Once everything's ready to roll, we'll deploy our e-commerce site to the interwebs. We'll set up our server, configure the database, and deploy both the Django backend and React frontend. Time to let the world know about our awesome new platform!&lt;/p&gt;

&lt;h3&gt;
  
  
  Wrapping Up
&lt;/h3&gt;

&lt;p&gt;And there you have it, folks! We've just built a kickass multivendor e-commerce site using Django, React, and DRF. Whether you're looking to start your own online marketplace or just wanna level up your web dev skills, this project's got it all. So go ahead, roll up your sleeves, and let's get coding!&lt;/p&gt;

&lt;p&gt;Happy hacking Buddies! 🚀🛍️&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WATCH PROJECT DEMO VIDEO BELOW&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://youtu.be/aDHK2-d0_ls"&gt;https://youtu.be/aDHK2-d0_ls&lt;/a&gt;&lt;/p&gt;

</description>
      <category>django</category>
      <category>react</category>
      <category>djangorestframework</category>
    </item>
    <item>
      <title>Send Email using Django &amp; Mailgun - Easy and Free</title>
      <dc:creator>Destiny Franks</dc:creator>
      <pubDate>Thu, 20 Apr 2023 15:32:09 +0000</pubDate>
      <link>https://dev.to/desphixs/send-email-using-django-mailgun-easy-and-free-4cc9</link>
      <guid>https://dev.to/desphixs/send-email-using-django-mailgun-easy-and-free-4cc9</guid>
      <description>&lt;p&gt;In this short posts i would be showing how to quickly send email to email addresses using django, malgun and anymail packages.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/anymail/django-anymail" rel="noopener noreferrer"&gt;Anymail&lt;/a&gt; lets you send and receive email in Django using your choice of transactional email service providers (ESPs). It extends the standard django.core.mail with many common ESP-added features, providing a consistent API that avoids locking your code to one specific ESP (and making it easier to change ESPs later if needed).&lt;/p&gt;

&lt;p&gt;Anymail currently supports these ESPs:&lt;/p&gt;

&lt;p&gt;Amazon SES&lt;br&gt;
MailerSend&lt;br&gt;
Mailgun&lt;br&gt;
Mailjet&lt;br&gt;
Mandrill (MailChimp transactional)&lt;br&gt;
Postal (self-hosted ESP)&lt;br&gt;
Postmark&lt;br&gt;
SendGrid&lt;br&gt;
SendinBlue&lt;br&gt;
SparkPost&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.mailgun.com/" rel="noopener noreferrer"&gt;Mailgun &lt;/a&gt;is an email automation service built for developers. It offers a complete cloud-based email service for sending, receiving and tracking emails sent through your websites and applications. Mailgun's intelligent inbound routing and storage enables you to know exactly where your emails are ending up.&lt;/p&gt;

&lt;p&gt;And finally &lt;a href="https://www.djangoproject.com/start/" rel="noopener noreferrer"&gt;Django&lt;/a&gt; is a free and open-source, Python-based web framework that follows the model–template–views architectural pattern and trust me it is really awesome i'd say.&lt;/p&gt;

&lt;p&gt;Let's quit talking and get to work&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Firsly, you need to install the anymail package 
```
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;pip install "django-anymail[mailgun]"&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
2. Add anymail to django installed app 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;INSTALLED_APPS = [&lt;br&gt;
    # ...&lt;br&gt;
    "anymail",&lt;br&gt;
    # ...&lt;br&gt;
]&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
3. In your **settings.py** add your `Mailgun` api keys and sanbox domains for testing purposes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;ANYMAIL = {&lt;br&gt;
    "MAILGUN_API_KEY": "api_key_305834958304534",&lt;br&gt;
    "MAILGUN_SENDER_DOMAIN": 'sandbox467c****.mailgun.org',&lt;br&gt;&lt;br&gt;
}&lt;br&gt;
EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend" &lt;br&gt;
DEFAULT_FROM_EMAIL = "&lt;a href="mailto:your-sender-email@example.com"&gt;your-sender-email@example.com&lt;/a&gt;" &lt;br&gt;
SERVER_EMAIL = "&lt;a href="mailto:your-sender-email@example.com"&gt;your-sender-email@example.com&lt;/a&gt;"  &lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
NOTE: you would need to create an account with mailgun, after successful account creation, follow these steps
i. Login to dashbaord 
ii. Sendig 
iii. Domain (suboption)
iv. CLick on the sandbox domain url
v. CLick on the api keys
vi. Copy your secret api key and paste above.

For testing purposes, you need to add the recipient email address in the box at the right side of the dashboard
Here is an image

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g7dqgljo19v8g3x2dy9o.png)

If you have a paid account, you do not need to do this.

After all these are done, create a simple function based view to send the email in views.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;from django.core.mail import EmailMultiAlternatives, send_mail&lt;br&gt;
def send_mail_func(request):&lt;br&gt;
    ...&lt;br&gt;
    send_mail("New Order!", "Hey buddy, you have a new order",&lt;br&gt;
          "&lt;a href="mailto:sender-email@gmail.com"&gt;sender-email@gmail.com&lt;/a&gt;", ["&lt;a href="mailto:reciever-email@gmail.com"&gt;reciever-email@gmail.com&lt;/a&gt;"])&lt;br&gt;
    return HttpResponse("Email Sent")&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
COnfigure the url, and visit this page on your browser.
It should be working now, it did for me.

Here is the [anymail ](https://anymail.dev/en/stable/)api [doc](https://anymail.dev/en/stable/)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>django</category>
      <category>mailgun</category>
      <category>anymail</category>
      <category>sendmail</category>
    </item>
    <item>
      <title>🔴 Build Instagram Clone using Django, HTML &amp; CSS - Tutorial</title>
      <dc:creator>Destiny Franks</dc:creator>
      <pubDate>Thu, 06 Oct 2022 00:44:12 +0000</pubDate>
      <link>https://dev.to/desphixs/build-instagram-clone-using-django-html-css-tutorial-40gm</link>
      <guid>https://dev.to/desphixs/build-instagram-clone-using-django-html-css-tutorial-40gm</guid>
      <description>&lt;p&gt;Hello guys, my name is Destiny and welcome to my &lt;strong&gt;first Post here.&lt;/strong&gt; In today's post we'd be Learning how to build an &lt;strong&gt;Instagram Clone using Django, HTML &amp;amp; CSS&lt;/strong&gt;. I Just Love to build these to practice my Django Skills and teach you guys too. I made a tutorial video to help beginners to improve there &lt;strong&gt;Django&lt;/strong&gt; skills to build &lt;strong&gt;real world projects&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Watch Complete Tutorial Here&lt;br&gt;
&lt;a href="https://youtu.be/qw5ZEvylQBA"&gt;https://youtu.be/qw5ZEvylQBA&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/qw5ZEvylQBA"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;➜ Github: &lt;a href="https://github.com/desphixs/Instagram-Clone"&gt;https://github.com/desphixs/Instagram-Clone&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note: Subscribe to My YouTube Channel, I also Build a Netfix Clone using Django, you should check it out.&lt;/p&gt;

</description>
      <category>instagramclone</category>
      <category>django</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
