Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ErfanNaz/jsoncms
Simple CMS based on Json without Database connection
https://github.com/ErfanNaz/jsoncms
backend cms database json json-cms php schema webpage
Last synced: about 2 months ago
JSON representation
Simple CMS based on Json without Database connection
- Host: GitHub
- URL: https://github.com/ErfanNaz/jsoncms
- Owner: ErfanNaz
- Created: 2017-01-29T23:18:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T10:35:10.000Z (about 4 years ago)
- Last Synced: 2024-08-01T12:29:59.826Z (5 months ago)
- Topics: backend, cms, database, json, json-cms, php, schema, webpage
- Language: JavaScript
- Size: 5.05 MB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSON CMS
With json cms you can build your Webpages and get your Data from a single json File.
It is up to you if you want to use PHP or simple html with javascript for the Webpage, because the Content of your Webpage can be managed by JSON CMS.
It is the fastest way to create a simple Webpage with dynamic Content. There is no requirement for a Database.## Json CMS UI
![image of the cms](JsonCMS.png)
# How to use it?
You can download the zip file [JsonCMS.zip](https://github.com/illiano/jsoncms/raw/master/JsonCMS.zip) and use it or Just run composer install and then gulp dist to build the newest version of JSON CMS. You have to change the Admin Password in the "backend/index.php" File.
Now you can manipulate the "backend/schema.json" File for all kind of Data you need. The Schema has to be compatible with the [Json schema v4](http://json-schema.org/) Standard.## example
"backend/index.php"
```php
/*
change the admin password here,
this password will allow you to change the content data
*/
$password = "mySecretPassword";
```"backend/schema.json"
```json
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"description": "Name or alias"
},
"sex": {
"type": "string",
"enum": [
"man",
"woman"
]
},
"birthday": {
"type": "string",
"title": "date of your birthday",
"format": "date"
},
"books": {
"type": "array",
"title": "written books",
"items": {
"type": "object",
"properties": {
"title": {
"title": "Title of the Book",
"type": "string"
},
"pages": {
"type": "integer",
"title": "How many pages the book has"
}
},
"required": [
"title",
"pages"
]
}
}
},
"required": [
"name",
"sex",
"bookings"
]
}```