Technology News

Netlify Identity, a Key Aspect to Jamstack Development

Netlify is amazing at static file hosting, but it’s really so much more than that. You can build any sort of website, even highly dynamic apps, with the Jamstack approach and static file hosting at the core.

Say you want to build a TODO app with users. Those users will need to sign up and log in. Can’t do that with a static site, right? You can, actually. Netlify helps with Netlify Identity, a robust offering they’ve had for years. Enabling it is just a few clicks in the admin UI, and they even provide auth widgets so you have to build precious little to get this working.

Showing a login widget powered by Netlify Identity.

Now you’ve got a website with authentication, great! But how do you keep going with your TODO app? You’ll need some kind of cloud storage for the data on your user’s lists. For that, you’ll have to reach outside of Netlify to find a cloud storage provider you like. Netlify has had a first-class integration with Fauna for years, so that’s a good choice.

You’ll need to communicate with Fauna, of course, and being a static site, JavaScript is how that’s going to work. Fortunately, your client-side JavaScript can communicate with your own server-side JavaScript that Netlify helps with, which is called Netlify Functions. That’s right, Netlify helps you build/deploy Lambda functions. This means you can actually have the Lambda functions do the communicating with Faunda, keeping your API keys safe.

Those are the building blocks. This is a well-worn approach, and really at the heart of Jamstack. Need a head start? Netlify has templates for this kind of thing. Here are some examples with this approach in mind: netlify-fauna-todo-app and netlify-faunadb-example. We even have a tutorial that covers that. And there’s a one-minute video demo:

[embedded content]

There you have it, a website that is every bit as dynamic as something you’d build with a traditional server. Only now, you’re building with Netlify meaning you get so many other advantages, like the fact that you’re deploying from commits to a Git repository and getting build previews, and every other amazing feature Netlify offers.

What Would it Take to Prevent CSS Tooltips From Overflowing?
Why 5G is threatening to cause flight delays

Related Articles

Some Links About CSS Gradients

Some Links About CSS Gradients
Every once in a while, the blogging zeitgiest seems to coalesce around a certain topic and it’s like the saved articles in my bookmarks folder are having a conversation. The…

Creating the DigitalOcean Logo in 3D With CSS

creating-the-digitalocean-logo-in-3d-with-css
Howdy y’all! Unless you’ve been living under a rock (and maybe even then), you’ve undoubtedly heard the news that CSS-Tricks, was acquired by DigitalOcean. Congratulations to everyone! ???? As a…

How To Leverage Your CRM For Better Productivity

how-to-leverage-your-crm-for-better-productivity
The use of customer relationship software (CRM) is bringing great changes in the corporate world. Every brand is struggling to gain maximum benefits with its smart use. However, many newly…

Stop Employee Burnout: Practical Guide for Managers

Stop Employee Burnout: Practical Guide for Managers
Employees often suffer burnout during stressful periods due to value disconnect, pressure, overload, and lack of managerial support. The signs of burnout include lack of concentration, physical fatigue, and reduced…