DEV Community

Cover image for Making a portfolio website using Jamstack architecture
Shantanu Kaushik
Shantanu Kaushik

Posted on

Making a portfolio website using Jamstack architecture

This is the first post in a 3-part series where I show you how to create your own portfolio website using the Jamstack architecture.

In this series, you will learn:

  • What Jamstack is and why it is a good choice for portfolio websites
  • How to manage the backend of your portfolio website using Sanity CMS
  • How to create the frontend of your portfolio website using Gatsby and deploy it to Netlify

By the end of this series, you will have a fully functional portfolio website that is fast, secure, and scalable.

Before we start I would like you to have a look at my portfolio website that I created using Jamstack

portfolio website


What is Jamstack??

form https://jamstack.org/

Jamstack is an architectural approach that decouples the web experience layer from data and business logic, improving flexibility, scalability, performance, and maintainability.

There are three components of Jamstack

  1. JavaScript:
    • JS is used to handle dynamic functionalities and interactions on the client-side.
  2. APIs:
    • APIs serve as a bridge between the frontend and various services or databases to fetch dynamic data and perform server-side operations.
  3. Markup:
    • Markup refers to the HTML, CSS, and other structured content that is prebuilt at build time and served as static files.

Why Jamstack??

  1. Improved Performance:
    • Jamstack delivers faster load times and a snappier user experience since static files can be served directly from a content delivery network (CDN), reducing server processing time.
  2. Scalability:
    • Serving static files through CDNs allows for easy scaling to handle traffic spikes and high volumes of users without worrying about server infrastructure.
  3. Enhanced Security:
    • By serving static files and minimizing server-side processing, the attack surface is reduced, enhancing security and protecting against common web vulnerabilities.
  4. Better Developer Experience:
    • Developers can use a variety of modern tools, frameworks, and APIs to build and deploy Jamstack sites, resulting in a streamlined and efficient development process.
  5. Cost-Effectiveness:
    • Hosting static files on a CDN is typically more cost-effective than managing and scaling traditional server infrastructure.
  6. Flexibility and Maintainability:
    • Jamstack allows for easier updates, maintenance, and version control since content is prebuilt and served as static assets, reducing the complexity of the development and deployment process.
  7. SEO Benefits:
    • Pre-rendering content at build time helps improve search engine optimization (SEO) by providing search engines with easily crawlable, relevant content.

Jamstack architecture has been widely adopted since 2015 when it was first coined

Adoption
Source: Google Trends


Creating your own portfolio with Jamstack

To create the website I will use the following:

  • Frontend: Gatsby
  • Backend: Sanity CMS
  • Deployment: Netlify

Stay tuned for the next post, where I will show you how to get started with Sanity CMS and manage the backend of your portfolio website

Top comments (0)