6 Generating a software backend with Tabnine

 

This chapter covers

  • Creating and maintaining persistent sessions for test-takers
  • Implementing backend functionality in Flask with database integration
  • Leveraging Tabnine to generate code solutions and fix errors
  • Crafting effective prompts to troubleshoot technical challenges
  • Building an interactive interface that maintains user state

We set up our practice test application using BlackboxAI for the database and question selection. Now, we will create a user-friendly experience. We’ll create the session management and user interface components. These will make our question database interactive.

We’ll use Tabnine as our AI coding assistant. It will help us fix bugs, add new features, and simplify the development process. Before we move on, let’s review our progress with the user stories:

6.1 Creating a Session and Our First Bug

6.2 Creating an Index Page

6.2.1 Persisting the session

6.2.2 Refactoring session creation

6.2.3 Refactoring our question set method

6.2.4 Creating an end session function that ends the test

6.3 Summary