
Strapi is an open-source headless CMS that allows developers to manage and deliver content seamlessly through APIs. It decouples the front end from the back end, providing flexibility to use any front-end framework or technology stack. Strapi automatically generates RESTful and GraphQL APIs based on content models, making it easier to create and manage content. The system includes an admin panel for content creators to add and organize content. Strapi's architecture supports plugins and customizations, and includes role-based access control for content management.
This guide explains how to use Vultr's Strapi Marketplace Application. It covers exploring the Strapi dashboard, creating a collection type, adding content to the collection, and setting up the required API permissions.
Before you begin, you need to:
curl installed on your local machine to test the Strapi API endpoints.Strapi provides the following core features:
Follow the steps below to deploy Strapi as a Marketplace Application on a Vultr Cloud Compute instance.
Confirm that the Strapi service is available. Replace SERVER-IP with your instance's IP address.
The command returns a response from the Strapi server, confirming that the API is reachable. If the connection is refused, wait a few minutes for the Strapi installation script to finish running and try again.
Create a Strapi admin account by navigating to http://SERVER-IP:1337/admin in a web browser and completing the setup form.
Select Content-Type Builder in the Plugins section.
Create a new collection type.
Define the fields of your collection.
Save the collection.
Navigate to Content Manager at the top of the left menu.
Select the collection you just created.
Click Add new entry.
Fill in the fields.
Save and publish your content.
Navigate to Settings.
Select Roles under the users and permissions plugin.
Select the Public role.
In Permissions, expand the desired content type.
Allow access to retrieve the articles by checking the find and findone boxes.
Click Save.
Retrieve content via the API. Replace SERVER-IP with your instance's IP address.
The response returns a JSON array containing the article entries you created, confirming that the API permissions are configured correctly.
You have deployed Vultr's Strapi Marketplace Application, explored the Strapi dashboard, and configured its core features, including content types and role-based access control. The Marketplace Application deploys Strapi pre-installed on the instance, reducing the manual setup required before development can begin.
0 Comments
Be the first to comment and share your perspective with the community.