Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to generate static sites with javascript static sites?


Asked by Maren Hodges on Dec 12, 2021 JavaScript



The only way to receive your data is through APIs. Such data can be later processed together with markdown and other resources to create a static website that is then served to the client. Now that we know all the terminology, it's time to explore the reasons and benefits behind the JAMstack.
Subsequently,
A static site consists only of, as the name suggests, static files. Like some HTML and CSS files, and little bit of JavaScript. There are no specific requirements for the type of the machine that will host the page, no back-end language restriction and no need for a database.
Also Know, A modern static site generator written in next generation (ES2015+) JavaScript. A JavaScript based static-site-generator to help you create JSON, Markdown, or static-data based websites. Webby is a fantastic little website management system. JungleJS is a new static site generator that uses Svelte and GraphQL.
In respect to this,
"JAMstack", as a term, was first used by Netlify around 2015. Its primary purpose was to convince developers to well-known and somewhat disliked static websites. A new name was meant to change people’s mindsets about old technology. As we know today - this strategy worked!
Next,
With static site generation you can render your application during the build phase and deploy it to any static hosting services such as Netlify, GitHub pages, Vercel etc. This means that no server is needed in order to deploy your application.