In a Nutshell
Gatsby is an open-source static website generator (SSG) that is based on the frontend development framework React and makes use of Webpack and GraphQL technology. It can be used to build static sites that are progressive web apps, follow the latest web standards, and fine-tuned for speed and security.
Set up your environment with three CLI commands
Learn the basics by building a simple site
Gatsby uses powerful preconfiguration to build a website that uses only static files for incredibly fast page loads, service workers, code splitting, server-side rendering, intelligent image loading, asset optimization, and data prefetching. All out of the box. I didn’t believe the speed until I tried it myself.
You code and develop your site, Gatsby transforms it into a directory with a single HTML file and your static assets. This folder is uploaded to your favorite hosting provider, and voila.
/|-- /.cache|-- /public|-- /src |-- /api |-- /pages |-- /templates |-- html.js|-- /static|-- gatsby-config.js|-- gatsby-node.js|-- gatsby-ssr.js|-- gatsby-browser.js
* detail explaination to be given while presenting
A CSS Module is a CSS file in which all class names and animation names are scoped locally by default. All URLs (url(...)) and @imports are in module request format (./xxx and ../xxx means relative, xxx and xxx/yyy means in modules folder, i. e. in node_modules).
When importing the CSS Module from a JS Module, it exports an object with all mappings from local names to global names. By using css/scss modules can help us in creating unique class names so that we don't have to end up messing around with class names.
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
GraphQL is a query language that was created by Facebook in 2012 for building web and mobile apps. It has become the new standard for front-end development because of its advantages over REST, which was previously the most popular API architecture. GraphQL also helps developers get started quickly with their projects without having to write complex data fetching code or build multiple endpoints, which saves time and money! This blog post will explore why GraphQL is taking over as the future of front-end development.
RESTful APIs are not a silver bullet for all types of applications. REST is an architectural style that provides highly decoupled systems. The indirection allows teams to work independently on different pieces without worrying about the implications on other parts of the application. There is also no standardization around RESTful APIs and there was room for further improvements in terms of:
GraphQL was created as a better alternative with several benefits & quickly became a major player in the API space, allowing developers to build efficient applications without over-fetching or under-fetching data while also giving them more control over how they structure their queries. GraphQL provides many exciting features such as strongly typed schema with the introspection of types, concise syntax (nested objects are serialized into one single graph) and abstracted away from backend infrastructure:
GraphQL is a solution to the problems of REST, and can be used with any programming language. If you're looking for a way to build your next application in a scalable manner that will work well with all types of devices and networks, then learn about how graphql works today!
That's all folks.
Here is the link to the Graphql Official Website Graphql Website
For any other queries please feel free to reach out to me anytime.
Have a great day. Happy Coding!!