SkillAgentSearch skills...

Gitcms

A Git-based, JSON schema powered CMS

Install / Use

/learn @wpf500/Gitcms
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

GitCMS

A Git-based, JSON schema powered CMS

To run

Copy config.example.json to config.json and fill it in. The upload settings are only needed if you want to support image uploading. auth will be used for the Basic Auth challenge.

npm install
npm run build
node .

How it works

Repositories must have a .gitcms.yml file in their root with the following structure:

version: 2
pages:
  - id: "en",
    name: "English",
    file: "locale/en.json"
    schema: &schema
      ...
    uiSchema: &uiSchema
      ...

  - id: "ar",
    name: "Arabic",
    file: "locale/ar.json"
    schema: *schema
    uiSchema: *uiSchema

See https://github.com/mozilla-services/react-jsonschema-form for details on schema and uiSchema. uiSchema is optional.

.gitcms.json is also supported but not recommended as YAML anchors are very useful for deduplicating schema definitions.

Previous versions

If no version number is given it is assumed to be version 1, which only supports having the same schema/uiSchema definition for all pages.

version: 1
pages:
  - id: "en"
    name: "English"
    file: "locale/en.json"

  - id: "ar"
    name: "Arabic"
    file: "locale/ar.json"

schema:
  ...
uiSchema:
  ...
View on GitHub
GitHub Stars5
CategoryDevelopment
Updated2y ago
Forks0

Languages

JavaScript

Security Score

60/100

Audited on Apr 8, 2023

No findings