Starbugstone / SnowTricks

OpenClassrooms - Php Symfony App dev - project 6
0 stars 0 forks source link

SnowTricks comunity site

Scrutinizer Code Quality

Maintainability

How to install

Requirements

To install, you need

Installation

Running the dev environment

The .env file

APP_ENV=dev Dev or Prod environment

APP_SECRET= The secret used by symfony, used by the csrf protection

You should regenerate the APP_SECRET with 32 characters

(https://symfony.com/doc/current/reference/configuration/framework.html#secret)

DATABASE_URL= The database connection

MAILER_URL= Smtp server

ADMIN_EMAIL="admin@localhost.dev" the sender of the emails from the site

Configure the paths to the default images used throughout the site

DEFAULT_IMAGE_PATH="/img"
DEFAULT_USER_IMAGE="user-default.png"
DEFAULT_TRICK_IMAGE="trick-default.jpg"
DEFAULT_MENU_LOGO="snowtricks-logo-small-text.png"
DEFAULT_FRONTPAGE_IMAGE="frontpage-banner.jpg"
DEFAULT_FRONTPAGE_TEXT="Une phrase d'accroche"

The upload image paths. Be careful, this is hardcoded in the fixtures

DEFAULT_UPLOAD_USER_IMAGE_PATH="/uploads/user_images"
DEFAULT_UPLOAD_TRICK_IMAGE_PATH="/uploads/trick_images"

Do you wish to activate the caroussel when more that 1 picture is selected for a trick.

This feature is still in development and not considered stable

PRIMARY_IMAGE_CAROUSEL=false

The default meta data for the pages

DEFAULT_PAGE_TITLE="My page title, 55 to 64 characters"
DEFAULT_PAGE_DESCRIPTION="a short description that will show up in the google search"
DEFAULT_PAGE_KEYWORDS="the main keywords, this will be overwritten by the tags for each trick. Seperate with comma"