JAM Stack : Portfolio website building with Gatsby and Wordpress
Tags: javascript, webdev, beginners, tutorial
Published: 2022-10-05 07:55:59

##Introduction

- Jamstack is an architecture designed to make the web faster, more secure, and easier to scale.
-  It builds on many of the tools and workflows which developers love, and which bring maximum productivity.
- The core principles of pre-rendering, and decoupling, enable sites and applications to be delivered with greater confidence and resilience than ever before.
- Popular tools for generating sites, are  Gatsby, Hugo, Jekyll, Eleventy, NextJS, and very many more


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfsj3j23yswjzq1x9f9d.JPG)
**GATSBY as a Static Site Generator**

- Build blazing-fast, modern apps and websites with React
- Features:
- Fast no-reload page changes
- Build sites with React.js components
- Hot reload editing. Tweak pages, templates, and styles and see changes in real time.


**Why GATSBY over other Static Site Generators**

**Modern web tech without the headache**
_Enjoy the power of the latest web technologies – React.js, Webpack, modern JavaScript and CSS and more — all setup and waiting for you to start building._

**Bring your own data**
_Gatsby’s rich data plugin ecosystem lets you build sites with the data you want — from one or many sources: Pull data from headless CMSs, SaaS services, APIs, databases, your file system & more directly into your pages using GraphQL._

**Scale to the entire internet**
_Gatsby.js is Internet Scale. Forget complicated deploys with databases and servers and their expensive, time-consuming setup costs, maintenance, and scaling fears. Gatsby.js builds your site as “static” files which can be deployed easily on dozens of services._


**Future-proof your website**
_The future of the web is mobile, JavaScript and APIs—the Jamstack. Every website is a web app and every web app is a website. Gatsby.js is the universal JavaScript framework you’ve been waiting for._

**Static Progressive Web Apps**
_Gatsby.js is a static PWA (Progressive Web App) generator. You get code and data splitting out-of-the-box. Gatsby loads only the critical HTML, CSS, data, and JavaScript so your site loads as fast as possible. Once loaded, Gatsby prefetches resources for other pages so clicking around the site feels incredibly fast._

**Speed past the competition**
_Gatsby.js builds the fastest possible website. Instead of waiting to generate pages when requested, pre-build pages and lift them into a global cloud of servers — ready to be delivered instantly to your users wherever they are_.

**Architecture**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sbp2hlotm4tz8b6umcxf.JPG)

**Get Started With HW/SW Requirements**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hx2qi999zsxsc20sc5wa.JPG)

**Implementation**

**Project development objective**

- 
The objective of this project is to explore the various benefits of Gatsby, static site generator.

**The Key Performance Indicators are:**

- Fast no-reload page changes
- Build sites with React.js components
- Hot reload editing. Tweak pages, templates, and styles and see changes in real time.

**The Project beneficiaries are:**

- Developers and end users of our organisation



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7uhy7ybxz4an0lsdjvl4.JPG)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dxutsi8pi02n1l4utia5.JPG)

## where does GATSBY + Wordpress fit

**WordPress + Gatsby is great for:**

- Content teams who are comfortable with the WordPress content editing experience
- Development teams who value using popular, open-source technologies
- Redesigns of sites with content already stored in WordPress
- Teams who want to own their data and tech stack
- Complex access control workflows or content modelling restrictions
- Projects where security is important
- High demand projects where performance is paramount

## Testing GATSBY

- One of the benefits of building a Gatsby project is the ability to add automated tests for your components, APIs, pages, and more. 
- With Gatsby, you can employ modern tooling like Jest and Cypress (or other tools of your choosing) to build a robust React web application.
- This section covers common tools and setup instructions for adding testing functionality to your Gatsby project.

## Frameworks examples

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lfbubm3v3w0qc3elx1b9.JPG)

## Results and Discussion

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/42irha4hmh7w3hl2ip0q.JPG)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z2xyhgk2fb7mfoa8jsfr.JPG)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c7da34bqnaa4n51er2dr.JPG)

## Conclusion

For teams experienced with WordPress development, adding Gatsby is a great way to add modern performance, scalability, security, and development speed benefits while retaining the familiar content creation user interface offered by WordPress

## WordPress + Gatsby is not-so-great for:

- Teams requiring the use of WordPress UI themes
- Those looking for a fully managed cloud CMS