#Project n°6 : Snowtricks ##How to install
- Start by composer to populate vendor/.
composer install
- Create a carbon copy of ".env" named ".env.local".
cp .env .env.local
- 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.
- Create database easily.
php bin/console doctrine:database:create
- Create Structure on database easily.
php bin/console doctrine:schema:create
- Import figures' dataset.
php bin/console doctrine:fixtures:load
- This install CKeditor to help you format your text on edition.
php bin/console ckeditor:install
- And this import the last part of js.
php bin/console assets:install public
- Yarn Install Javascripts dependencies
docker run --rm -it -v $PWD:/app -w /app node yarn install
- 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.