|
1 | | -#P6 : Snowtricks |
| 1 | +#Project n°6 : Snowtricks |
| 2 | +[](https://www.codacy.com/manual/Nayte91/P6-snowtricks?utm_source=github.com&utm_medium=referral&utm_content=Nayte91/P6-snowtricks&utm_campaign=Badge_Grade) |
2 | 3 | ##How to install |
3 | | -1. Run a "composer install" command. |
| 4 | +1. Start by composer to populate vendor/. |
| 5 | +```bash |
| 6 | +composer install |
| 7 | +``` |
4 | 8 | 2. Create a carbon copy of ".env" named ".env.local". |
| 9 | +```bash |
| 10 | +cp .env .env.local |
| 11 | +``` |
5 | 12 | 3. Modify your new ".env.local" in order to set your DB & SMTP. |
6 | 13 | * DB : I suggest you to uncomment the sqlite line. |
7 | 14 | * SMTP : If you don't have a proper one, you can't use the "retrieve password" functions, that's all. |
8 | | -4. Run a "php bin/console doctrine:database:create" command. |
9 | | -5. Run a "php bin/console doctrine:schema:create" command. |
10 | | -6. Run a "php bin/console doctrine:fixtures:load" command. |
11 | | -7. Run a "php bin/console ckeditor:install" command. |
12 | | -8. Run a "php bin/console assets:install public" command. |
| 15 | +4. Create database easily. |
| 16 | +```bash |
| 17 | +php bin/console doctrine:database:create |
| 18 | +``` |
| 19 | +5. Create Structure on database easily. |
| 20 | +```bash |
| 21 | +php bin/console doctrine:schema:create |
| 22 | +``` |
| 23 | +6. Import figures' dataset. |
| 24 | +```bash |
| 25 | +php bin/console doctrine:fixtures:load |
| 26 | +``` |
| 27 | +7. This install CKeditor to help you format your text on edition. |
| 28 | +```bash |
| 29 | +php bin/console ckeditor:install |
| 30 | +``` |
| 31 | +8. And this import the last part of js. |
| 32 | +```bash |
| 33 | +php bin/console assets:install public |
| 34 | +``` |
13 | 35 |
|
14 | 36 | Enjoy by launching your PHP server ! |
15 | 37 |
|
16 | 38 | ##Few choices for serving page |
17 | 39 | * Have an installed server on your computer (try laragon) |
18 | 40 | * with symfony CLI, run a "symfony serve -d" command. |
19 | | -* With only PHP, run a "php -S 127.0.0.1:8000 -t public/" command. |
| 41 | +* With raw PHP, run a "php -S 127.0.0.1:8000 -t public/" command. |
20 | 42 |
|
21 | 43 | Julien "Nayte" Robic. |
0 commit comments