A php blog for an Openclassrooms project !
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.
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/
A step by step series of examples that tell you have to get a development env running
-
Import blog.sql in your database. (a new database name "blog" will be create)
-
Upload project in your server
-
Run Composer
Composer installThen 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"
}
}
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/
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>
This project is licensed under GPL License.

