Strapi Community Content

repository·master·Indexed 20 days ago

https://github.com/strapi/community-content

A hub for community-driven educational content for Strapi, featuring technical articles, tutorials, and showcases of community projects. This repository includes guidelines for the 'Write for the Community' program, as well as schemas and submission processes for contributing Strapi templates, front-end starters, and community-powered websites to the official Strapi Showcase.

Tokens
73.9K
Snippets
213
Records
267
Agent score
69%

What's inside strapi-community-content

  1. Overview of the Strapi Starter Vue Blog

    master

    This starter provides a complete example of a blog using Strapi as a backend and Vue as a frontend. It uses Apollo (GraphQL) for data fetching and UIkit for responsive design.

    Key Features:

    • Content Types: Article and Category.
    • Permissions: Pre-configured to true for both article and category.
    • Sample Data: Includes 2 articles and 3 categories.

    Routing Structure:

    • /: Displays all articles.
    • /article/:id: Displays a single article.
    • /category/:id: Displays articles filtered by category.
  2. Gatsby project file structure overview

    master

    A standard Gatsby project includes several key configuration and source files:

    • src/: Contains front-end code like page templates and components.
    • gatsby-config.js: The main configuration file for site metadata (title, description) and plugins.
    • gatsby-node.js: Used for implementing Gatsby Node APIs to customize the site build process.
    • gatsby-browser.js: Used for implementing Gatsby browser APIs to customize settings affecting the browser.
    • gatsby-ssr.js: Used for implementing Gatsby server-side rendering (SSR) APIs.
    • package.json: The Node.js manifest file containing project metadata and dependencies.
    • package-lock.json: Automatically generated file tracking exact npm dependency versions.
    • .prettierrc: Configuration for the Prettier code formatter.
  3. What is a Strapi Template

    master
    A Strapi template is a pre-configured Strapi project that includes existing content-types and data. Templates are designed to help developers jumpstart their projects by providing a foundation of schemas and content. You can use the Strapi CLI to generate projects based on these templates.
  4. Difference between Strapi Templates and Starters

    master

    In the Strapi community ecosystem, there is a distinction between templates and starters:

    • Template: A Strapi project that includes pre-configured content-types and existing data.
    • Starter: A front-end project designed to fetch and display data from a Strapi template project.

    You can use official templates (such as E-commerce, Corporate, Blog, Portfolio, or Catalog) to provide the backend structure for your front-end starters.

  5. Disable Google Analytics tracking in Strapi Admin

    master

    By default, Strapi uses Google Analytics to analyze Admin usage to help improve the product. If you do not want to share anonymous usage data, you can disable it by adding an allowGa flag to the strapi object within your project's package.json file.

    Set allowGa to false to opt-out of tracking.

    {
      "strapi": {
        "allowGa": false
      }
    }
  6. Add new posts to a Jekyll site

    master

    To create new blog posts, add a new file to the _posts directory. The filename must follow the naming convention YYYY-MM-DD-name-of-post.ext and include the required YAML front matter at the top of the file.

    ---
    layout: post
    title:  "Your Post Title"
    date:   2023-10-27 12:00:00 +0000
    categories: your-category
    ---
    
    Your post content goes here.