Forem

Matt Layman
Matt Layman

Posted on • Originally published at mattlayman.com

1

Rendering Calendars - Building SaaS #68

In this episode, I worked on rendering a calendar of important events in a school year. We built out the appropriate data structures, and I wrote some new model methods and added tests.

On the last stream, I created a new model to track breaks in the school year. The app now shows the calendar for the school year, and I want to display the breaks on the calendar.

Before digging too far into the code, I provided my thoughts about using Docker for development from a question that came from the chat.

I created some breaks so that we could see the data on the calendar. Then we made some changes to the calendar builder to include the break days. To do that, I needed a new model method to query the school year for any breaks that happen on a particular date. We added unit tests to the new method.

Once the date was available, I adjusted the templates to display the school breaks and style them in a nice manner.

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