Strapi
Strapi is an open-source, headless CMS (content management system) that lets developers quickly and easily build custom APIs and content-heavy applications. Besides providing a simple admin panel for creating and managing content, it lets developers use popular frameworks such as React, Angular, and Vue.js to connect to the API. Strapi is built on Node.js, and its modular architecture and extensible plugins make it flexible and scalable for a wide range of projects.
With Strapi, developers can focus on building flawless applications and use a powerful, customizable infrastructure.
One-Click Deployment
With Arvancloud Cloud Container ready-made applications, you can set up Strapi with just one click.
To create Strapi with the Arvancloud Cloud Container ready-made applications, you can choose Strapi - MySQL, Strapi, or Strapi - Postgres based on your needs.
The Strapi ready-made application with an SQLite database is recommended for development and test environments, and the other two applications with MySQL or Postgres databases for production.
Using Strapi
After the application is deployed on the Arvancloud Cloud Container, you can access Strapi through the free Arvancloud domain or your own domain (if you set it on this application).
In the first step, you need to create an admin account. After that, you can access the Strapi dashboard by adding /admin to the end of your custom or Arvancloud domain.
Building a Blog
With Strapi, you can easily create a blog's backend and connect it to your frontend application through the API. To do this, simply create your posts collection and then add content to it. After that, you can get the content through API requests.
Step 1: Create a Collection Type
First, in the Content-Types Builder section of Strapi's left menu, create a collection type named Blog Post or any other name you like. Then add the fields title, content, author, and publication_date to it, of type text, rich text, text, and date respectively. Finally, click Save to save these settings.
Step 2: Create Content
Now you can add your blog content to the Blog Post collection. In the left sidebar, click Blog Posts in the Collection Types section and click Add New Blog Posts. Then fill in the fields you created in the previous step and click Save and then Publish to save and publish the content.
Step 3: Set Permissions
To manage your application's permissions and users, a plugin called ROLES & PERMISSIONS is installed on Strapi by default. For API access to Strapi content, go to Settings, click Roles in the USERS & PERMISSIONS PLUGIN settings, and set the necessary permissions.
Step 4: Access via API
Now that we've added content and set permissions, we can send a GET request to the following path to get all posts added to Strapi so far.
https://app-project.apps.ir-thr-ba1.arvanpaas.ir/blog-posts
If you use a custom domain, you need to replace
app-project.apps.ir-thr-ba1.arvanpaas.irwith it.
You can also use this API to connect this program to a frontend application.
For more solutions, you can use the Strapi guide.