/TTFL-Seeker

Web App to improve the follow-up of the TrashTalk Fantasy League.

Primary LanguagePHPMIT LicenseMIT

TTFL Follow-Up

Web App to follow-up the TrashTalk Fantasy League

System Requirement

Installation

1 - Clone the git repository

git clone git@github.com:AirBair/TTFL-Follow-Up.git

2 - Configure environment variables

Copy the .env file to .env.local and complete it with required credentials & the correct working environment.

3 - Install project dependencies

  • In production environment:

composer install --no-dev --optimize-autoloader && composer dump-env prod

  • In development or testing environment:

composer install

4 - Generate static resources (css, javascript, ..)

npm install && npm run build

5 - Grant write access on var & uploads directories to the web user

HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1)
setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var public/uploads
setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var public/uploads

6 - Protect sensitive files

Since the .env.local (and .env.local.php if you are in production environment) contains sensitive information, consider protecting it in read/write mode. Only the web user and developers are supposed to be able to access it.