Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raruto/cockpit-sample-addon
Sample addon for Cockpit CMS
https://github.com/raruto/cockpit-sample-addon
addon cockpit sample
Last synced: 28 days ago
JSON representation
Sample addon for Cockpit CMS
- Host: GitHub
- URL: https://github.com/raruto/cockpit-sample-addon
- Owner: Raruto
- License: mit
- Created: 2021-02-15T14:58:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-15T15:05:31.000Z (almost 4 years ago)
- Last Synced: 2024-04-19T21:42:52.843Z (8 months ago)
- Topics: addon, cockpit, sample
- Language: PHP
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cockpit-sample-addon
Sample addon for [Cockpit CMS](http://getcockpit.com/)
## Features
- Add a sample `/api/test` Rest API endpoint
## Installation
### Manual
Download [latest release](https://github.com/Raruto/cockpit-sample-addon) and extract to `COCKPIT_PATH/addons/SampleAddon` directory
### Git
```sh
git clone https://github.com/Raruto/cockpit-sample-addon.git ./addons/SampleAddon
```### Cockpit CLI
```sh
php ./cp install/addon --name SampleAddon --url https://github.com/Raruto/cockpit-sample-addon.git
```### Composer
1. Make sure path to cockpit addons is defined in your projects' _composer.json_ file:
```json
{
"name": "MY_PROJECT",
"extra": {
"installer-paths": {
"cockpit/addons/{$name}": ["type:cockpit-module"]
}
}
}
```2. In your project root run:
```sh
composer require raruto/cockpit-sample-addon
```---
**Related projects:** [cockpit-blog](https://github.com/raruto/cockpit-blog)
**Compatibile with:** [![Cockpit CMS](https://img.shields.io/badge/cockpit-0.11.2-1EB300.svg?style=flat)](https://github.com/agentejo/cockpit)