npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

strapi-blog

v1.0.6

Published

Template for creating blog apps, such as Education, Agency, Beauty, Medical, News, Personal, and Science using Strapi V4.

Downloads

7

Readme

Strapi Template >> Blog

⚡ Strapi is an Open-Source NodeJS Headless CMS with a fully customizable API that lets you develop practical, production-ready Node.js APIs in hours instead of weeks.

🎯 Strapi-V4 Headless-CMS Template for creating Blog CMS Backend, such as Education, Agency, Beauty, Medical, News, Personal, and Science 🎁💲.

🐳 https://blog.oceansoft.io/strapi-nodejs-headless-cms/

✨ Usage

Step 1: [Backend] Install Strapi Backend

echo "Strapi V4 template: https://github.com/OceanSoftIO/cms-blog/tree/main/template"
yarn create strapi-app backend --quickstart --template strapi-blog

echo "Strapi V3 OLD-version !!!"
# yarn create strapi-app backend --quickstart --template https://github.com/OceanSoftIO/cms-blog
  • ✅ When the installation is complete, Strapi's administration panel will open in your browser, and you can register a user and get started creating content.

Step 2. [Backend] Powerful CMS-Backend REST & GraphQL APIs

cd backend

yarn install
yarn develop

Step 3: [Frontend] Installing Gatsby plugins & Enter Access Credentials

  • ✅ After installing Strapi, you need to install the Gatsby plugin.

    cd ../frontend
    # yarn add gatsby-source-strapi

Auto-generated Access Credentials

  • ✅ If you are working on local development, create a .env file and paste your Strapi credentials in it.

  • ☑️ To deploy your application in production, you need to add the environment variables to your deployment platform provider.

    echo "Move backend/frontend.env.development to frontend/.env"
    mv ../backend/frontend.env.development .env
    # cat frontend/.env

    frontend/.env

    STRAPI_API_URL=Your_Strapi_Server_URL
    STRAPI_TOKEN=Your_Strapi_API_Token

Step 4: Register Strapi CMS plugin

frontend/gatsby-config.js

require('dotenv').config()

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-strapi',
      options: {
        apiURL: process.env.STRAPI_API_URL || 'http://localhost:1337',
        accessToken: process.env.STRAPI_TOKEN,
        collectionTypes: ['article', 'category', 'author'],
        queryLimit: 1000
      }
    },
    {
      /** ATTENTION: Match the theme name with the theme you're using */
      resolve: '@oceansoft/gatsby-blog-education',
      options: {
        sources: {
          strapi: true,
          local: false
        }
      }
    }
  ]
}

Step 5. Gatsby

  • Every time you modify gatsby-config.js file, you need to clean the cache:

    yarn clean

  • That’s it! You can now start gatsby dev server to see your content from Strapi.

    yarn develop

Step 5 (Optional): Automate Re-building

If you’re planning to deploy your site to AWS, Netlify or Vercel, you can automate deployments by configuring webhooks to trigger a site rebuild when content is modified in your Strapi panel.

🎁 Installation Service 💲