Skip to content

suntoes/simple-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple CMS task


preview

A basic CMS that allow users to create posts from an admin dashboard and display it on the public facing side of the app/website.


Site explanation:


HOME (/):

  • Overview of summary of every posts with image thumbnail if available.

POST (/post):

  • Detailed view and editor page for posts.

DASHBOARD (/dashboard):

  • User only page for posts content CRUD management.

LOGIN & SIGNUP (/login.php & /signup.php):

  • Login and registration for this page with different validations.



SQL DB Concept


Tables in simplecms Content
users Contains all user DB with hashed passwords, user privilege, and date creation
posts Information storage for post including ID of web contributor
posts_image Includes all images path uploaded for posts with post ID

PHP Concept


Items in / Content
index.php Main page
header.php Includes navigation, styling, and search bar function
simplecms.sql Contains initial code to setup database for this app
js/main.js Jquery and Ajax implementation for infinite scrolling and viewing of post
includes/dbh.inc.php Main DB connection file also used by other components
includes/post.inc.php Api handler used by js/main.js for infinite scrolling
Items in /post Content
index.php Detailed view page of post requiring an id URL parameter
edit.php Post editor integrated with tinyMCE for users only
js/main.js Jquery and Ajax implementation for obtaining and viewing existing post data
js/tinymce.js Includes tinyMCE configuration and image handling functions
includes/upload.inc.php Api handler used by js/tinymce.js for tinyMCE image uploads
includes/post.inc.php Api handler for post editor data view and submission
Items in /dashboard Content
index.php Dashboard page of post for users with CRUD options
js/main.js Jquery and Ajax implementation for obtaining and viewing existing post data
includes/post.inc.php Api handler for post dashboard data view and deletion of post

Tech used


PHP (procedural), SQL, Bootstrap, Jquery, Ajax & TinyMCE