Skip to content

Projet OpenClassrooms visant à créer un portfolio / OpenClassrooms project where you make your portfolio

Notifications You must be signed in to change notification settings

Palingenae/OC-P5-PersonalBlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenClassrooms Project 5 : Personal Blog

Analysis

Platform Result
Symfony Insights SymfonyInsight
Codacy Codacy Badge

What it is

This project involves creating a personal blog to introduce oneself as a Web Developer to potential employers.

Requirements

This is the biggest project required in my cursus. This project involves several skills as it follows:

  • Creating application's concept by describing its structure (Entities / Domain Objects);
  • Choose the right technological solution among those existing;
  • Estimate a task and hold the deadlines;
  • Write maintenable and clean code;
  • Create and maintain website's architecture;
  • Manage datas with a database;
  • Ensure the quality of a project;
  • Write detailed technical specifications;
  • Create a webpage that would display user input (after sanitization);
  • Analyze technical specifications.

Used Bundles


How to install it

Docker has been used for this project's environment, thus, if you use Docker in your everyday workflow, it should be easy to install it although there aren't any Makefile.

Used ports :

  • 8080 for adminer container
  • 1080 for maildev container
  • 3306 for mysql container
  • none for node container
  • 80 for php / nginx container
  1. Create a .env file using those values. User and Password are the same everywhere (excluding website's back-office)

     MYSQL_USER=olivia #Or the name of your choice
     MYSQL_PASSWORD=password
     MYSQL_DATABASE=portfolio
     MYSQL_ROOT_PASSWORD=root
  2. Launch Docker Apply those commands in your terminal :

    2.1 Launch containers

    docker-compose build && docker-compose up -d
    

    2.2 Install PHP bundles

    docker-compose exec php composer install
    

    2.3 Install NPM packages

    docker-compose exec node npm install
    
  3. Create database tables. This project uses Adminer, you can connect to it using the credentials from step 1 in localhost:8080. Server name is mysql and database name is portfolio or the name you choice. If you changed, please check portfolio.sql. While using Adminer, you can create database's tables using the SQL tool "SQL Query". Disregard first 3 lines, there are there in case something bad happens.

  4. Once the database is created, you can create the fixtures. In ./app/public/index.php, paste this line:

require_once dirname(__DIR__).'/src/DataFixtures/UserFixtures.php';

Reload localhost, then remove it. Then paste those 2 lines:

require_once dirname(__DIR__).'/src/DataFixtures/ArticleFixtures.php';
require_once dirname(__DIR__).'/src/DataFixtures/CommentFixtures.php';

Reload localhost, then remove them. Your fixtures are created!

  1. If you want to log in for the Admin Section, check user's table. Credentials are created when fixtures are created.

About

Projet OpenClassrooms visant à créer un portfolio / OpenClassrooms project where you make your portfolio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published