Skip to content

alexandrecorroy/Blog

Repository files navigation

PHP Blog in POO

A php blog for an Openclassrooms project !


Aperçu de la page d'accueil


Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

php version >= 7
composer
SMTP server
PhpMyAdmin
Google captcha keys

Free SMTP Server : http://sendinblue.com

Google Captcha : https://www.google.com/recaptcha/admin

Download Composer : https://getcomposer.org/download/

Installing

A step by step series of examples that tell you have to get a development env running

  1. Import blog.sql in your database. (a new database name "blog" will be create)

  2. Upload project in your server

  3. Run Composer

Composer install

Then rename "template_config.json" to "config.json" and change values :

// replace with your db info
{
  "db": {
    "host": "localhost",
    "dbname": "blog",
    "username": "root",
    "password": ""
  },
//  require for send emails
  "smtp": {
    "host": "",
    "port": "",
    "username": "",
    "password": ""
  },
//  require for new user (go to https://www.google.com/recaptcha/intro/index.html)
  "captcha": {
    "secret": "your_google_captcha_secret_key",
    "public": "your_google_captcha_public_key"
  }
}

Docker

You can also run the project with Docker in simple command line :

docke-compose up -d

-> The project can be found at http://localhost:8080

See demo : http://www.alexandrecorroy.fr/blog/

Secure config.json / folders

You can create .htaccess file to secure access to config.json and folders

Options -Indexes
<files "config.json">
Order allow,deny
Deny from all
</files>

Sensiolabs Insight

SensioLabsInsight

License

This project is licensed under GPL License.

About

personnal blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors