DEV Community

Cover image for The Home Stretch - Building SaaS #63
Matt Layman
Matt Layman

Posted on • Originally published at mattlayman.com

The Home Stretch - Building SaaS #63

In this episode, we return to the homeschool application that I'm building. I'm in the final stretch of changes that need to happen to make the product minimally viable. We worked on a template, wrote some model methods, and did a bunch of automated testing.

We started by adding students to the context of the students index page. With the students in the context, we updated the index page to display the list of students.

After the students were available, we had to check their enrolled status in a school year. That logic doesn't belong in the template so we worked out the changes needed for the view.

I updated the Enrollment model to include an is_student_enrolled class method. This change let us set boolean state in the template to decide whether to show an "Enroll" button or not.

We updated the template again to show that button. After creating the button, I proceeded to create a view called EnrollmentCreateView that we can connect to the button URL. We wrote some tests for the view and ended the stream with an unfinished template for the view.

This article first appeared on mattlayman.com.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay