Prompt Genius: Generate Python Web Applications using AI
With Membership
Suggested price

Prompt Genius: Generate Python Web Applications using AI

About the Book

Your new pair programmer is AI. This book demystifies how you can use this breakthrough technology today. Learn how to leverage ChatGPT, Google Bard, or Bing to streamline coding, debugging, and testing.

I was skeptical at first. And then I dug into the AI tools and found I was amazed at what they could do. In this groundbreaking book, you'll learn how to rapidly build software using a collection of expertly crafted prompt templates. These design and coding prompts will empower you to create entire applications with ease. The book uses Python and the Django web framework.

Includes a Prompt Template Checklist (Cheatsheet)

Get all of the prompts you need to design and develop great applications in one handy checklist. The book includes specialized prompts to:

  • Start a new web project in minutes
  • Design and generate Model classes
  • Implement use cases, including the front-end user interface
  • Implement business services and REST APIs
  • Add security mechanisms such as authentication and authorization

Who is this book for?

  • Experienced developers that want to stay ahead of the technology curve and strengthen their skills in new ways
  • Junior developers who want to kickstart their careers and build their skillset quickly
  • Team leads and managers who want to boost productivity on their teams.
  • Solopreneurs that have a startup idea and want to learn how to build it quickly

Learn how to use generative AI capabilities within your applications

Code examples are provided for ChatGPT and Bard, including reusable helper functions to speed up the process so you can use them in your application.

Not familiar with Python or Django? That's ok.

Neither was I before I started using AI-assisted coding. Data science and AI applications are increasingly supported using Python libraries, so it seemed like a natural fit. I could run Google searches to learn how to do things, but AI not only showed me how to implement applications in these languages, it taught me the patterns as well.

Level up your coding skills and unleash your potential as you delve into a treasure trove of ready-to-use templates. These prompts work with all types of applications including e-commerce, chatbots, and data analytics. The book walks you through the process step-by-step.

About the Author

Darren Broemmer
Darren Broemmer

Darren is the founder and president of TBG Publishing. He has worked as a software engineer and development evangelist throughout his career, and he writes about technology, science, and puzzles.

Table of Contents

    • 1 AI templates to build your entire application
      • 1.1 The state of the world in AI assisted coding
      • 1.2 How software engineering roles change when using AI
      • 1.3 Your code may vary
    • 2 Setup your environment
      • 2.1 Install Python
      • 2.2 Install an IDE (i.e. PyCharm)
      • 2.3 Create your OpenAI account
      • 2.4 Install the CodeGPT plugin
      • 2.5 Idea, set, let’s go
    • 3 Prompt One: Start your web project (with Django)
      • 3.1 The Model-View-Controller (MVC) Architectural Pattern
    • 4 Prompt Two: Create your models
      • 4.1 Designing Models
      • 4.2 Err on the side of too much detail in prompts
      • 4.3 Running Django test cases
    • 5 Prompt Three: Implement your first use case
      • 5.1 Define the user personas
      • 5.2 Define what actions each user person can take
    • 6 Prompt Four: Implement a business service
      • 6.1 Implement a generative AI service
      • 6.2 Parse the data returned from a generative AI function
    • 7 Prompt Five: Implement a complex use case
      • 7.1 Modify our existing implementation to create multiple quiz questions
      • 7.2 Modify the existing page style
    • 8 Prompt Six: Implement a use case that uses generated data
      • 8.1 Persist the results to the database
    • 9 Prompt Seven: User authentication
    • 10 Prompt Eight: Reporting use case
      • 10.1 Creating a graph based on your data
    • 11 Prompt Checklist

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub