Home / Companies / Strapi / Blog / May 2022

May 2022 Summaries

22 posts from Strapi

Filter
Month: Year:
Post Summaries Back to Blog
This tutorial teaches readers about on-site search and its benefits. It guides users through building a web application implementing search functionality using the Strapi CMS and Meilisearch, an open-source search engine. The integration of Meilisearch into the Strapi CMS allows for quick and relevant search results, even accounting for typing errors made by users. By following this tutorial, developers can create a movie application with search functionality based on movie name or genre.
May 31, 2022 1,315 words in the original blog post.
The project involves building a productivity tips app using Render, Remix and Strapi. The app will have two main routes: `/tips` to view all the productivity tips in the database, and individual tip pages with details such as screenshots. To build this app, developers need to install Remix, Strapi, and Render, and set up their local development environment. They also need to create a Strapi backend to store the tips data, and a Remix frontend to display the data. The app uses GraphQL and RESTful APIs, and is deployed on a cloud platform using Render. The project requires knowledge of JavaScript, HTML/CSS, and API development.
May 30, 2022 2,951 words in the original blog post.
Plushcap here. I've summarized the text for you. Here's a neutral and interesting paragraph covering the key points: Strapi customization is essential to extend its functionality. To create custom routes and controllers, one must use Strapi Generators, which can be used to generate new files with boilerplate code. Customizing Strapi policies allows developers to secure business logic by adding conditions that execute specific logic on each request before it reaches the controller. Policies can be global or scoped to specific APIs or plugins. In this article, we created a custom policy called `is-owner` to restrict access to orders confirmed by only the user who created them. We also set up webhooks to integrate with other applications and middlewares to limit the rate of requests, such as creating or confirming orders. Additionally, we created services to send emails to users when an order is created. These customizations demonstrate how Strapi can be extended using various tools and techniques, making it more approachable and appreciated by developers.
May 25, 2022 2,793 words in the original blog post.
The article provides a comprehensive guide on customizing the backend of Strapi, a headless CMS built on the Koa framework, to create a store API with order confirmation capabilities. It details the process of setting up a Strapi project, creating content types for Products and Orders, and customizing controllers and routes to enable users to confirm orders. The customization involves defining a controller function to handle order confirmations and setting up a custom route for this purpose. The article also emphasizes the use of Strapi's entityService for CRUD operations and highlights the importance of ensuring that only authenticated users who created an order can confirm it. Additionally, it outlines the steps for setting up user authentication, managing permissions, and creating new entries in the Strapi admin panel. Overall, the guide illustrates how Strapi's extendable architecture allows for tailored functionality beyond its default capabilities.
May 25, 2022 2,967 words in the original blog post.
Strapi is an open-source headless CMS that utilizes webhooks to facilitate seamless communication between applications by automatically sending HTTP POST requests when specific events occur, such as creating, updating, or deleting content. This automation allows for real-time updates without manual intervention, much like receiving push notifications for new emails. Webhooks serve to notify third-party applications of changes, enabling functionalities like email notifications, website builds, or messaging app alerts. Unlike APIs, which require manual data requests, webhooks run automatically once set up, offering a dynamic method of content exchange across applications. Strapi's interface allows users to easily create, test, and manage these webhooks, with the flexibility to enable or disable them as needed, supporting various integration scenarios.
May 24, 2022 829 words in the original blog post.
A Strapi plugin can be created with two main parts: admin and server, which can have multiple purposes depending on their usage. A plugin can enhance the API of an application by using its server part, or it can inject components into the admin interface without needing a specific interface in the admin itself. To create a plugin, one needs to create a folder for the plugin with certain files such as `README.md`, `admin` and `server` folders, and then use the `npx create-strapi-app` command to generate the necessary files. The generated files include various configurations, components, controllers, routes, services, and other utilities that can be customized according to the plugin's needs. A plugin can also have multiple content-types, controller actions, and routes that are useful for a specific use case.
May 23, 2022 796 words in the original blog post.
This tutorial provides a step-by-step guide for developing a simple To-Do list plugin for Strapi v4, a headless CMS, focusing on making the process accessible for newcomers. It outlines the creation of a plugin content-type for data persistence, customization of the backend, setting creation, and the development of a plugin homepage, including the injection of a React component into the admin interface using the Strapi Design System. The guide emphasizes using the generate CLI command to create various components like APIs, controllers, and plugins, and offers commands for both Yarn and npm. It advises enabling the autoReload feature with the --watch-admin option during development to avoid repeated builds, ensuring a smoother workflow. Once the plugin is developed, building the application will integrate the new plugin into the main navigation, linking to its homepage. The article is part of a series written by Maxime, a member of Strapi's Growth team, who enjoys creating valuable content for the community.
May 23, 2022 520 words in the original blog post.
The article serves as a detailed guide on creating a "todo" plugin in Strapi, a headless CMS, by setting up a new collection-type called "Task." It begins with instructions for generating the content type using CLI commands and involves modifying the schema file to add attributes like "name" and "isDone," where the name field is mandatory and the task's completion status defaults to false. The guide highlights the necessity of manual adjustments due to a bug in the Strapi CLI that prevents automatic schema exportation. It details how to export the schema manually and verify its integration within the Content-Type Builder and Content Manager by running the server and using the Strapi console command. The article is part of a series on Strapi's file structure and provides insights into customizing server settings for content management.
May 23, 2022 897 words in the original blog post.
The text provides a comprehensive guide on developing a plugin for Strapi, focusing on creating a to-do list with polymorphic relationships. It details the process of setting up routes, controllers, and services necessary for the plugin, including creating specific routes for task counting and settings management. The guide emphasizes the flexibility of modifying default Strapi files to suit custom needs and introduces the concept of polymorphic relations to associate the task content-type with other content-type APIs efficiently. Additionally, it covers managing plugin settings through a service that stores configuration data, allowing for customization of task behavior, such as whether tasks should be disabled or crossed when completed. The text highlights the importance of understanding Strapi's API and the use of the Strapi console for real-time command evaluation, aiming to equip developers with the knowledge to create scalable and efficient Strapi plugins.
May 23, 2022 2,909 words in the original blog post.
The article provides a detailed guide on developing, publishing, and maintaining a Strapi plugin, emphasizing the importance of making the plugin available on npm and GitHub before listing it on the Strapi Marketplace. It outlines the steps to initialize a GitHub repository, commit the code, and push it to GitHub, ensuring that only the plugin, not the entire Strapi project, is uploaded. The guide explains the structure and components of a basic package.json file, including details on repository, dependencies, and scope, highlighting the need for a complete README.md to describe the plugin. It also covers the nuances of publishing scoped and unscoped npm packages, with a focus on ensuring that scoped packages are made public using the --access public option. Additionally, the article explains how to update package versions using npm commands and stresses the importance of adhering to guidelines when submitting a plugin to the Strapi Marketplace. The content also briefly introduces Maxime, a developer at Strapi, who is passionate about creating content for the community.
May 23, 2022 873 words in the original blog post.
The text provides a comprehensive guide on building a Strapi plugin, focusing on creating and managing a todo list within the Strapi admin interface. It details how to customize a Strapi plugin using React components, including setting up API routes and services for handling tasks, integrating the Strapi Design System for UI consistency, and managing translations for internationalization. The tutorial covers creating a settings page to configure plugin behavior, utilizing the helper-plugin for accessing content management features, and injecting components into the admin panel using the bootstrap lifecycle function. Additionally, it touches on the use of internal APIs for data management and demonstrates how to dynamically update the UI based on user interactions, such as adding and toggling tasks. The guide emphasizes the importance of the Strapi Design System for plugins compatible with Strapi v4 and encourages exploring both documented and undocumented features of Strapi for enhanced functionality.
May 23, 2022 6,455 words in the original blog post.
Strapi is celebrating the success of its plugin ecosystem with a dedicated Plugin Week from May 30th to June 3rd, marking a significant milestone as plugin install rates have doubled since the launch of Strapi v4. This event, which includes sessions, workshops, and hangouts, aims to honor plugin creators and demonstrate the capabilities of Strapi plugins, culminating in the first-ever Strapi Hackathon. Participants are encouraged to develop plugins adhering to Strapi's guidelines, with valid submissions involving a GitHub project tagged #StrapiPluginWeek and a video demo. Rewards for contributions include gift cards to support open-source projects and donations to organizations assisting underrepresented individuals in tech, alongside prize money for the top three plugins and creative incentives. The event is supported by various resources, including a curated Plugin page and a YouTube playlist, while updates are shared on Discord and Twitter.
May 23, 2022 425 words in the original blog post.
This tutorial guides you through creating a simple To-Do plugin in Strapi v4, including generating APIs, controllers, content types, plugins, policies, middlewares, and services. It covers enabling the plugin, building the admin, and running the server with autoReload enabled for efficient plugin development. The article also mentions that further updates will cover file structure and other aspects of Strapi plugin development.
May 23, 2022 521 words in the original blog post.
A headless CMS is a Content Management System that exposes information through an API, allowing it to be accessed from different devices and platforms. A headless CMS is designed to store and expose organized, structured content without concern over where and how it's going to be presented to users. This decoupling of presentation and storage offers several advantages, including the ability to reuse the same content on other platforms. In this article, a Strapi backend was created for a pet adoption application, using a headless CMS approach with React and Context API for the frontend. The application allows users to create, read, update, and delete pets, with features such as adding new pets, editing existing ones, and deleting them altogether. The code is available on GitHub, showcasing how a headless CMS can be used in a typical CRUD application.
May 18, 2022 3,606 words in the original blog post.
The article provides a comprehensive guide on how to integrate PostgreSQL with Strapi, an open-source headless CMS based on Node.js. Initially, it introduces Strapi's default database, SQLite, and explains how to configure it to work with other databases like PostgreSQL. The author walks through the steps to set up a Strapi project, install necessary dependencies, and change configurations to connect to a PostgreSQL database. The article then illustrates building a bank application using Strapi, displaying how to create collections for accounts and transactions, and implementing business logic for transferring money between accounts via custom API endpoints. The author also covers creating a frontend using Next.js to interact with the Strapi backend, highlighting the ease of integrating PostgreSQL into Strapi projects and the platform's flexibility and configurability. The piece concludes by encouraging developers to consider Strapi for their projects due to its straightforward setup and robust features.
May 17, 2022 4,714 words in the original blog post.
Strapi, an open-source Node.js headless CMS, facilitates the development of APIs and content management through collections and single types. It inherently supports relational database modeling, allowing users to establish various relationships such as one-to-one, one-to-many, many-to-many, and polymorphic relationships among Content Types. These relationships are set via the Strapi admin UI or directly in the Strapi project files. The article further elaborates on using these relationships in a practical application by developing a Q&A app, akin to Quora, using Strapi for the backend and Next.js for the frontend. This application showcases real-life implementations of the relationship types, demonstrating how questions, answers, and comments can be structured and managed within the system. The process involves setting up Strapi collections, defining models and relationships, and integrating them with frontend components to create a functional web application that allows users to ask questions, submit answers, and comment on answers, highlighting Strapi's capabilities in managing complex data relationships.
May 16, 2022 5,881 words in the original blog post.
You are Plushcap, a helpful and succinct AI assistant with knowledge of software development and developer marketing.
May 11, 2022 3,065 words in the original blog post.
A blog website was created using SvelteKit and Strapi as a CMS. A Content Management System (CMS) is a popular tool for creating web pages, blogs, and online stores that store website data, images, pictures, and other hosted content. Strapi is a headless CMS coded in JavaScript with no frontend, ideal for developers. The blog website was created by using Strapi to manage content and the basics of SvelteKit, including filesystem-based routing, dynamic routes, and authentication. The website allows users to create, edit, and delete posts while ensuring that only authorized users can access and modify content. A custom error page was also created for when a user tries to access a non-existent post.
May 10, 2022 5,949 words in the original blog post.
The tutorial provides a comprehensive guide on implementing pagination in a web application using Strapi as a backend and Svelte for the frontend. It begins with the creation of a Strapi project to manage the server-side content and explains the importance of pagination as a technique to improve application performance by loading data in manageable chunks. The tutorial walks through setting up Strapi, including creating a collection type and seeding it with data using Faker, configuring API permissions, and retrieving paginated data using Postman. It then transitions to building the frontend with SvelteKit, detailing how to fetch and display the paginated data from Strapi, and implement pagination controls within the Svelte application. The guide concludes by emphasizing the benefits of pagination for handling large data sets and enhancing user experience, along with providing a link to the complete source code on GitHub.
May 09, 2022 2,690 words in the original blog post.
The text provides a comprehensive guide for implementing authentication in a Nuxt.js application using Strapi, an open-source headless CMS, to streamline the development process. It begins with creating a Strapi project to handle backend authentication tasks such as user registration, login, and password management, utilizing built-in role-based access control and customizable REST API. The tutorial then transitions to setting up a Nuxt.js frontend project, integrating the Nuxt Auth Module to manage user authentication with a focus on JWT tokens. The guide also includes instructions for creating user interfaces for login, registration, and password reset, alongside configuring middleware to ensure only authenticated users access certain pages. Additionally, it covers handling expired JWT tokens by redirecting users to the login page through Axios error-interception, culminating in a fully-functional authentication flow ready for production deployment.
May 04, 2022 3,477 words in the original blog post.
A Strapi project can be created using the command `npx create-strapi-app my-project --quickstart`, and internationalization is automatically enabled in Strapi applications running version 3.6.0 or later. The process of setting up i18n features involves installing the internationalization plugin, creating a new locale, enabling localization for the collection type, and creating content in multiple locales. In a Next.js project, the next-i18next library is used to implement internationalization, which requires setting up a configuration file, importing translations, and using server-side translations to pass data to pages. The Strapi backend is then used to retrieve localized content, and the Next.js frontend displays the content in the correct locale.
May 03, 2022 2,881 words in the original blog post.
Strapi is an open-source content management system that facilitates the creation of customizable APIs for any front-end application, offering a high degree of customization and ease of use. The Strapi community has developed starters to help users quickly visualize the integration of Strapi with various front-end frameworks, particularly React, making it easier for developers to understand the product without starting from scratch. The process involves setting up Strapi with a backend repository, deploying on platforms like Heroku and Netlify, and running a React server locally. Maxime, a member of the Strapi Growth team since 2015, is an advocate for using Strapi with React and encourages community engagement through social media.
May 02, 2022 476 words in the original blog post.