Home / Companies / Strapi / Blog / October 2022

October 2022 Summaries

15 posts from Strapi

Filter
Month: Year:
Post Summaries Back to Blog
JavaScript, the widely-used programming language for web development, is known for its ability to create dynamic and interactive web pages, while its superset, TypeScript, introduced by Microsoft in 2012, adds static typing to facilitate the development of large-scale applications. Strapi, an open-source headless CMS, initially supported JavaScript but added TypeScript support in version 4.3.0, allowing developers to leverage the benefits of both languages. JavaScript, being fast and supported by numerous frameworks, is favored for its ease of use and extensive community support, though it poses security risks and inconsistency across browsers. TypeScript, with its static typing and enhanced features like interfaces and object-oriented programming, offers advantages in reducing errors and providing better development tools, but requires compilation and can be complex for those accustomed to dynamic typing. The article highlights the differences and use cases of JavaScript and TypeScript, particularly in the context of using them with Strapi, emphasizing the strengths and challenges associated with each language.
Oct 31, 2022 1,246 words in the original blog post.
npx create-strapi-app my-project` is a command line used to create a new Strapi project. TypeScript is a superset of JavaScript, which means it uses the same syntax but includes newer features such as type-inference, generics, and private class members. These features improve upon JavaScript's native object-oriented features, making code more robust, cleaner, and easier to maintain. TypeScript automatically detects variable data types, eliminates runtime errors, and provides effective functions for classes, interfaces, and modules. It also offers flexible data types with generic functions, which allow users to write their own data type. With its wide range of features and feasibility, TypeScript is a great tool for JavaScript developers, especially when used with Strapi, an open-source, customizable headless CMS that can be used for building application backends and consuming content via APIs using any HTTP client or GraphQL-enabled frontend.
Oct 25, 2022 1,306 words in the original blog post.
The comprehensive tutorial explores the integration of Strapi, an open-source, headless Content Management System (CMS), with a React application to implement authentication and authorization. By employing Strapi's flexible authentication system, developers can leverage both social and local authentication methods, returning a JWT token for secure requests. Strapi’s Roles & Permissions plugin ensures robust API protection through an Access Control List (ACL) strategy, verifying user access with each request. The tutorial guides users in building a React application that features user registration, login, and profile editing, utilizing components such as React Context and hooks for efficient state management. The article also showcases the creation of a social card application, detailing backend setup with Strapi and frontend development with React, including routing, UI components, and API integration. The tutorial culminates in a fully functional application, demonstrating how developers can apply these practices to enhance their projects with a secure and scalable architecture.
Oct 24, 2022 4,231 words in the original blog post.
I created my first Strapi project by running the command `npx create-strapi-app my-project` in my terminal, and it marked a significant change in my life as I transitioned from city living to coastal retirement. With Strapi's flexible remote working policy, I was able to balance work and family responsibilities while still attending meetings and maintaining connections with colleagues. The experience has been life-changing for me and my family, allowing us to enjoy the beautiful coastal lifestyle we always dreamed of. My gratitude is owed to Strapi for providing this opportunity, and I highly recommend it to those seeking remote work. Joining Strapi has given me a sense of freedom and flexibility that I never thought possible.
Oct 20, 2022 464 words in the original blog post.
Strapi Cloud is a hosted Content Management System (CMS) designed to seamlessly integrate developers and content editors by combining local development workflows with low-code user interfaces, simplifying deployment and hosting without sacrificing customization capabilities. Since its announcement at StrapiConf 2022, interest has grown significantly, leading to a closed alpha program that has involved user feedback to refine the product. With the release of the beta-0, Strapi Cloud is gradually opening to more users on a first-come, first-serve basis, targeting projects built on a Postgres database and hosted on GitHub. The platform will offer collaboration, security, and compliance features, with usage-based pricing set to be unveiled in Q1 2023. Beta testers currently have free access and can receive discounts by adding a credit card to their accounts. Strapi Cloud supports migration from self-hosted projects, with expanded repository support planned for later in 2023. The service aims for high uptime and compliance certifications, and users retain control over their stack, with the option to integrate third-party services.
Oct 20, 2022 806 words in the original blog post.
Artlabs, a 3D and AR platform for commerce and the metaverse, has leveraged the open-source content management system Strapi to create a scalable and efficient platform that allows brands to convert physical products into 3D digital assets. The company developed this platform within a month, which has enabled them to provide e-commerce businesses with immersive shopping experiences and facilitate the creation of NFT collections and AR/VR applications. By using Strapi's robust features, such as role-based access control and a no-code API builder, Artlabs ensures efficient asset management and distribution without the need for a development team. The platform supports high traffic and scalability, successfully serving clients like Hepsiburada, which experienced a significant growth in conversion rates. Artlabs continues to expand its client base and team, and its partnerships with initiatives like the NVidia inception program and the Metaverse Standards Forum underscore its rapid growth and influence in the tech industry.
Oct 19, 2022 891 words in the original blog post.
Strapi, an open-source, headless, and customizable Content Management System (CMS), enables developers to construct diverse digital platforms from simple websites to intricate e-commerce systems like Shopify. This tutorial details how to implement audit logging in a Strapi application using lifecycle hooks, which are triggered by specific events such as content creation, update, deletion, or search. The tutorial guides users through configuring these hooks to log actions within an "AuditLog" collection type, thereby enhancing security and user trust by maintaining comprehensive logs of user activities. By employing lifecycle hooks like afterCreate, afterUpdate, afterDelete, and others, developers can automate the recording of user actions and changes, thus facilitating robust content management and security compliance. The process involves setting up the necessary software, creating collection types, and coding the lifecycle hooks to ensure all actions are logged appropriately, ultimately allowing developers to monitor and trace content operations effectively.
Oct 18, 2022 1,110 words in the original blog post.
Caching is a crucial technique for improving data retrieval performance in applications, particularly when dealing with large databases that can slow down data access and cause lag. This is achieved by temporarily storing data in a cache to reduce the need to repeatedly access slower storage layers. The Strapi REST Cache Plugin facilitates caching for Strapi applications by allowing GET requests to be cached based on query parameters and model IDs. The plugin supports various caching methods, including in-memory, Redis, and Couchbase, and automatically clears the cache when PUT, POST, or DELETE requests are made. The article outlines how to set up and configure the Strapi REST Cache Plugin using Redis, detailing the necessary steps for installation and configuration, such as setting up a Redis server and configuring cache properties like maxAge and content types. Additionally, it discusses the importance of caching for performance optimization and provides insights into managing cache entries and configurations for different content types within Strapi applications.
Oct 17, 2022 1,588 words in the original blog post.
The Strapi REST Cache Plugin is a useful tool that caches incoming GET requests on the Strapi API based on query params and model ID, allowing for faster data retrieval. It supports various cache storage options such as InMemory, Redis, or Couchbase cache. This article provides an in-depth guide to using this plugin with Strapi applications, including installation, configuration, and usage of different caching strategies. The importance of caching in improving application performance is also discussed.
Oct 17, 2022 1,599 words in the original blog post.
To create a Strapi project, run `npx create-strapi-app my-project` and follow the tutorial to add a user, test an authenticated user, implement a refresh token feature, and configure the backend services. The frontend application is built using Vue.js and consumes the Strapi APIs with Vuex, Router, and Lint/Formatter. The application includes a login page, dashboard interface, modal for expired tokens, and API calls to refresh the token. After implementing the system, users can log in, access their dashboard, and request a new token if the current one expires.
Oct 13, 2022 3,649 words in the original blog post.
The text discusses the intricacies of technical writing, emphasizing its purpose of simplifying complex ideas for general comprehension. Technical writing encompasses various forms such as user guides and educational materials, with the primary goal of making complex topics easily understandable. The blog post, inspired by a Twitter space discussion, shares insights from guest speakers on their writing processes, highlighting the importance of research, audience awareness, and effective use of tools like Grammarly. The text also explores the significance of finding a niche in technical writing and suggests platforms like Hashnode and FreeCodeCamp for beginners. It emphasizes the importance of practice, offering resources such as articles and curated lists to aid aspiring writers. The ultimate takeaway is that consistent writing and contribution, such as through the Strapi community program, are crucial for becoming a proficient technical writer.
Oct 11, 2022 925 words in the original blog post.
The text is a comprehensive guide on Strapi, an open-source, Node.js-based headless CMS that facilitates the creation of flexible APIs with an intuitive user interface. It addresses the installation process, emphasizing the need to use LTS versions of Node.js for compatibility, and details the command-line instructions necessary to set up a Strapi project. The guide elaborates on Strapi's core features, such as advanced security measures, role-based access control, dynamic zones for content management, and the draft and publish functionality. Additionally, it discusses the Internationalization (i18n) plugin, which supports content localization across multiple languages. The tutorial also mentions the ability to extend Strapi's capabilities through providers for media uploads and email services, as well as the importance of understanding user roles within the Strapi community edition for effective content management. The author, Fagbuyiro David, concludes by encouraging readers to explore more Strapi features and installations via the Strapi marketplace, highlighting his background as a software developer and technical writer.
Oct 10, 2022 1,416 words in the original blog post.
The summary is as follows: Creating an authentication flow with Strapi involves setting up a Node.js framework that provides an extensible admin panel and built-in features such as authentication, upload, permissions, etc. A boilerplate was created using Create React App to implement the authentication flow using JSON Web Tokens. The authentication views were implemented by creating a Higher Order Component (HOC) that checks if a user can access a specific URL. The routing for the application was set up using React Router DOM, and the form for each auth view was handled using a `forms.json` file. An API call was made to access the app after filling out the form. To implement custom providers like Facebook, the provider's configuration had to be done in Strapi by creating an app on Facebook developers and adding it to the Valid OAuth Redirect URLs field. The SocialLink component was created to handle the social links for each provider.
Oct 04, 2022 1,447 words in the original blog post.
The text provides a detailed tutorial on implementing basic authentication flow using JSON Web Tokens with Strapi API in a React application. It covers creating the necessary routes, views, forms, and handling API calls for user authentication. Additionally, it demonstrates how to use authentication providers like Facebook, GitHub, Google, etc., with Strapi. The author also shares their code organization approach and provides an example of setting up Facebook as a custom provider in Strapi.
Oct 04, 2022 1,450 words in the original blog post.
The tutorial details the process of creating a job search platform using Sapper and Strapi as the backend, and deploying it to Netlify. It begins with the setup of Strapi, an open-source, Node.js-based headless CMS, to create collection types and establish relationships between them. Sapper, a Svelte-powered framework, is used to create the front end, emphasizing its advantages in SEO and progressive enhancement. The tutorial guides on integrating Axios for asynchronous HTTP requests to fetch and submit data to the Strapi backend. It further explains the deployment process on Netlify, including pushing the project to GitHub and configuring build settings for deployment. The tutorial aims to equip readers with the skills to build, configure, and deploy a fully functional job search platform while encouraging further customization and feature additions.
Oct 03, 2022 1,799 words in the original blog post.