Skip to content

GeoffroyDutot/Blog-OC-P5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog-OC-P5

Author

Geoffroy Dutot - 2020

contact@geoffroydutot.fr

Badge

Codacy Badge

Introduction

This project is the 5th project of the Developer PHP / Symfony formation of Openclassrooms.

The goal of this project is to create a professional blog with the PHP language without any frameworks.

It can integrate front themes, twig, and some libraries.

He sould present a front-office and a back-office. The front-office accessible by all should have a home with informations about the author of the blog and a contact form. It will have a page listing all posts of the blog, a page with the detail of the post and a register - login page.

Registered users could submit comments on posts. It will have to be accept or not by an administrator.

Administrators will have access to the admin dashboard, in the dashboard theme there will have a global view on lasts actions on the site, and pages to manage posts, users, comments. They could deactivate users if they want.

In addition to the blog, the project will have UML diagrams and an analysis by a code validator.

Build with

Requirements

  • PHP 7.4
  • COMPOSER
  • MYSQL
  • Web Server

Installation

  • Clone / Download the project
  • Config your webserver to point on the project directory
  • Composer install in src directory
  • Unzip and Import Database with blog-oc-p5.sql.zip file
  • Rename config/config.php.sample in config/config.php and add your database and email smtp server infos

Demo Datas

The database contains already some data so you can test the blog.

There is already some users so you can see different views of the blog. If you want to create a new admin register you and modify in the database the role property ROLE_USER to ROLE_ADMIN of your new user and deletes demo users to secure.