Skip to content

Instantly share code, notes, and snippets.

View zakeer's full-sized avatar
🏠
Working from home

Zakeer Hussain zakeer

🏠
Working from home
  • Hyderabad, India
View GitHub Profile

βœ… What is API Authentication vs Authorization?

Term Meaning
Authentication Proving who you are. Like logging in with a username/password.
Authorization Checking what you're allowed to do. Like whether you can access admin data.

πŸ” Common Types of API Authentication

Python Exercises

Exercise 1: Calculate the Multiplication and Sum of Two Numbers

Given two integer numbers, write a Python code to return their product only if the product is equal to or lower than 1000. Otherwise, return their sum.

Given 1:

number1 = 20
number2 = 30

Soar Task Financial Dashboard

Project Overview

The task is to build a financial dashboard application with multiple views for the user. The application should have responsive design and functionality as shown in the provided Figma Link. The main purpose of this application is to display an overview of financial activities, card details, transactions, statistics, and user settings.

Let's design a MySQL database schema for skill ratings at our Software Development Training Institute. We need to capture students, their skills, and the rating they've received for each skill. Here's a schema design that addresses this, along with explanations and considerations:

Tables:

  1. Students:

    • student_id (INT, PRIMARY KEY, AUTO_INCREMENT): Unique identifier for each student.
    • first_name (VARCHAR(255), NOT NULL): Student's first name.
    • last_name (VARCHAR(255), NOT NULL): Student's last name.
  • email (VARCHAR(255), UNIQUE, NOT NULL): Student's email address (for contact and login purposes).

Okay, here's a script based on the previous outline, suitable for a session on Playwright CI/CD with GitHub Actions. Remember to adjust the pacing and content based on your audience's engagement and questions.

(Slide: Title - Automating Playwright Tests with CI/CD using GitHub Actions)

You: Hello everyone, and welcome to this session on automating Playwright tests with CI/CD using GitHub Actions. In today's fast-paced software development world, releasing high-quality software quickly is crucial. CI/CD plays a vital role in achieving this, and we'll explore how to leverage it with Playwright for robust test automation.

(Slide: Introduction to CI/CD)

You: Let's start with the basics. What exactly is CI/CD? CI stands for Continuous Integration, which is the practice of frequently merging code changes into a central repository and running automated builds and tests. CD can mean either Continuous Delivery or Continuous Deployment. Continuous Delivery means that changes are automatically b

API Integration with Authentication & Role-Based Access Control (RBAC) – Interview Q&As

This section covers secure API integration, authentication (JWT, OAuth), and RBAC (Role-Based Access Control) for real-world applications like admin dashboards, multi-user platforms, and SaaS applications. πŸš€


🟒 Authentication & API Integration

1. What are the best practices for securely integrating APIs in a React app?

Answer:

React Interview Questions Based on a Real-World Project

Below are end-to-end React interview questions and answers, covering project setup, architecture, state management, API integration, testing, performance optimization, and deployment – all within the context of a real-world e-commerce web app (like Amazon or Flipkart). πŸš€


🟒 Project Setup & Architecture

1. How would you set up a new React project for an e-commerce web app?

Answer:

React Testing Strategies & Best Practices – Interview Q&As

Testing is a critical part of React development, ensuring code reliability, maintainability, and bug prevention. Below are the most commonly asked interview questions and answers covering unit testing, integration testing, E2E testing, and testing libraries like Jest, React Testing Library, and Cypress πŸš€.


🟒 Fundamentals of React Testing

1. What are the different types of tests in React applications?

Answer:

React Design Patterns & Best Practices – Interview Q&As

Below are React design patterns & best practices interview questions covering component design, reusability, architecture patterns, and real-world best practices πŸš€


🟒 Component Design Patterns

1. What are the different types of React component design patterns?

Answer:

React Advanced Topics – Interview Q&As

Below are React advanced interview questions covering Context API, Performance Optimization, Redux, and more πŸš€


🟒 Context API & State Management

1. What is the Context API, and how does it work?

Answer: