headlesscms.org

Github星跟踪图

headlesscms.org

headlesscms.org, a leaderboard of top open-source static site content management systems.

Netlify Status

Contributing

Missing a headless CMS here? Just fork the repo and add yours as a <name>.md in the
content/projects folder.

Make sure to follow the following rules:

  • Truly headless: This means your CMS must interact with content and data, and cannot be responsible for building the site.
  • JAMstack: Your CMS has to work with the JAMstack methodology: JavaScript, API's and Markup.
  • Stick to the format: Fill out all the same fields as the other CMS's in content/projects.
  • Short description: Keep all the details for the body text, keep the description for the overview page short and sweet.

Usage

Be sure that you have the latest node and npm installed, then clone this repository and run:

npm install
npm start

In order to successfully retrieve Twitter followers and GitHub stars, you will need authentication
keys for both services.

For GitHub you'll need is a personal access token with permission to create Gists. This can be generated at
https://github.com/settings/tokens. For Twitter, you need to create an application at
https://apps.twitter.com to get the necessary tokens. When deploying, you must set the environment
variables per the example below. If you are developing locally, you can set
these in a .env file at the root of the repo.

HEADLESS_CMS_GITHUB_TOKEN=examplekey123abc
HEADLESS_CMS_TWITTER_CONSUMER_KEY=examplekey231abc
HEADLESS_CMS_TWITTER_CONSUMER_SECRET=examplekey321abc
HEADLESS_CMS_TWITTER_ACCESS_TOKEN_KEY=examplekey231abc
HEADLESS_CMS_TWITTER_ACCESS_TOKEN_SECRET=examplekey321abc

GitHub and Twitter data is cached in the .tmp directory, and online in a Gist. If neither has data
newer than 24 hours old, fresh data is fetched from GitHub and Twitter. Fetching caching occur
automatically during the build.

Then visit http://localhost:3000/ - React Static will automatically reload when changes occur.

To test a production build locally, do:

npm run stage
npm run serve

To run a production build for deployment:

npm run build

Netlify

headlesscms.org is built and maintained by Netlify, a hosting and automation service for static websites and apps.

License

This project is licensed under the MIT license.

主要指标

概览
名称与所有者netlify/headlesscms.org
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2017-01-05 19:14:17
推送于2020-10-20 17:34:08
最后一次提交2020-10-20 13:34:08
发布数0
用户参与
星数630
关注者数44
派生数151
提交数1k
已启用问题?
问题数34
打开的问题数13
拉请求数272
打开的拉请求数0
关闭的拉请求数74
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?