Cockpit

添加内容管理功能到任何网站 -- 即插即用无头 api 优先 CMS。(Add content management functionality to any site - plug & play / headless / api-first CMS. )

Github stars Tracking Chart

Cockpit Next

Cockpit(驾驶舱)是阿尔图尔·海因策(Artur Heinze)自2013年以来开发的一个独门创意。Cockpit 诞生于对后端的需求,它只管理结构的内容,可以在不同的频道和设备上重新使用。Cockpit 针对现有内容管理解决方案的不足而开发。

Cockpit 是一个无头的 CMS,采用 API 第一方法,将内容放在首位。旨在通过在客户端分离内容管理与内容完成来简化发布过程。

Cockpit 正在专注于后端工作来管理内容。而不是担心通过页面传递内容,其目标是通过简单的 API 提供不同渠道的结构化内容。

主要特性:

  • 管理灵活的内容模型。没有预定义的内容模型。自己定义内容模型。
  • 整洁的用户界面。Cockpit 为您提供了一个现代和简单的用户界面。
  • 一个系统,你想怎么用就怎么用。通过一个简单的 API 接收内容。

无头的好处(The Advantages Of Going Headless)

  • 没有演示限制 -- 构建最好的设计。
  • 多个频道的内容 -- 创建一次内容,随处消费。
  • 高度可扩展的内容 -- 适用于所有设备和微型网站。
  • 需要最低限度的培训 -- 立即开始。
  • 易于集成 -- 连接一切。

链接

要求

  • PHP >= 7.0
  • PDO + SQLite (or MongoDB)
  • GD extension
  • mod_rewrite, mod_versions enabled (on apache)

还要确保 $_SERVER['DOCUMENT_ROOT'] 存在并且设置正确。

安装

  1. 下载并将 Cockpit 文件夹放在 web 项目的根目录中
  2. 确保 /cockpit/storage 文件夹及其所有子文件夹都是可写的
  3. 通过浏览器进入 /cockpit/install
  4. 你准备好使用 cockpit 了 :-)

构建 (仅当您修改 JS 组件时)

您需要在系统上安装 nodejs

首先运行 npm install 来安装开发依赖项

  1. 运行 npm run build -- 用于一次性构建样式和组件
  2. 运行 npm run watch -- 对于每次样式或组件更改时的持续构建

Dockerized 开发

您需要在系统上安装 docker: https://www.docker.com.

  1. 运行 npm run docker-init 来构建初始映像。
  2. 运行 npm run docker 启动一个在 8080 端口上适合 Cockpit 的 Apache 环境 (此文件夹映射到 /var/www/html)。

版权和许可

Copyright since 2015 Agentejo under the MIT license.

See LICENSE for more information.

OpenCollective

支持者

感谢所有的支持者!pray [Become a backer]

(Second version: vz 2019/07/30)

Overview

Name With Owneragentejo/cockpit
Primary LanguageJavaScript
Program languageCSS (Language Count: 6)
PlatformLinux, Mac, Windows, Docker
License:MIT License
Release Count35
Last Release Name0.12.2 (Posted on 2021-09-06 15:27:02)
First Release Name0.5.0 (Posted on 2017-11-18 00:24:13)
Created At2013-10-15 20:22:20
Pushed At2024-04-28 22:02:16
Last Commit At2021-09-06 15:25:40
Stargazers Count5.4k
Watchers Count153
Fork Count527
Commits Count2.6k
Has Issues Enabled
Issues Count1134
Issue Open Count257
Pull Requests Count238
Pull Requests Open Count39
Pull Requests Close Count95
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

Cockpit Next

Requirements

  • PHP >= 7.0
  • PDO + SQLite (or MongoDB)
  • GD extension
  • mod_rewrite, mod_versions enabled (on apache)

make also sure that $_SERVER['DOCUMENT_ROOT'] exists and is set correctly.

Installation

  1. Download Cockpit and put the cockpit folder in the root of your web project
  2. Make sure that the /cockpit/storage folder and all its subfolders are writable
  3. Go to /cockpit/install via Browser
  4. You're ready to use Cockpit :-)

Build (Only if you modify JS components)

You need nodejs installed on your system.

First run npm install to install development dependencies

  1. Run npm run build - For one-time build of styles and components
  2. Run npm run watch - For continuous build every time styles or components change

Dockerized Development

You need docker installed on your system: https://www.docker.com.

  1. Run npm run docker-init to build the initial image.
  2. Run npm run docker to start an Apache environment suited for Cockpit on port 8080 (this folder mapped to /var/www/html).

? Partners

ginetta
We create websites and apps that click with users.

BrowserStack
Live, Web-Based Browser Testing

? Sponsors

Backers on Open Collective Sponsors on Open Collective

Become a backer or sponsor through:

Thank you to all our backers! ?

Copyright since 2015 Agentejo under the MIT license.

See LICENSE for more information.

To the top