Skip to content

๐Ÿ“Œ 2021 School project from Openclassrooms training : "Create your first blog with PHP" using MVC model.

Notifications You must be signed in to change notification settings

ledukilian/LeduKilian_P5_10052021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

image

๐ŸŸฃ Project 5 : Create your first blog using PHP ๐ŸŸฃ

Quality Gate Status Maintainability Security Rating Codacy Badge Lines of Code Bugs

๐Ÿงฑ Project install

๐Ÿงฉ Prerequisites

First you need to use composer install command to install required packages

List of the package used :

  • Twig
  • Slugify
  • PHPMailer

Once it's done you need to make sure you have the YAML Package installed with your PHP version (can be found here : https://pecl.php.net/package/yaml)

  • Yaml extension (PHP 7.4 at least)

NOTE : Depending of your configuration, you might need to install the Yaml extension to your PHP version

โš™๏ธ Database

The second step is to create your database, name it as you will as long as it is UTF-8. You just need to import the database structure named database.sql that can be found inside the main folder of the project /.

NOTE : The database contains several samples for demonstration, you can remove them as you like

IMPORTANT : Do not delete the admin user located inside the admin table with the 1 id and the id_user rattached to him in user table.

โœ๏ธ Initial configuration

There is 2 important configurations files located in the config/ folder, you can use the .example and add your own configuration for each of one.

  • db-config.yml : Configure link to database, you need to input your own.
  • mail.yml : Configure mail, you need to input, please note :
    • from : Registration mail will be sent with those.
    • contact-to : Contact mail will be sent to this one.

๐Ÿ” First login

You can use the default account for the first login :

  • Email : admin@admin.dev
  • Password : admin12345

NOTE : All account parameters (name, email, password etc..) are editable inside the admin panel

About

๐Ÿ“Œ 2021 School project from Openclassrooms training : "Create your first blog with PHP" using MVC model.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published