Skip to content

Latest commit

 

History

History
57 lines (52 loc) · 1.7 KB

readme.md

File metadata and controls

57 lines (52 loc) · 1.7 KB

#Project n°6 : Snowtricks Codacy Badge ##How to install

  1. Start by composer to populate vendor/.
composer install
  1. Create a carbon copy of ".env" named ".env.local".
cp .env .env.local
  1. Modify your new ".env.local" in order to set your DB & SMTP.
    • DB : I suggest you to uncomment the sqlite line.
    • SMTP : If you don't have a proper one, you can't use the "retrieve password" functions, that's all.
  2. Create database easily.
php bin/console doctrine:database:create
  1. Create Structure on database easily.
php bin/console doctrine:schema:create
  1. Import figures' dataset.
php bin/console doctrine:fixtures:load
  1. This install CKeditor to help you format your text on edition.
php bin/console ckeditor:install
  1. And this import the last part of js.
php bin/console assets:install public
  1. Yarn Install Javascripts dependencies
docker run --rm -it -v $PWD:/app -w /app node yarn install
  1. build JS
docker run --rm -it -v $PWD:/app -w /app node yarn build

Enjoy by launching your PHP server !

##Few choices for serving page

  • Have an installed server on your computer (try laragon)
  • with symfony CLI, run a "symfony serve -d" command.
  • With raw PHP, run a "php -S 127.0.0.1:8000 -t public/" command.

##To use the website ?

Simply create an account with "sign-in" menu, or use the built-in account :

  • username : usertest
  • password : azerty

Julien "Nayte" Robic.