Posts

Showing posts from June, 2022

Sending Emails from Python Django using your gmail account

Image
Normally applications need to send the verification code or welcome messages to the registering user for their application using emails.  Sending email is not hard in if we are developing the backend of the application using Python or Python framework like Django.  As the first step we need to configure our gmail account to allow us to send email using code without login in to gmail and sending manually.  Login to your gmail account  Click on the profile icon shown in the top right corner of the browser window in gmail Click on "Manage your Google Account" button like shown in the below image. Choose Security tab in the screen shown after the above step Scroll down to see the section "Signing in to Google" section Enable two step verification there by giving your mobile number or some other method of verification.  Once clicked on Get Started button on the popup ti will ask you to login again. Once the above step finished you can see a new item in the "Signing ...

Setup Google Analytics with React JS web application - Part 1

Image
We need to navigate to the analytics page of Google first using the link  https://analytics.google.com . If we are new to google analytics (ga) we will see a welcome screen like the below image. Once click on the "Start measuring" button it will show an account setup screen where we need to enter any name for "Account name" field then tick on "Google products and services" option if needed and click on "Next" button. The Property setup window will show where you have to enter any value which represents your web application. After entering a name click on "Next" button. It will ask for some details about the business like which category the business belongs to and the business size and some other data. Once fill it click on the Create button shown bottom part of the screen. Once click on Create button it will pop up a message where we need to accept the terms of service. There might be more than one check box that needs to be ticked. Scr...

create-react-app inside a already created folder

Image
 Once we create a GitHub repository and cloned it into the local machine for development. We can use the same repository to hold the react app. If we are using  create-react-app  most of the time we use it with a project name which will be the folder name for the react project. In this case we use something like  create-react-app my-app  here the folder named my-app will be created and will hold the react project. Anyhow If we wanted to create a react project inside the cloned repository from GitHub or already named directory we could do it using  create-react-app .  command (notice the '.'). It will create put all the react code inside already created or cloned folder.