Training Flask unit tests

Flask routes work until they stop working, usually at the worst possible time. Unit tests catch regressions before they reach production. Flask has a built-in test client that makes testing routes clean without spinning up a real server. TL;DR: Write unit tests for Flask applications using the built-in test client: test routes, request handling, and … Read more

Simple Web3: Accessing Deployed Smart Contract on Sepolia

You deployed a smart contract and want to read its state or call functions from a web app. Web3.js with MetaMask gives you a browser-based connection to any deployed contract using its ABI and address. TL;DR: Connect to a deployed smart contract on Sepolia from a browser using Web3.js and MetaMask.Stack: Web3.js, MetaMask, Solidity, Sepolia, … Read more

Get tokens for Sepolia

You need test ETH to deploy and interact with smart contracts on Sepolia. The process is straightforward once you know which faucet to use. TL;DR: Get Sepolia testnet tokens from the Chainlink faucet to deploy and test Ethereum smart contracts.Stack: Ethereum, Sepolia testnet, Chainlink faucetLevel: BeginnerReading time: ~2 min Go to https://faucets.chain.link/sepolia, connect your wallet, … Read more

Deploy Smart Contract on Infura (Sepolia) with Hardhat and Solidity

Testing your contract on a local Hardhat network is fine during development. When you’re ready for the real testnet, you need real accounts, real ETH (testnet ETH), and a node provider like Infura to broadcast your transactions. TL;DR: Deploy a Solidity smart contract to Sepolia testnet using Hardhat and Infura.Stack: Hardhat, Solidity, Infura, Sepolia, dotenvLevel: … Read more

Swagger on Django REST

Your Django REST API works, but there is no documentation. Every new developer has to read the source code to understand the endpoints. drf-yasg generates interactive Swagger and ReDoc docs automatically from your views and serializers. TL;DR: Add Swagger and ReDoc interactive documentation to a Django REST Framework API using drf-yasg.Stack: Python, Django, Django REST … Read more

Start/Stop AWS services

Your dev RDS instance and ECS services run 24/7, including weekends when nobody is using them. That is money leaving your account for no reason. A Lambda function on an EventBridge schedule can stop them on Friday night and restart them Monday morning with zero intervention. TL;DR: Use AWS Lambda + EventBridge cron schedules to … Read more

Slack BOT Creation

Your team is already in Slack. Instead of building separate dashboards or notification systems, a Slack bot can deliver alerts, respond to commands, and surface important events right where your team works. TL;DR: Create a Slack bot using the official API, configure permissions, get a token, and send messages programmatically.Stack: Slack API, Slack Bot TokenLevel: … Read more