Strapi is an open-source headless CMS that gives developers the freedom to choose their favorite tools and frameworks and allows editors to manage and distribute their content using their application’s admin panel. Based on a plugin system, its admin panel and API are extensible. Every part is customizable to match any use case. Strapi also has a built-in user system to manage what the administrators and end users can access.
- You should have an Astra account
- You should Create an Astra Database
- You should Have an Astra Token
- You should retrieve your **Database ID** and **Region** from your Astra DB dashboard
- Install node (14.17.3 version).
Installation and Setup¶
Follow the steps below to setup Strapi locally.
First, install Strapi locally:
Install the Strapi hook:
Activate the hook by adding the following to
./config/hook.jsof the sample Strapi Project:
token: Generate a token from Astra DB.
databaseId: Enter your Astra DB database ID from your database URL.
databaseRegion: Enter your Astra DB database region
keyspace: Enter your Astra DB keyspace name.
collection: Enter your Astra DB collection name.
Test and Validate¶
Create a document:
Get document by ID:
Get document by path:
Search a collection:
For more, see the Strapi documentation.