Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

tomcdj71-openclassrooms/MyBlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

164 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to MyBlog 👋

License: MIT Twitter: tomcdj71 Codacy Badge

5th course of OpenClassrooms - Developpeur d'applications PHP/Symfony formation

Pre-requesites :

  • PHP 8.2 ('intl' and sqlite3 extension enabled)
  • Composer
  • npm (I used pnpm)
  • sqlite 3

Install

git clone https://github.com/tomcdj71/MyBlog
cd MyBlog
composer install --no-dev --optimize-autoloader
pnpm -C public/assets install

Usage

You need to copy or rename the .env.php.example to .env.php in src/Config before starting this application.

cp -pR src/Config/.env.php.example src/Config/.env.php

Now, you can start the application :

php -S localhost:8000 -t public/

Mailing

Don't forget to setup your mailer DSN informations in the .env.php You can also use MailCatcher if you are on dev environment and test the full application. If you don't know how to install it, here's the How-To :

sudo apt-get update && sudo apt-get install -yqq build-essential software-properties-common libsqlite3-dev ruby-dev
gem install mailcatcher
mailcatcher

source

Then, you can browse to http://127.0.0.1:1080/ and start catching emails.

Database

If you want to rebuild the sqlite database, you need to do the following :

sqlite3 var/database.db < var/db_dump.sql

NOTE: all accounts passwords are pass1234

Author

👤 Thomas Chauveau

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

5th project of OpenClassrooms courses

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors