Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use Angular JS for JAMstack architecture?

I am in need to implement a static SPA with JAMstack architecture. I know we can user ReactJS/VueJS for JAM based implementation. But I want to know is it possible to use Angular for JAMstack approach?

https://dev.to/leomeloxp/what-is-jam-stack-2957

like image 728
prisel Avatar asked Oct 31 '18 07:10

prisel


People also ask

When should you not use Jamstack?

Using it might not be a good choice if: You don't have enough technical expertise – Jamstack is not a code-free tool for building websites and it still requires coding skills and using APIs. Therefore, you either need to have JavaScript and/or React skills or someone who have these skills.

What is a Jamstack architecture?

Jamstack is a term that describes a modern web development architecture based on JavaScript, APIs, and Markup (JAM). Jamstack isn't a specific technology or framework but a different architecture for building apps and websites.

Is Jamstack a framework?

Jamstack Gatsbyjs is an open-source front-end framework based on React. It was built with headless CMSs in mind, and it now represents one of the most popular and used Jamstack site generators. Gatsby's strengths are scalability, content management, security, and performance.

Is Jamstack scalable?

Jamstack is robust web development architecture created to build secure, faster, and scalable web applications.


1 Answers

As JAMstack stands for JavaScript, API, and Markup, the only part which is a bit less straightforward to do Angular as a JAMstack is the markup.

It is possible to pre-render Angular on the server with Angular Universal: this would be the Markup part of the JAMstack. To make it a JAMstack application you would have to use build time pre-rendering instead of server-side rendering.

Angular is JavaScript obviously, so that is pretty straightforward.

And your Angular app probably already is talking to APIs, so that is easy too.

The main thing would be to build your Angular app in such a way that it works as a standalone website and serving it as static files via a CDN. Any content that needs to be dynamically updated you call via an API.

So yes, in my opinion it is possible to use Angular for JAMstack.

like image 159
Dimitri Dhuyvetter Avatar answered Nov 07 '22 09:11

Dimitri Dhuyvetter