Example app to test and demonstrate the PHP-SDK for parse.com backend
- [You: Just add your name here when you contribute something]
This web-application will build a small CMS.
The CMS will have a frontend and an admin area. Everything that is visible in the frontend should be manageable from the admin interface.
Some core elements.
Navigation: This is tree of nodes ParseObject("Navigation")
with the following properties
- id: automatically generated by Parse
- parent_id: either null or empty or a valid Navigation id
- name: This is what shown in the menu
- slug: This is what is used in the url
- title: The title of the url
- description: The meta description of the url
Pages: This is the content part
A page can be shared by different navigation elements
Pages have the following properties
- id: automatically generated by Parse
- name: something to tell the webmaster what the page does
- data: The content of the page
The goal is to use as much capabilities of Parse.com as the SDK can provide. This will help to both demonstrate the usage and to find bugs.
The app should touch the following features.
- Signup
- Login
- Session
- Caching
- Parse Objects
- Object relations (pages belong to one or more navigation element, comments belong to users etc)
Clone from git into a directory called parse-php-cms
git clone https://github.com/allinora/parse-php-cms.git
Install the dependencies
cd parse-php-cms
make install
Edit the parse-php-cms/config/config.php and replace values in the PARSE constants
Run the application
make run
Browse on localhost:8080
Almost all the Parse-SDK functions are in library/ParseApp/Cms.php
Please report in the issue tracker at https://github.com/allinora/parse-php-cms/issues
The MIT License (MIT)
Copyright (c) 2014 Atif Ghaffar
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.