Python API Development – Comprehensive Course for Beginners
By freeCodeCamp.org
Published: Nov 01, 2021“
Learn Python API development in one of the most comprehensive courses ever on the topic. You will build a full-fledged API in Python using FastAPI. You will learn the fundamentals of API design including routes, serialization/deserialization, schema validation, and models. You will also learn about SQL, testing with pytest, and how to build out a CI/CD pipeline using GitHub actions.
Code: https://github.com/Sanjeev-Thiyagaraj…
Course from Sanjeev Thiyagarajan. Check out his channel: https://www.youtube.com/channel/UC2sY…
Course Contents
- 00:00 Intro
- 06:33 Project Overview
- 11:22 Mac Python Installation
- 13:15 Mac VS Code install and setup
- 16:37 Windows Python Installation
- 18:30 Windows VS Code install and setup
- 22:11 Python virtual Env Basics
- 24:35 Virtual Env on windows
- 28:56 Virtual Env on Mac
- 34:17 Install dependencies w/ pip
- 36:21 Starting FastAPI
- 39:23 Path Operations
- 53:22 Intro toman
- 57:34 HTTP Requests
- 1:07:29 Schema Validation with Pydantic
- 1:22:45 CRUD Operations
- 1:29:44 Storing in Array
- 1:34:06 Creating
- 1:38:15 Postman Collections & saving requests
- 1:39:47 Retrieve One
- 1:48:10 Path order Matters
- 1:52:46 Changing response Status Codes
- 2:01:49 Deleting
- 2:10:31 Updating
- 2:18:02 Automatic Documentation
- 2:21:34 Python packages
- 2:24:11 Database Intro
- 2:28:54 Postgres Windows Install
- 2:31:28 Postgres Mac Install
- 2:34:26 Database Schema & Tables
- 2:44:35 Managing Postgres with PgAdmin GUI
- 3:12:10 Your first SQL Query
- 3:19:43 Filter results with “where”
- 3:22:55 SQL Operators
- 3:26:38 IN
- 3:28:07 Pattern matching with LIKE
- 3:31:59 Ordering Results
- 3:36:27 LIMIT & OFFSET
- 3:39:21 Modifying Data
- 3:53:48 Setup App Database
- 3:58:21 Connecting to database w/ Python
- 4:08:00 Database CRUD
- 4:31:18 ORM intro
- 4:35:33 SQLALCHEMY setup
- 4:55:25 Adding CreatedAt Column
- 5:00:59 Get All
- 5:07:55 Create
- 5:15:50 Get by ID
- 5:19:50 Delete
- 5:22:31 Update
- 5:28:21 Pydantic vs ORM Models
- 5:32:21 Pydantic Models Deep Dive
- 5:38:57 Response Model
- 5:50:08 Creating Users Table
- 5:54:50 User Registration Path Operation
- 6:03:27 Hashing Passwords
- 6:08:49 Refractor Hashing Logic
- 6:10:32 Get User by ID
- 6:17:13 FastAPI Routers
- 6:27:34 Router Prefix
- 6:30:31 Router Tags
- 6:32:49 JWT Token Basics
- 6:47:03 Login Process
- 7:00:44 Creating Token
- 7:09:58 OAuth2 PasswordRequestForm
- 7:13:23 Verify user is Logged In
- 7:25:21 Fixing Bugs
- 7:27:59 Protecting Routes
- 7:36:17 Test Expired Token
- 7:38:13 Fetching User in Protected Routes
- 7:42:44 Postman advanced Features
- 7:50:33 SQL Relationship Basics
- 7:54:59 Postgres Foreign Keys
- 8:07:20 SQLAlchemy Foreign Keys
- 8:13:40 Update Schema to include User
- 8:17:59 Assigning Owner id when creating new
- 8:21:01 Delete and Update only your own
- 8:27:48 Only Retrieving Logged in User’s
- 8:33:37 Sqlalchemy Relationships
- 8:38:32 Query Parameters
- 8:50:46 Cleanup our main.py file
- 8:53:53 Env Variables
- 9:21:20 Vote/Like Theory
- 9:26:36 Votes Table
- 9:31:33 Votes Sqlalchemy
- 9:34:11 Votes Route
- 9:52:31 SQL Joins
- 10:15:26 Joins in SqlAlchemy
- 10:28:21 Get One with Joins
- 10:30:18 What is a database migration tool
- 10:33:45 Alembic Setup
- 11:13:50 Disable SqlAlchemy create Engine
- 11:14:28 What is CORS?
- 11:23:38 Git PreReqs
- 11:27:40 Git Install
- 11:29:23 Github
- 11:34:39 Heroku intro
- 11:35:40 Create Heroku App
- 11:40:21 Heroku procfile
- 11:44:59 Adding a Postgres database
- 11:48:42 Env Variables in Heroku
- 11:58:59 Alembic migrations on Heroku Postgres instance
- 12:02:52 Pushing changed to production
- 12:05:04 Create an Ubuntu VM
- 12:08:04 Update packages
- 12:10:47 Install Python
- 12:12:21 Install Postgres & setup password
- 12:17:28 Postgres Config
- 12:24:50 Create new user and setup python evironment
- 12:34:06 Env Variables
- 12:42:24 Alembic migrations on production database
- 12:45:57 Gunicorn
- 12:54:12 Creating a Systemd service
- 13:04:45 NGINX
- 13:10:45 Setting up Domain name
- 13:15:19 SSL/HTTPS
- 13:19:31 NGINX enable
- 13:20:06 Firewall
- 13:23:47 Pushing code changes to Production
- 13:26:09 Dockerfile
- 13:38:39 Docker Compose
- 13:48:34 Postgres Container
- 13:56:22 Bind Mounts
- 14:03:39 Dockerhub
- 14:08:08 Production vs Development
- 14:14:51 Testing Intro
- 14:17:19 Writing your first test
- 14:30:22 The -s & -v flags
- 14:31:44 Testing more functions
- 14:35:29 Parametrize
- 14:40:21 Testing Classes
- 14:48:37 Fixtures
- 14:55:40 Combining Fixtures + Parametrize
- 14:59:13 Testing Exceptions
- 15:06:07 FastAPI TestClient
- 15:14:26 Pytest flags
- 15:17:31 Test create user
- 15:25:23 Setup testing database
- 15:36:47 Create & destroy database after each test
- 15:44:18 More Fixtures to handle database interaction
- 15:50:35 Trailing slashes in path
- 15:53:12 Fixture scope
- 16:07:50 Test user fixture
- 16:14:40 Test/validate token
- 16:18:59 Conftest.py
- 16:22:09 Testing
- 17:34:15 CI/CD intro
- 17:43:29 Github Actions
- 17:49:32 Creating Jobs
- 17:57:38 setup python/dependencies/pytest
- 18:06:14 Env variables
- 18:11:19 Github Secrets
- 18:18:14 Testing database
- 18:23:42 Building Docker images
- 18:34:33 Deploy to heroku
- 18:49:10 Failing tests in pipeline
- 18:52:18 Deploy to Ubuntu
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://freecodecamp.org/news
And subscribe for new videos on technology every day: https://youtube.com/subscription_cent…
Category: Scripting and Coding
Various coding languages are the building blocks of apps, The Internet, and the Metaverse. We explore tutorials of scripting and coding.
[#Script #Coding] Google Like a Pro – All Advanced Search Operators Tutorial [2023 Tips]
Google Like a Pro – All Advanced Search Operators Tutorial [2023 Tips]
By freeCodeCamp.org
Published: Jan 09, 2023“
Learn how to become more effective at searching the web!
In this video, student Seth Goldin discusses how Google works, how to ask the right questions and identify the best results, and using built-in search operators to power up your search!
Read more like this from Seth: https://goldin.io/blog
Course Contents
- (00:00) Intro
- (03:14) How Does Google Work
- (09:40) Asking the Right Questions
- (14:41) Identifying the Right Answers
- (23:40) What Are Search Operators?
- (24:43) Matching Operators
- (28:23) Date Operators
- (29:58) Source Operators
- (33:29) Boolean Operators
- (34:03) In-(URL/Title/Text/Anchor) Operators
- (37:02) Utility Operators
- (41:05) Using and Combining Search Operators
- (44:02) Google Lens and Image Search
- (46:29) Specialized Search Engines
- (51:21) Keyboard Shortcuts
- (52:38) Wrapping Everything Up
Disclaimer: This course is not affiliated with Google.
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://freecodecamp.org/news
”
[#Script #Coding] How To List & Reveal An ENTIRE NFT Collection (10,000+) Without Coding Knowledge on OpenSea
How To List & Reveal An ENTIRE NFT Collection (10,000+) Without Coding Knowledge on OpenSea
By codeSTACKr
Published: Jan 07, 2022“
My first NFT video went to the moon! There were so many people watching and coding along with it. In this video, we are going to continue where we left off and I’ll show you how to list your NFTs for sale and reveal them after they are sold.
All of the code needed in in the GitHub link below.
The previous video: https://youtu.be/AaCgydeMu64
RESOURCES
Code from this video: https://github.com/codeSTACKr/video-s…
Mini Mouse Macro: https://sourceforge.net/projects/mini…Check out the collection I made:
https://codecats.xyz
https://bit.ly/CodeCats
Join my Discord community: https://discord.gg/A9CnsVzzkZ
Become A VS Code SuperHero Today: https://vsCodeHero.com
Tools I use:
codeSTACKr Theme: https://marketplace.visualstudio.com/…
STACKr Code Font (Exclusive to my VS Code Course – https://vsCodeHero.com)
SuperHero Extension Pack: https://marketplace.visualstudio.com/…
Timestamps
- 00:00 – Intro
- 00:32 – node-fetch issue
- 01:43 – Layer Questions
- 02:38 – How to list your NFT for sale on OpenSea
- 03:11 – Edit your Collection Details
- 03:28 – List for sale with a macro
- 06:58 – Reveal your NFT after purchase
- 08:55 – What next?
”
[#Script #Coding] Speech Recognition in Python Tutorial – Full Course for Beginners
Speech Recognition in Python Tutorial – Full Course for Beginners
By freeCodeCamp.org
Published: Jun 08, 2022“
Learn how to implement speech recognition in Python by building five projects. You will learn how to use the AssemblyAI API for speech recognition.
Code: https://github.com/AssemblyAI-Examples…
Course created by Misra Turp & Patrick Loeber. They post regularly on the AssemblyAI YouTube channel: https://www.youtube.com/c/AssemblyAI
Course Contents
- (0:00:00) Introduction
- (0:01:37) Audio Processing Basics
- (0:26:37) Speech Recognition in Python
- (0:52:48) Sentiment Classification
- (1:09:58) Podcast Summarization Web App
- (1:40:21) Real-time Speech Recognition + Voice Assistant
”
[#Script #Coding] OpenStack Tutorial – Operate Your Own Private Cloud (Full Course)
OpenStack Tutorial – Operate Your Own Private Cloud (Full Course)
By freeCodeCamp.org
Published: Jul 11, 2022“
Learn how to use OpenStack and manage your own private cloud.
Start working with OpenStack using OpenMetal here: https://openmetal.io/cloud-trial-youtube-exclusive/
OpenStack is an open source software that provides cloud infrastructure for virtual machines, bare metal, and containers. In this course you will gain a core understanding of what OpenStack is and you will learn the basics of setting up and administering OpenStack using the OpenMetal platform.
Beau Carnes created this course.
This course was made possible by a grant from OpenMetal.
Course Contents
- (00:00) What is OpenStack?
- (02:25) OpenStack Services
- (04:42) Set Up OpenMetal
- (09:17) Access OpenStack Dashboard
- (13:42) Create OpenStack Project
- (15:42) Create OpenStack User
- (17:56) Manage and Create Images
- (21:54) Create a Private Network and Router
- (25:25) Visualize Network Topology
- (26:17) Create a Security Group
- (27:33) Set Up SSH Access
- (31:26) Create Instance
- (37:15) Log In to Instance
- (38:57) Install and Use OpenStack CLI
- (46:29) List Servers Using CLI
- (47:25) Using Various CLI Commands
- (50:16) How Private Clouds are Deployed
- (51:27) Understand Ceph
- (53:01) Check Status of Ceph Cluster
- (54:53) View Used Resources
”
[#Script #Coding] Code an iPhone App with Swift – Full Course on iOS Swift Programming for Beginners
Code an iPhone App with Swift – Full Course on iOS Swift Programming for Beginners
By freeCodeCamp.org
Published: Dec 07, 2022“
Learn the Swift programming language in this full tutorial for beginners.
In this video, we will go through every modern aspect of Swift as a programming language including, variables, constants, functions, structures, classes, and protocols. extensions, asynchronous programming, generics, and much more. This video will lay the foundation for learning Swift for those who are not familiar with Swift already.
You can follow along with this video on macOS, Linux, and Windows. On Linux and Windows, you will need to download the Swift toolchain from https://swift.org and run the examples manually by invoking Swift from Terminal using your favorite code editor such as Visual Studio Code.
Vandad Nahavandipoor created this course.
Vandad on YouTube: https://youtube.com/c/vandadnp
Vandad on Twitter: https://twitter.com/vandadnp
Vandad on LinkedIn: https://linkedin.com/in/vandadnpContents
- (0:00:00) Introduction
- (0:06:49) Variables
- (0:29:46) Operators
- (0:46:55) If and else
- (1:05:08) Functions
- (1:23:58) Closures
- (1:52:08) Structures
- (2:17:58) Enumerations
- (2:59:21) Classes
- (3:24:51) Protocols
- (3:47:48) Extensions
- (4:00:06) Generics
- (4:32:44) Optionals
- (4:53:39) Error Handling
- (5:39:35) Collections
- (6:17:17) Equality and Hashing
- (6:38:46) Custom Operators
- (6:50:53) Asynchronous Programming
- (7:04:38) Outro
”
[#Script #Coding] What the Heck is ERC!? Ethereum Blockchain
What the Heck is ERC!? Ethereum Blockchain
By codeSTACKr
Published: Feb 24, 2022“
Become A VS Code SuperHero Today: https://vsCodeHero.com
Join my Discord developer community: https://discord.gg/A9CnsVzzkZWhat does ERC stand for??
“Ethereum Request for Comment”
Tools I use:
- codeSTACKr VS Code Theme: https://marketplace.visualstudio.com/…
- STACKr Code Font (Exclusive to my VS Code Course – https://vsCodeHero.com)
- SuperHero Extension Pack: https://marketplace.visualstudio.com/…
Show support!
- PayPal: https://paypal.me/codeSTACKr
Watch Next:
- Playlist: Web Development For Beginners – https://www.youtube.com/watch?v=Ez4yH…
Connect With codeSTACKr:
- Website: https://www.codestackr.com
- Twitter: https://twitter.com/codeSTACKr
- Instagram: https://instagram.com/codeSTACKr
- Facebook: https://facebook.com/codeSTACKr
”
[#Script #Coding] Microservices with FastAPI – Full Course
Microservices with FastAPI – Full Course
By freeCodeCamp.org
Published: Mar 24, 2022“
Learn how to create a simple Microservices app using Python FastAPI with React on the frontend. We will use RedisJSON as a Database and dispatch events with Redis Streams. RedisJSON is a NoSQL database just like MongoDB and Redis Streams is an Event Bus just like RabbitMQ or Apache Kafka.
Course from Scalable Scripts. Check out their channel: https://www.youtube.com/c/ScalableScripts
Code: https://github.com/scalablescripts/fa…
Course Contents:
- (00:00) Intro
- (01:30) App Demo
- (03:29) Inventory Microservice Setup
- (05:46) Redis Cloud
- (07:13) Connect to Redis Cloud
- (09:04) Products CRUD
- (20:05) Payment Microservice Setup
- (25:40) Internal Http Requests
- (30:54) Background Tasks
- (36:50) Redis Streams
- (58:34) Frontend
”
[#Script #Coding] Think Like a Computer Science Professor
Think Like a Computer Science Professor
By freeCodeCamp.org
Published: Jul 20, 2022“
See how to think like a computer science professor. You will observe Radu’s thought process as he codes a project for the first time. Many tutorials demonstrate how to build something that the instructor has already fully planned out beforehand. But in this video, you learn what really goes into building a project from scratch. And he does it all without even referencing the Internet.
Radu Mariescu-Istodor has a PhD in computer science. He teaches computer science at a university as well as on his YouTube channel.
Radu’s channel: https://www.youtube.com/c/RaduMariesc…
Radu’s website: https://radufromfinland.comContents
- (00:00:00) Intro / showcase
- (00:01:32) Quick planning
- (00:03:25) Canvas project setup
- (00:09:21) Trying to remember how drawImage works :-))
- (00:18:58) Figured out I need to let it load first
- (00:20:29) Helper code for getting coordinates
- (00:22:27) Beginning procedural drawing
- (00:29:16) Normalizing the space for symmetrical drawing
- (00:48:32) Control point for head rotation
- (00:56:48) Slider for head x rotation
- (01:13:44) Rotating the head on X
- (01:17:27) Rotating the head on Y
- (01:28:14) Adding more control points
- (01:59:31) Drawing eyes
- (02:26:59) Styling the eyes
- (02:42:42) Drawing the beard
- (03:22:51) Drawing the nose
- (03:27:25) Spoiler (I never get the nose to look better)
- (03:31:35) Drawing hair
- (03:51:48) Skin, Neck & Body
- (04:07:43) Drawing the clothes
- (04:24:15) Some fine-tuning
- (04:43:00) Drawing the ears
- (04:53:50) Polishing and commenting code
- (05:17:41) Camera setup
- (05:34:27) Image processing: Isolating blue pixels
- (05:49:36) Moving avatar with camera
- (05:55:59) Plan for day 2 (Important)
- (06:02:32) Code refactoring with OOP
- (06:15:43) Ditching the idea* above and sticking to point A
- (06:43:07) Linear algebra
- (06:52:20) Particle system
- (07:08:57) Constraints (segments)
- (08:00:50) Dynamic front hair skeleton
- (08:17:30) Dynamic back hair skeleton
- (08:31:43) Sliders to control the mouth
- (08:45:09) Real-time face tracking
- (09:42:58) Recognizing facial markers
- (10:03:58) Solving the ‘fidgiting’ problem by averaging
- (10:09:14) On averaging points
- (10:10:14) Side-points of mouth
- (10:11:56) Quick demo and quick planning
- (10:13:41) Working with pre-recorded video
- (10:24:03) Multi-input support in interface
- (10:57:40) Styling front hair
- (11:18:13) Styling back hair
- (11:35:18) Adding side hair
- (11:40:56) Debugging option
- (11:50:40) Shirt strings
- (12:00:21) Extensive testing
- (12:01:34) Final touches
- (12:09:50) Trying to fix nose, then gave up (too tired & found some bug)
- (12:30:46) Final testing, writing instructions, and last thoughts
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://freecodecamp.org/news
And subscribe for new videos on technology every day: https://youtube.com/subscription_cent…
”
[#Script #Coding] What is ChatGPT? Can it Help You? It built a To-Do App.. Sorta
What is ChatGPT? Can it Help You? It built a To-Do App.. Sorta
By codeSTACKr
Published: Dec 19, 2022“
Become A VS Code SuperHero Today: https://vsCodeHero.com
Join my Discord developer community: https://discord.gg/A9CnsVzzkZEveryone is talking about ChatGPT, so I had to give it a try. Let’s see what it’s capable of.
What’s ChatGPT? Let’s ask ChatGPT what it is..
It says it’s a variant of the Generative Pre-trained Transformer language model that is fine-tuned for chatbot-style communication.
It’s part of OpenAI and the GPT-3 family.
It goes on to explain what GPT-3 is.
ChatGPT is specifically for conversations and can be used in chat-bots.
And it uses context-aware responses taking into account previous exchanges in conversation.
What can ChatGPT help us to do? Here are some examples:
– Explain quantum computing in simple terms.
– Write a short story.
– Ask it questions like: How do I make an HTTP request in JavaScript?
– Build an entire application in any programming language!!
Tools I use:
- codeSTACKr VS Code Theme: https://marketplace.visualstudio.com/…
- STACKr Code Font (Exclusive to my VS Code Course – https://vsCodeHero.com)
- SuperHero Extension Pack: https://marketplace.visualstudio.com/…
Timestamps
- 00:00 – Intro
- 00:10 – What is ChatGPT?
- 01:09 – What Can ChatGPT Do?
- 01:56 – Testing ChatGPT
- 02:49 – Have ChatGPT Build a To-Do App using Next.js and Tailwind CSS
- 11:25 – A Short Story Written by ChatGPT & Generated by Descript
Show support!
- PayPal: https://paypal.me/codeSTACKr
Watch Next:
- Playlist: Web Development For Beginners – https://www.youtube.com/watch?v=Ez4yH…
Connect With codeSTACKr:
- Website: https://www.codestackr.com
- Twitter: https://twitter.com/codeSTACKr
- Instagram: https://instagram.com/codeSTACKr
- Facebook: https://facebook.com/codeSTACKr
”









