Strapi is a flexible, open-source Headless CMS that gives developers the freedom to choose their favorite tools and frameworks, while also allowing editors to easily manage and distribute their content. By making the admin panel and API extensible through a plugin system, Strapi enables the world's largest companies to accelerate content delivery while building beautiful digital experiences.
Strapi can generate an admin panel in a few clicks and get your whole CMS set up in a few steps.
Strapi’s admin panel gives you an intuitive interface to create, edit and delete your content and automatically creates logic to handle CRUD operations, including filtering and permissions.
It has a built-in user system that allows you to manage users Roles & Permissions
Moreso, every part of your application can be easily customized. Strapi’s architecture allows you to extend your app to match your exact use case and install plugins like GraphQL etc. to your application.
To build, deploy, and manage Strapi, use the following recommended frameworks and programming languages for best results:
Before you engage in creating a new project, it is very important to update your Node.js
to (>v12.x)
. Go ahead and update it before reading on.
If you want to use a specific database, you don’t have to use the --quickstart
flag. The CLI will let you choose the database of your choice.
By default, create-strapi-app
will generate an empty Strapi project. If you want an application that is pre-configured for a specific use case than you can use --template
with template GitHub URL
Note: If created with --quickstart
, then it will automatically run your application.
Navigate to http://localhost:1337/admin
and create the first admin user.
Content-Type Builder
from the side panel under Plugins.+ Create new collection type
link and create a new collection.
BASE SETTING
and ADVANCE SETTING
to add field names and properties.finish
to update all the fields to collection.Save
to save the collection.+ Add New Restaurant
button to add a new entry.
Save
to update the changes.SETTINGS > USERS & PERMISSIONS PLUGIN > ROLES
Public Roles
and scroll down to Permissions.
Permission
for the collections routes that can access without auth
and can update the action for every route from Advanced Settings
USERS-PERMISSIONS
public routes.
Note: In a similar manner, we can update the Roles and Permissions for authenticated routes also.
Marketplace
Roles & Permissions
for JWT
authentication, GraphQL, etc.Roles & Permissions
are pre-installed if you created with --quickstart
so, you only need to update the roles and permissions from the Setting tab.Media Library
.
We can create Themes
and Components
by using + Create New Single Type
and + Create New Component
in Content-Type Builder
Here we are! Your collection is now accessible at http://localhost:1337/
Consume your API with your favorite frameworks as well as frontend or backend programming languages like React, Vue.js, React Native, Ruby and many more.
Find the complete example project on Github, and Postman files for Postman Collection and Postman Environment at the links.
Thank you for reading!