Home / Companies / Strapi / Blog / November 2023

November 2023 Summaries

8 posts from Strapi

Filter
Month: Year:
Post Summaries Back to Blog
The text provides a comprehensive tutorial on building a food ordering mobile application using React Native and Strapi. It begins with setting up a Strapi backend by creating collection types for users, products, and carts and configuring them to be accessible via an API. The tutorial then guides users through developing the mobile app's frontend with React Native, including user registration and login functionalities, a home screen for browsing products, and a cart system for managing selected items. Additionally, it covers creating a profile screen to display user information and a navigation system using React Native Navigation. The application allows users to register, log in, browse a selection of foods, add items to a cart, and view their profile, with the complete source code available on GitHub for further customization and exploration.
Nov 28, 2023 3,411 words in the original blog post.
The text provides a comprehensive guide on setting up user authentication in a Flutter application using Strapi as the backend server. It begins with instructions on how to create a Strapi project and set up an authentication server locally, detailing the process of modeling user information and post data in Strapi to be accessed by the Flutter app. The guide then explains the integration of Flutter with Strapi by configuring server endpoints and API tokens using environment files, and it describes how to use Flutter packages like HTTP and Dotenv for server communication and configuration management. The tutorial also covers creating a Flutter project with essential directories and files, including models for users and posts, and screens for signup, login, and dashboard functionalities. The implementation involves creating forms for user registration and authentication, fetching posts for authenticated users, and ensuring secure data handling through HTTP requests with proper authorization headers. Finally, the text discusses running the Flutter application to demonstrate the functionality of user signup, login, and accessing the dashboard, showcasing Strapi's capability as a content management system that can be integrated with front-end frameworks like Flutter.
Nov 22, 2023 3,288 words in the original blog post.
To set up automated testing for a Strapi API using Jest and Supertest, developers need to install necessary packages, configure Jest settings in the `package.json` file, create a temporary SQLite database environment specifically designed for tests, and write test cases to verify the functionality of Strapi API endpoints. The process involves setting up a controllable instance of Strapi that operates in a virtual testing environment without affecting the main project, using libraries such as Supertest to make HTTP requests and test APIs, and employing Jest to simplify and enhance the testing process for JavaScript code. By following these steps, developers can ensure the reliability and robustness of their applications through automated testing, making it easier to identify and fix issues before they become production-ready.
Nov 20, 2023 1,594 words in the original blog post.
Strapi is an open-source headless CMS that can be easily paired with frontend technologies to create a production-ready application within minutes after setup. Strapi's modularity allows users to extend it with community-maintained plugins and override default functionality for a fully custom build. To get started, developers can use the `npx create-strapi-app` command to scaffold a new project. The project will be self-hosted on Digital Ocean using Bitbucket for source code repository hosting. A CI/CD pipeline is set up using Bitbucket's pipeline service, which includes continuous integration and deployment processes. This ensures that updates are frequently released through an automated process, keeping the product up-to-date with the latest changes. The pipeline also runs tests before deploying changes to detect bugs early on. Strapi depends on Node.js, so it needs to be installed on the server for the application to run. A Postgres database management system is used to persist data from the movie collection. A firewall and reverse proxy are set up using Uncomplicated Firewall (UFW) and Nginx, respectively, to protect the server and forward requests to the Strapi instance. The pipeline also includes a trigger that runs automatically whenever code is pushed to the master branch or merged into a pull request. This process allows developers to focus on development while leaving infrastructure management to the platform. Strapi Cloud is an additional resource for those who want to focus solely on development, offering a hassle-free way to manage servers and scale infrastructure.
Nov 17, 2023 3,085 words in the original blog post.
The Strapi project is an open-source, API-driven headless CMS that utilizes the Koa.js framework to handle HTTP requests and responses. It provides a robust and well-structured framework for creating routes and controllers, with a focus on simplicity, flexibility, and modularity. The framework allows developers to create custom middleware functions that can be used to preprocess every API request, providing full access to the request data, ctx.request, and allowing for tasks such as logging, parsing request data, or conducting authentication checks. Strapi's methodology aligns well with other contemporary frameworks like Ruby on Rails, Django, and Laravel, making it a viable option for Node.js backend development.
Nov 13, 2023 3,482 words in the original blog post.
In the evolving landscape of web development, integrating Strapi, a headless CMS, with Next.js can be optimized by employing Strapi types and TypeScript for better synergy. This guide outlines a step-by-step process to set up and utilize Strapi types in a front-end project, starting with cloning a starter project from GitHub and setting up the environment with necessary configurations and dependencies. The tutorial walks through creating and copying Strapi types to the front-end project, enhancing the development process by providing clear and maintainable code through TypeScript's type inference capabilities. This integration aims to ensure data type accuracy and minimize runtime errors, thereby improving application reliability. The final outcome is a more robust setup where predefined Strapi types lead to fewer mistakes and a more efficient development workflow, with the promise of further enhancements as new tools become available.
Nov 07, 2023 1,785 words in the original blog post.
Next.js 14, launched by Vercel at their annual conference, emphasizes refining existing features rather than introducing new ones, focusing on speed and ease of use, which benefits developers using tools like Strapi. Key improvements include a faster local server start and refresh rates due to enhancements in Turbopack, a new experimental Partial Pre-rendering feature, and the stabilization of Server Actions, which simplifies remote procedure calls. The update also enhances API documentation and introduces a new course to aid developers in utilizing Next.js features effectively. Additionally, Vercel's new AI SDK highlights the integration of AI capabilities, making it easier to work with large language models. A demo project demonstrates how to integrate Next.js with Strapi, showcasing the benefits of combining the two for efficient backend management. Overall, Next.js 14 aims to streamline workflows by enhancing existing tools and integrating AI, with continued support from Strapi for evolving web development needs.
Nov 02, 2023 685 words in the original blog post.
Strapi has introduced a series of updates aimed at enhancing the user experience, security, and efficiency of its content management platform. Key updates include the rollout of Cloud Backups, Time-Saving Templates, and a Rich-Text Editor that offers a genuine WYSIWYG experience. The addition of Cloud Templates allows users to start projects directly from the Cloud interface, eliminating the need for linking to GitHub. Strapi also introduces a 99.99% uptime SLA for Custom Cloud plans, Google Authentication for easier login, and a theme option that syncs with system settings. The platform has seen improvements and bug fixes since version 4.14, particularly in the Blocks Editor and TypeScript utilities. Furthermore, new plugins like the Formula Field and PPT Custom Fields have been added to the Strapi Market, offering advanced functionalities for content dynamics and custom field enhancements. These updates, packaged in version v4.15, are designed to make Strapi a robust and user-friendly headless CMS solution.
Nov 01, 2023 1,603 words in the original blog post.