Skip to content

mathiiii-dev/Blog

Repository files navigation

P5 OC DA/PHP - Symfony

Create your first blog with PHP

Getting Started

These instructions will get you a copy of the project up and running on your local machine if you want to test it or develop something on it.

Prerequisites

To make the project run you will need to install those things :

Installing

Follow those steps to make the projetc run on your machine

Clone the project :

git clone https://github.com/mathias73/Blog.git

Update composer :

composer update

Install npm packages :

npm i

Database

You can download a database with data test here :

Blog database

You can edit Config.php with your database credentials :

class Config
{
    const DB_HOST = 'mysql:dbname=blog;host=127.0.0.1';
    const DB_USER = 'root';
    const DB_PASSWORD = '';
    const DB_OPTION = [\PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'];
}

Admin account

With the database test you have two admin accounts which are :

Pseudo : Moore 
Password : motdepasse 
Pseudo : Hawkins 
Password : motdepasse

Local Test Mail

You can configure Laragon to test the contact form (it send a mail).

Follow the instructions here : https://laragon.org/docs/mail-sender.html

email

Built With

Versioning

For the versions available, see the tags on this repository.

Authors

  • Mathias Micheli - Student - Github