Fat Buddha Designs

Affordable, Creative, Hand-Crafted Websites

To Jamstack Or Not?

To Jamstack Or Not

Author: Will Moody

Published:

Reading Time: (approx) 2 min

Tags that this post has been filed under.

What is Jamstack?

JAMstack where JAM stands for JavaScript, API's and Markup, and it's a stack of those that you use to build your new web application.

Why use a Jamstack to develop websites?

What's the process?

Having built several static websites using an HTML, CSS and JavaScript skeleton with Gulp to build there was a learning curve to producing my first website using a Jamstack framework.

After a bit of research, I decided that Gridsome would be my framework of choice. The reasons being:-

Once the decision was made it was then a simple case of using yarn(or NPM) to install Gridsome globally Gridsome will require that you have Node.js installed.

Using YARN:yarn global add @gridsome/cli
Using NPM:npm install --global @gridsome/cli

Then spin up a project

gridsome create my-gridsome-site to create a new project
cd my-gridsome-site to move into project directory
gridsome develop to start local dev server at http://localhost:8080

This will get you started on developing your website, building it locally first of course.

For simple information type websites, it very quick to develop a site, Gridsome takes care of image processing and via plugins favicons, sitemaps and robots.txt files can all be generated.

Once you are happy with your website it's then a case of again using yarn(or NPM) to build your static code.

yarn build

This will create a /dist folder which will contain your websites static files that you can upload to your hosting server of choice, this will give you a website that super fast and secure.

One thing to note is that if you have any form processing to complete on your new website this will have to be done by a third party, I use form-data as they have a free pricing plan which will cover the needs of most of my clients and the setup is very painless, great if you are a developer.

Takeaway

With Jamstack web applications so easy to produce and host, in most cases, there really is no reason not to take the plunge and of course, learn something new along the way.

Have fun :-)

Previous Article: Cleantalk Antispam

Next Article: How Green Is Your Website?