Strapi logo
Strapi
Preview of the Vultr management interface for Strapi on a mobile device.
Strapi logo|trans
Strapi
Preview of the Vultr server deploy page control panel for Strapi on a web browser.

Strapi, a favorite among developers, offers flexible and scalable APIs for applications and websites. It enhances front-end development with its user-friendly content and data management. Its API-first approach simplifies content management and integration for projects of all sizes. Strapi's versatility, extensibility, and robust features enable efficient delivery of rich digital experiences.

Features

  • Customizable Content Types: Enables developers to define custom content types and relationships between them.
  • API-First Approach: Provides APIs out of the box, making it easy to consume and integrate content with any application or service.
  • Extensible Plugin System: Offers a plugin system for extending functionalities and integrating with third-party services.
  • User Authentication and Permissions: Includes built-in authentication and role-based access control (RBAC) for managing user permissions.
  • Database Flexibility: Supports various databases, including MongoDB, PostgreSQL, MySQL, SQLite, and others.
  • Developer Tools and Community: Provides a CLI for scaffolding projects and managing environments, with an active community and extensive documentation.

Learn more about Strapi at https://strapi.io

Welcome to Strapi

To learn more please visit Strapi Documentation

1. Checking if Strapi is Working

Use the curl command to check if the Strapi server is responding:

curl -X GET "<http://localhost:1337/>"  
2. Accessing the Strapi Admin Panel

Open your browser and navigate to the Strapi admin panel and you should see the login page. During the first run of Strapi, you will be prompted to create an admin account. You need to provide your name, email, and password, which will be used to access the Strapi administration panel.

3. Creating a Content Type

To create a new content type, follow these steps:

  1. Log in to the Strapi admin panel.
  2. Navigate to the "Content-Type Builder" section.
  3. Click on "Create new collection type" or "Create new single type".
  4. Define the fields for your content type.
  5. Save and publish your content type.
4. Adding Content

To add content to your newly created content type:

  1. Go to the "Content Manager" section in the admin panel.
  2. Select the content type you created.
  3. Click on "Add new entry" and fill in the fields.
  4. Save and publish your content.
5. Configuring API Permissions
  1. Log in to the Strapi admin panel at http://use.your.ip:1337/admin
  2. Go to Settings > Roles under Users & Permissions Plugin.
  3. Select the Public role.
  4. In Permissions, expand the desired content type (e.g., articles).
  5. Check the boxes for find and findone.
  6. Click Save
6. Retrieving Content via API

You can retrieve content from Strapi using the automatically generated API. For example, to fetch entries of a content type named articles:

curl -X GET "<http://localhost:1337/articles>"  

Or enter the URL in your browser:

http://use.your.ip:1337/articles  

You should see a JSON response containing the content entries.

7. Security

You may want to configure your firewall, such as ufw (Uncomplicated Firewall), to allow access only from your server's IP address. This means that only your server can access the necessary resources, and all other IP addresses will be blocked.

Port 1337: This is the default port used by Strapi for API endpoints and administration panel access.

Support Information

Support Contact

Website
https://strapi.io/
Support URL
https://strapi.io/contact
Twitter
strapijs
Discord
https://discord.com/invite/strapi

Maintainer Contact

Report Application

Report an application with malicious intent or harmful content.

Thank you for your report!

Our Team has received your report and will respond accordingly as possible.