What's next?
Issue Tracker is finished. This lesson sums up what you built and where to take it next.
What You Built
Issue Tracker now:
- reads its settings from
.envthrough a config dataclass, - serves a JSON API built with
Routerandresource(), - stores users, projects, issues and comments in SQLite, with tables made by migrations and sample data from seeders,
- groups issues into projects and gives each one a key like
WEB-1, - checks every request with
FormRequestrules, includingexists()lookups in the database, - moves issues through a workflow that lives in one map and is enforced by an
after()hook, - edits and deletes issues, with a partial
PATCHthat only touches the fields you send, - loads an issue with its reporter, assignee, comments and comment authors in a fixed number of queries,
- filters, searches, sorts and pages through issues from a validated query string,
- shows a project board in Vue, rendered with Inertia, that uses the same models and rules as the API,
- and has tests that prove those rules against their own database.
Those pieces are most of what a real app needs. The rest builds on the same ideas: a provider to switch a feature on, a config class to set it up and artisan to do the chores.
Ideas to Try
- Edit projects. Give
ProjectControllerupdateanddestroymethods and add them toonly=. - Labels. Add a
labelstable and anissue_labeltable, useBelongsToManyonIssue, and add a?label=bugfilter. - A "Blocked" status. Add it to
IssueStatus, toWORKFLOWand to the board'scolumns. Your workflow test still guards the old paths. - Comments on the board. Open an issue in a side panel that shows its thread, and add a form to reply.
- Activity history. Write a row to an
issue_eventstable on every transition and assignment, and return it with the issue. - Who's acting. Replace
reporter_idandauthor_idin request bodies with the logged-in user. The separatefastapi-startkit-authpackage adds sign up, log in and protected routes. - Switch databases. Point
DB_CONNECTIONat PostgreSQL or MySQL and install the matching extra. Your models don't change. The database docs show the settings.
Keep Reading
- Configuration covers
env(), environment files and config classes. - FastAPI covers routers,
resource()and its options. - Migrations, Models, Relationships and Seeding go deeper into the ORM.
- Casts covers how columns are turned into Python values.
- Inertia covers shared data, redirects, flash data and validation errors.
- HTTP tests and database tests list every assertion.