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.

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

Top comments (0)

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

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay