Going further
Wrap up
What you built, how to check the whole project in three commands, what a production version adds, and where to take it next.
You now have a contract app for Pinewick Systems that runs on its own server. It reads intake notes, drafts the right contract section by section, sends anything doubtful to a person, and gets the contract signed online. Evals check the step that matters most, and every signed PDF is stored exactly as the client signed it.
What you built
Check the whole project
Run the linter, the type check, and a production build, then the full stack:
cd backend && uvx ruff@0.15.21 check app evals
cd ../frontend && pnpm typecheck && pnpm build
cd .. && docker compose up -d --buildAll three pass, and the walkthrough from the deploy page works end to end.
Where to take it next
- Let the admin edit or regenerate a section before Send. The hash at Send already protects everything after that.
- Write the sections in parallel instead of one after another.
- Add a contract type. It is a new entry in
TEMPLATESand a few new prompts, with no new code on the signing page. - Grow the samples with every intake the app gets wrong, and run the evals after each prompt change.
What production adds
This is the simple version. A production system adds a domain with HTTPS, an email service instead of a Gmail account, signing links that expire and are stored as hashes, PDFs in object storage, and Alembic migrations, so a column change never means resetting the database. That is what the GenAI Launchpad and the GenAI Accelerator cover.