SaaSitive logo

Django and React Articles

How to build SaaS application with Django and React from scratch
Contact us for any questions by filling a form.

  • Docker compose with Django 4, Celery, Redis and Postgres

    Celery Django Redis Postgres Nginx Docker

    Setup docker compose with Django 4, Celery, Redis and Postgres Deploying Django application that is using Celery and Redis might be challenging. Thanks to docker-compose tool we can prepare docker containers locally and make deployment much easier. I would like to show you my approach for constructing docker-compose configuration that can be reused in other web applications. I will be using Django version 4.1.3 and Celery 5.2.7. The nginx server will be used as reverse proxy for Django and to serve static files. Postgres database and Redis will be in the docker-compose.

  • Dynamically update periodic tasks in Celery and Django

    Celery Django-rest-framework

    Dynamically Update Periodic tasks in Celery bannerCelery is a popular distributed tasks queue. It is often used with Django framework to process heavy computational tasks in the background. You can add a single task to the queue or define periodic tasks. Periodic tasks are automatically scheduled for execution based on set time. The most common approach is to define the periodic tasks before the Celery worker is started. For example, it can be daily cleaning of the database. What if we would like to define periodic tasks dynamically? Recently, I’ve been working on a web app for uptime monitoring. The service continuously monitors a server and send email notification when the server is down. In the web app, the user can add a server address to be monitored and select the interval between requests to the server. How to dynamically add periodic tasks in Celery? I want to describe my approach in this article.

  • Email Verification View in React for DRF backend

    React Django-rest-framework Course

    DRF register new user with email verification bannerAfter registration, a user will get an email with a verification link. Why is there such a procedure? We would like to have users with valid emails only to be able to contact them. (If we don’t care about emails, we could use the username for login)

  • Django Rest Framework Register New User with Email Verification

    Django-rest-framework Course

    DRF register new user with email verification bannerIn this step, we will look closely at how the new user registration process looks and write a unit test for registration.

  • Django Rest Framework Email Verification

    Django-rest-framework Backend Boilerplate Email

    Email verification is an important part of the SaaS application. We will contact the user by email in many cases: for a password reset, announcement of new features, or for sending the invoice. During registration, a user provides the email address. We need to check if the email belongs to the user and that there are no typos/errors in it. This can be easily done by automatically sending the verification email with an activation link. Such a link contains the unique token assigned to the user. After opening the activation link in the web browser, the request is sent to the web application (Django Rest Framework). The web server compares the token from the activation URL with the token stored in the database. If they are the same, the email address is verified.

  • GDPR Overview

    Gdpr

    Equip your SaaS with legal bases so that the use of your website is safe for users and you. If you search for different sites, the Privacy Policy and Terms of Service differ from each other. The same with the cookies. Each piece of information has varying meanings for the website, and it concludes crucial statements. There’s no unique example for all websites because of the specification, the idea of webites, purpose, kind and other features, collected data.

  • GDPR Meaning - The General Data Protection Regulation

    Gdpr

    Earn users trust by respecting and securing their data. Since 2018 the European Union (EU) has imposed a new obligation on entrepreneurs to protect customers personal data. A duty for one another is a right, a tool to defend one’s rights. Each user should have the right to decide on providing information about himself, resign from using his data, delete his account. It’s a strong right that should be obeyed by everyone. Why? Because of substantial penalties, up to 20 mln euro! Be well prepared with Privacy Policy, Terms of Service, and GDPR requirements.

  • Visual Identity for SaaS

    Logo Web design Visual identity Saas

    Are you going to start your business as a SaaS? Have you got an idea and now you want to settle up your website, but you’re not a graphic designer? Start here by creating your Visual Identity Book.

  • How to generate Django Secret Key?

    Django

    How to generate Django Secret Key? Have you ever pushed to the repository a Django project with SECRET_KEY? Ups, it happens to me very often. Don’t worry. This can be easily fixed.

  • Docker-Compose for Django and React with Nginx reverse-proxy and Let's encrypt certificate

    Docker-compose Django React Nginx Let's encrypt Boilerplate

    Docker-Compose for Django and React with Nginx reverse-proxy and Let's encrypt certificate The most exciting moment of the web application development is a deployment. Your app is going live! It can also be nerve-wracking moment. Unfortunately. There are many options, many variables and configurations. It is easy to miss something … In this article, I will show you how to pack Django and React application into containers and deploy them with docker-compose. The presented approach can be reused on any Cloud Provider (AWS, DigitalOcean, Linode, GCP, Heroku) - you just need a Virtual Private Server (VPS).