A blogging system built in php that hadles an admin user, registration of regular users/bloggers and will eventually be able to have subscribers. This specific code base is a little messy so far but it will be under continuous refactoring for awhile. But feel free to check it out and play with it yourself.
- Open the file '/includes/db.php' and add your database credentials to the DSN, USERNAME and PASSWORD constants for the PDO instance. The application was tested with mysql.
- Open the file '/createtables.sql' and run all the queries in that file from top to bottom.
- Visit '/register' and fill in the form to create a user account. Afterwards, you will be routed back to the '/index.php' page.
- As of right now, the account you just made was a user account which will not allow you to see any of the admin pages, to become an admin, visit '/toAdmin.php'. What you should see is "You are now the admin user". Click the button to go back to the login page.
- Login in as the user that you just registered and you should see the Dashboard. In the info card, it should say that your users role is 'Admin'. If you see this page, everything was a success!
Have fun checking out the application. Some functionality may not be present right away.