November 2016 Summaries
7 posts from Netlify
Filter
Month:
Year:
Post Summaries
Back to Blog
The GitHub team implements GraphQL into their API to provide a complete and understandable description of the data, giving clients the power to ask for exactly what they need. This allows for more efficient data retrieval and easier evolution of APIs over time. The GitHub GraphQL Explorer is a tool that demonstrates the capabilities of GraphQL by querying data from the yarnpkg repository in just one call. GraphQL enables powerful developer tools and makes it possible to retrieve specific information without having to make multiple REST calls, making it an empowering technology for developers.
Nov 30, 2016
218 words in the original blog post.
If you thought deploying new projects to Netlify could not be more simple, you might have been right, but we always like to surprise you. The web is full of amazing templates and starter kits for people to reuse. However, doing that requires copying a bunch of code and customizing it to your needs. This new "Deploy to Netlify" button helps launch a new site from a template with just one single click required. When clicking the button, users are redirected to Netlify's direct deploy page where they can create a new site based on the chosen template. A new GitHub repository is created for the new site, allowing further customization if needed. This feature allows developers to create templates that others can launch with a click, by setting basic configuration options in the `netlify.toml` file and defining incoming hooks and required environment variables. The possibilities this feature opens up for developers are exciting, and Netlify encourages users to share their creations, showcasing what can be built with Netlify.
Nov 29, 2016
733 words in the original blog post.
Prerendering is a technique used to optimize the experience for search engine bots (like Google's web crawler) when building Single Page Applications (SPAs). SPAs, being fast and client-side only, can sometimes not serve all necessary information to bots, leading to crawl issues. Prerendering preloads all elements on the page in preparation for a bot to see it, rendering JavaScript and assets statically. This approach allows developers to build their sites using modern frameworks like React or Angular without relying on server render solutions. However, prerendering is not necessary for all sites, especially those with login screens or static HTML pages. It's recommended to use prerendering only when the content lives behind a SPA and needs to be crawled by bots.
Nov 22, 2016
695 words in the original blog post.
This tutorial teaches how to build a secure, serverless file upload system using the AWS Node.js runtime and the Serverless Framework. It aims to allow users to upload files directly to Amazon S3 without consuming any application server resources. The system uses an API endpoint that validates requests and returns a signed URL for direct-to-S3 uploads. This approach provides a scalable, reliable, and fast solution for file uploads while ensuring security and control over the uploaded files.
Nov 17, 2016
1,644 words in the original blog post.
The JAMstack is a website development approach that utilizes JavaScript, APIs, and Markup to build fast, secure, and simple websites. It involves hosting the frontend on a Content Delivery Network (CDN) and using APIs for dynamic functionality. In this tutorial, we'll be building a static website using Hugo on Netlify with continuous deployment from GitHub. The process starts by setting up a new Hugo project, installing dependencies, and initializing the repository. We then create our first page, "About," and add it to the theme's navigation. To deploy the site, we link it to our GitHub repository and configure settings for Netlify. After building and deploying the site, we can customize its appearance and set up a custom domain. The JAMstack approach allows developers to build fast, secure, and simple websites with minimal server-side overhead.
Nov 15, 2016
2,136 words in the original blog post.
The author, Brian Douglas, shares his experience with common errors he encounters while writing React code. He provides three examples: Returning Invalid React Component, Error in Promise, and Can't Render Object. In each case, he explains the error message, the problem with the code, and the solution to fix it. The first example involves exporting a component correctly, the second involves accessing the correct data from an API response, and the third involves extracting specific attributes from the object instead of rendering the entire object. By understanding these common errors and their solutions, developers can improve their coding skills and write more efficient React code.
Nov 10, 2016
812 words in the original blog post.
Netlify has announced full support for Yarn, a dependency manager for JavaScript projects, allowing users to leverage its speed, security, and reproducibility features. The support is enabled automatically upon deployment of sites with a `yarn.lock` file in the repository, without requiring any configuration changes. Users can also control Yarn behavior through environment variables, such as selecting a version or setting flags for automatic installation. This integration aims to improve dependency management and provide faster, more secure resolutions for users.
Nov 01, 2016
702 words in the original blog post.