Built from scratch (no frameworksl, pakcagese etc.) PHP MVC with CRUD posts application on top of it
Local Installation
-
To run locally please download and move under /xampp/htdocs/shareposts
-
Create a db called shareposts (or any other name)
-
Update settings on /config/config.php to match you db name, user name etc.
// DB Params
define('DB_HOST', 'localhost');
define('DB_USER', '');
define('DB_PASS', '');
define('DB_NAME', 'shareposts');
-
Review other settings on config.php and change if needed
-
Import attached .sql into the fresh db you have created
-
Register your own users and create your own posts
-
Try creating two users or more to see how they interact
Overview
This simple web app, sharedposts, runs on a from scratch super light mvc framework. Both the mvc and web app can be extended to run much bigger apps based on the existing foundation.
Functionality
- Users can register and login
- Logged in users can add / edit / delete their own posts
- Logged in users can view posts by all other users
- Flash messages provide feedback to users