WebDevPro #17: .NET Core Console App with ChatGPT, Git Shortcuts , Perfecting Pull Requests and Idempotent APIs.
Hi,
Welcome to the _webdevpro! We start with community discussions on .NET Core Console App with ChatGPT, Git Shortcuts , Perfecting Pull Requests and Idempotent APIs.
In our tutorial, we cover Working Django templates from the book Web Development with Django - Second Edition to boost your Web development game. Don't miss our repository of ChatGPT resources - a weekly module covering trending ChatGPT tools. We also bring you the latest in Web Dev, with releases from Django, Laravel, and Spring to help you keep up to date!
We have listened to the _webdevpro readership and we think this is something you have been searching for. If you liked this installment in our new series, fill in our survey below and win a free Packt credit. We're committed to bringing our readers exactly what they want, so help us make the right choices.
Take the Feedback Survey and Get Free Packt Credit!
Thanks,
Apurva Kadam
Editor-in-Chief, Packt
Web Dev Community Insights
A .NET Core Console App with ChatGPT - Curious about AI-powered applications? In this blog, we'll take you on a journey to create a console-based app using ChatGPT, a powerful language model. Get ready to harness the magic of ChatGPT in your projects and discover a whole new world of interactive possibilities. Read on!
Building an email automation system with React Flow and Resend – In this tutorial, you'll learn how to build an email automation system to message people with a sequence of messages every 10 minutes. You will learn to build a client diagram representing the flow of emails with React Flow and send email according to the flow every 10 minutes with Resend. Learn more.
Mastering Git Shortcuts: A Guide to Git Aliases - Are you tired of typing lengthy Git commands? Git aliases are here to save the day! They let you establish shortcuts for common commands, thus enhancing your productivity. Explore how to make the most out of them!
Inventory and Order Management App with Google Sheets and ToolJet - When it comes to building a cost-effective supply chain management tool, the combination of Google Sheets as a database and ToolJet as a powerful low-code platform can be a game-changer. In this tutorial, we will look into the process of using Google Sheets and ToolJet to construct a robust and streamlined inventory and order management app which can be tailored to your specifications. Read the tutorial.
A Guide to Perfecting Pull Requests - Pull requests capture the narrative of your code changes. They are a conversation between you and your reviewers and as the author of the story you want to make sure the process of reviewing your PR is as easy as possible. They should concisely describe our motives and thoughts behind our changes all the while pre-emptively answering any questions our reviewers may have. Learn about pull requests here.
Creating Resilient Systems with Idempotent APIs - Idempotency is a property of API design that ensures that making the same request multiple times produces the same result as making it once. Idempotent APIs play a crucial role in ensuring the reliability, consistency, and efficiency of a system. In this blog, you will read about real world cases, importance of Idempotency, combination with HTTPS methods and idempotency keys. Explore now!
5 Awesome Resources for React JS - This blog discusses some useful libraries and UI toolkits for working with React JS. You can use these resources help you in your upcoming projects and increase your productivity. Checkout these React JS resources.
Web Development Motivation
"Web development is like being a parent: it's a constant battle between cleaning up the mess and trying new things your kids will love."
- Scott Hanselman, Author and Speaker
Food for Thought...
Scott Hanselman is a well-known software engineer, author, and speaker in the technology industry. This humorous quote compares web development to the challenges and joys of parenting, highlighting the ever-changing and sometimes chaotic nature of building and maintaining websites.
WebDev GitHub Resources
ChatGPT is still trending and the resources and tools to make the most out of this LLM are just getting better with every passing day! So starting today, WebDevPro will highlight ChatGPT resources through a week-on-week ChatGPT series. Here is the first bunch of resources featuring web apps
AgentGPT - Autonomous AI agents in your browser.
OP Vault ChatGPT - Give ChatGPT long-term memory using the OP Stack (OpenAI + Pinecone Vector Database).
chatgpt-demo - Minimal web UI for ChatGPT.
pdfGPT - Interactive conversations with the contents of PDF files.
Chat Chat - Your own unified AI interface.
VLog - Convert videos to documents.
Ask-Anything - ChatGPT with video understanding and communication.
TaskMatrix - Combines ChatGPT with Visual Models for enhanced image-chat interactions.
OpenChat - Personalized ChatGPT chatbot.
gpt-code-ui - Code interpreter integrated with ChatGPT.
ai-chatbot - Personalized ChatGPT AI chatbot.
Tell us what you think!
We're always looking for ways to improve, and your feedback is invaluable to us. Would you take a few minutes to share your thoughts about the newsletter? Your responses will help us make the newsletter even better.
Provid feeedback through this survey, complete the questionnaire and receive a free credit in your Packt account!
Interested in Giving Us Feedback?
Web Development Tutorial
Working with Django templates
Hardcoding HTML inside Python modules is not a good practice, because as the amount of content to be rendered on a web page increases, so does the amount of HTML code we need to write for it. Having a lot of HTML code among Python code can make the code hard to read and maintain in the long run.
For this reason, Django templates provide us with a better way to write and manage HTML templates. Django’s templates not only work with static HTML content but also with dynamic HTML templates.
Django’s template configuration is done in the TEMPLATES variable present in the settings.py file. This is how the default configuration looks:
TEMPLATES = [
{
'BACKEND':
'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]Let’s go through each keyword present in the preceding snippet:
'BACKEND': 'django.template.backends.django.DjangoTemplates': This refers to the template engine to be used. A template engine is an API used by Django to work with HTML templates. Django is built with Jinja2 and theDjangoTemplatesengine. The default configuration is theDjangoTemplatesengine and Django template language. However, this can be changed for a different one if required, such as Jinja2 or any other third-party template engine. For our Bookr application though, we will leave this configuration as it is. ...read more.
What's Happening in Web Dev?
Django
Django bugfix release: 4.2.4 - The 4.2.4 bugfix release is here. The release package and checksums are available from our downloads page, as well as from the Python Package Index.
Laravel
Filament v3 just launched - Filament v3 is now out and includes many new features, a completely refreshed UI, a new website, Livewire 3 support, and more!
Laravel Prompts is Now Available in Laravel 10.17 - The Laravel team released v10.17 with Laravel Prompts, a config:show Artisan command, a Collection method to ensure types and more.
Spring
Spring Cloud 2022.0.4 (aka Kilburn) Is Available - The General Availability (RELEASE) of the Spring Cloud 2022.0.4 Release Train is available today. The release can be found in Maven Central. You can check out the 2022.0.4 release notes for more information.
See you next week!


