2nthony / blogkit-strapi-starter

blogkit for strapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blogkit Strapi Starter

Starter template for blogkit.

zNBvgZ8fVuRU

Getting started

Strapi guide

Blogkit strapi STEP-BY-STEP guide here.

1. Create a new strapi project

npx create-strapi-app@latest my-blog --quickstart

2. Register the first administration user, by completing the form, you now have access to the admin panel.

3. Create collection types with the Content-Type builder.

Create a "Article" collection type

D1YTS2DESOHb

lDKHvw3PJLth

4. Create fields for collection type

EtmAF7JbiwWR

R5N0L666vPmk

yf0NgOYtq4YL

5. Now create your posts

BSh4tUUfXOxU

pih20lHLE4Uu

6. Get your posts through the API by setting permissions

R6YBVcatwmQZ

YK1cLOy1yKrF

7. Refresh your page

Now you see your post list and post content.

w74LKUPX24zf

Environment variables

  • STRAPI_API_URL strapi address. (Default: http://localhost:1337)
  • STRAPI_CONTENT_TYPE collection API ID(Plural) of Content-Type Builder. (Default: articles)

Collection type fields

  • title - Text
  • content - Rich text
  • excerpt - Text

Configuration

Update the site title in blogkit.config.js

export default defineConfig({
  siteConfig: {
    title: "your blog title",
  },
});

Use the difference fields in collection type

export default defineConfig({
  // ...
  request: request({
    attributes: {
      title: "your title field",
      content: "your content field",
      excerpt: "your excerpt field",
    },
  }),
});

Deply your own

Deply the blogkit strapi starter using Vercel:

Deploy with Vercel

Author

colmugx

About

blogkit for strapi


Languages

Language:JavaScript 100.0%