Skip to content

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

License

Notifications You must be signed in to change notification settings

AirBair/TTFL-Seeker

Repository files navigation

TTFL Follow-Up

Web App to follow-up the TrashTalk Fantasy League

System Requirement

Installation

1 - Clone the git repository

git clone [email protected]: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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published