May 12, 2020
January 3, 2022
This is part two of our COVID-Q overview. COVID-Q is an app we built to help manage a queue system for drive-up testing for COVID-19. If you’re interested in why we built the solution, see part 1.
As an agency, we often spike out technical solutions with internal projects to prove them out before recommending on client projects. This project was an opportunity to put a few things through the paces and evaluate them for future use with our clients.
For this project, we used some of our favorites along with some new tools.
Some of our favorites include:
Tools we are Evaluating
A CMS and basic admin area provided by Sanity.io. The site re-deploys to Now via a webhook when editors publish content. We also like DatoCMS but Sanity is a bit more configurable and flexible. Sanity can also be self-hosted, and this was a good opportunity to put it through the paces.
We were less than impressed with Prisma 1. In fact, it caused a lot of issues on the project we used it on. That said, Prisma 2 is much more focused and has proven really promising. We encountered a few small issues with migrations, but the overall setup works well. We will continue to evaluate Prisma 2.
We use Apollo Server on most client applications. We tested out Urql on this project but did not find any benefits over Apollo. We likely won’t use it in the future. For simple GraphQL calls in scripts or times where a full-fledged client provides little benefit, we prefer graphql-request.
Now deploy buttons allow for a one-click clone from GitHub and instant deployment. We are using this to help spin up new COVID-Q sites for interested companies quickly.
Why use both a CMS and a database on this project? Couldn’t you just store all of the content in the CMS?
We absolutely could. We chose not to do this for two reasons. First, using a separate database helps us with better HIPAA compliance should we need it. Storing patient data within a CMS like Sanity is less secure since we don’t have control over how the data is accessed. We’re not actually storing any Patient Health Information (PHI) in this app, but we wanted the flexibility should we need to start doing so in the future.
To keep the admin section of the site easy to use, we call our main API to fetch data for things like appointments and tokens.
Isn’t GraphQL overkill for this type of project?
GraphQL is definitely not necessary for the size of the API we’re working with. We decided to keep everything in GraphQL for a few reasons:
Why use a Serverless infrastructure?
First, it keeps costs low. Second, the infrastructure will automatically scale to meet demand should it need to. Because we were providing a service to others, we wanted it to be maintenance-free.
The most important part of this app is certainly not the technology behind it. That said, we hope to help other development teams by sharing our insights as we’re evaluating new technologies for internal projects and client apps.
January 3, 2022
Updated and curated content to get you started in the world of AI with Alexa Skills.
December 8, 2021